Skip to content

Commit 9b30604

Browse files
committed
clean up
1 parent 574bbca commit 9b30604

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/bd2k/util/hashes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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( ':' )

src/bd2k/util/xml/builder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ def callable(f):
6868
basestring = str
6969

7070
try:
71-
str
71+
unicode
7272
except NameError:
73-
str = str
73+
unicode = str
7474

7575

7676
class 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

0 commit comments

Comments
 (0)