Permalink
Browse files

doc fixes

--HG--
extra : rebase_source : 9bbb1e648f16cbc65788f50f42784ad955b7fe77
  • Loading branch information...
1 parent c4e4fdb commit 1e7c830d97166cb39498cc5c1fe05a6ec7844736 @scoder scoder committed Oct 27, 2011
Showing with 1 addition and 5 deletions.
  1. +1 −5 doc/element_classes.txt
View
@@ -38,10 +38,6 @@ custom Element classes.
4 Generating XML with custom classes
5 Implementing namespaces
-..
- >>> try: _ = unicode
- ... except NameError: unicode = str
-
Background on Element proxies
=============================
@@ -410,7 +406,7 @@ You can use custom Element classes to quickly create XML fragments:
>>> el = hale( "some ", honk(honking = 'true'), bopp, " text" )
- >>> print(etree.tostring(el, encoding=unicode))
+ >>> print(etree.tostring(el, encoding='unicode'))
<hale>some <honk honking="true"/><bopp/> text</hale>

0 comments on commit 1e7c830

Please sign in to comment.