Skip to content

Commit

Permalink
Fix for python output not working with key, value
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerBrock committed May 21, 2012
1 parent 35be305 commit b26e1fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion streaming/language_support/python/pymongo_hadoop/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def _write(self, obj):
def _writes(self, iterable):
w = self.write
for obj in iterable:
if isinstance(obj, dict):
if isinstance(obj, dict) or (isinstance(obj, tuple) and len(obj) == 2):
w(obj)
elif isinstance(obj, collections.Iterable):
for o in obj:
Expand Down

0 comments on commit b26e1fb

Please sign in to comment.