summaryrefslogtreecommitdiff
path: root/CHANGELOG
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2011-05-21 12:33:44 -0400
committerLeonard Richardson <leonard.richardson@canonical.com>2011-05-21 12:33:44 -0400
commitc29185a017c93d1aa19dea4606bde2a064f23639 (patch)
treee7260a01e089b18bc7e18765ed3716ad96ec7710 /CHANGELOG
parent640fdc0fa7f2ffd53fb92dbeac8b456bb09dcaa7 (diff)
parent728ff36cd480a02c562976c5279e5a41240c1bfb (diff)
Made a lot of changes to reduce the eventual difference between the Python 2 version and the Python 3 version.
Diffstat (limited to 'CHANGELOG')
-rw-r--r--CHANGELOG10
1 files changed, 10 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 00d80da..4d1d075 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -35,9 +35,19 @@ work. Here are the renames:
* findPreviousSibling -> find_previous_sibling
* findPreviousSiblings -> find_previous_siblings
+Methods have been renamed for compatibility with Python 3.
+
+ * Tag.has_key() -> Tag.has_attr()
+
+ (This was misleading, anyway, because has_key() looked at
+ a tag's attributes and __in__ looked at a tag's contents.)
+
Some attributes have also been renamed:
* Tag.isSelfClosing -> Tag.is_empty_element
+ * UnicodeDammit.unicode -> UnicodeDammit.unicode_markup
+ * Tag.next -> Tag.next_element
+ * Tag.previous -> Tag.previous_element
So have some arguments to popular methods: