Permalink
Browse files

fix option handling in unix backend cat method (fixes #54)

  • Loading branch information...
1 parent 9a08777 commit e439f10fb9bac84536976d362280c2d1329b08bf Klaas Bosteels committed May 20, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 dumbo/backends/unix.py
View
4 dumbo/backends/unix.py
@@ -111,7 +111,9 @@ def run(self):
class UnixFileSystem(FileSystem):
def cat(self, path, opts):
- return decodepipe(opts + [('file', path)])
+ opts = Options(opts)
+ opts.add('file', path)
+ return decodepipe(opts)
def ls(self, path, opts):
return execute("ls -l '%s'" % path, printcmd=False)

0 comments on commit e439f10

Please sign in to comment.