File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -126,8 +126,8 @@ def _hash_hashable( hash_obj, items ):
126126 hash_obj .update ( '}' )
127127
128128
129- def _hash_hashable_item ( hash_obj , xxx_todo_changeme ):
130- (k , v ) = xxx_todo_changeme
129+ def _hash_hashable_item ( hash_obj , k_v ):
130+ (k , v ) = k_v
131131 if isinstance ( k , basestring ):
132132 hash_obj .update ( k )
133133 hash_obj .update ( ':' )
Original file line number Diff line number Diff line change @@ -68,9 +68,9 @@ def callable(f):
6868 basestring = str
6969
7070try :
71- str
71+ unicode
7272except NameError :
73- str = str
73+ unicode = str
7474
7575
7676class ElementMaker (object ):
@@ -183,8 +183,8 @@ def add_cdata(elem, cdata):
183183
184184 if str not in typemap :
185185 typemap [str ] = add_text
186- if str not in typemap :
187- typemap [str ] = add_text
186+ if unicode not in typemap :
187+ typemap [unicode ] = add_text
188188 # if ET.CDATA not in typemap:
189189 # typemap[ET.CDATA] = add_cdata
190190
You can’t perform that action at this time.
0 commit comments