Skip to content

Commit

Permalink
fix bug introduced by previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
klbostee committed Jul 26, 2010
1 parent 46b92b0 commit 3b77a9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dumbo/backends/streaming.py
Expand Up @@ -224,7 +224,8 @@ def cat(self, path, opts):
# cat each file separately when the path contains special chars
ls = os.popen('%s %s/bin/hadoop dfs -ls %s' % \
(hadenv, self.hadoop, path))
subpaths = (line.split()[-1] for line in ls)
subpaths = [line.split()[-1] for line in ls]
ls.close()
else:
subpaths = [path]
for subpath in subpaths:
Expand All @@ -240,7 +241,6 @@ def cat(self, path, opts):
for output in outputs:
print '\t'.join(output)
dumptb.close()
ls.close()
except IOError:
pass # ignore
return 0
Expand Down

0 comments on commit 3b77a9e

Please sign in to comment.