Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

filter returns generator in Python 3

  • Loading branch information...
commit 69863e726964ab57323b12d74707b9039d13c647 1 parent e3dbe36
@chrisrossi chrisrossi authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 acidfs/__init__.py
View
4 acidfs/__init__.py
@@ -5,6 +5,7 @@
import os
import shutil
import subprocess
+import sys
import tempfile
import traceback
import transaction
@@ -91,7 +92,7 @@ def _mkpath(self, path):
if path == '.':
parsed = []
else:
- parsed = filter(None, path.split('/'))
+ parsed = list(filter(None, path.split('/')))
if not path.startswith('/'):
parsed = type(parsed)(self._cwd) + parsed
return parsed
@@ -1022,4 +1023,3 @@ def _check_output(*popenargs, **kwargs):
cmd = popenargs[0]
raise subprocess.CalledProcessError(retcode, cmd, output=output)
return output
-
Please sign in to comment.
Something went wrong with that request. Please try again.