diff options
author | willmcgugan@gmail.com <willmcgugan@gmail.com@67cdc799-7952-0410-af00-57a81ceafa0f> | 2014-02-26 22:49:10 +0000 |
---|---|---|
committer | willmcgugan@gmail.com <willmcgugan@gmail.com@67cdc799-7952-0410-af00-57a81ceafa0f> | 2014-02-26 22:49:10 +0000 |
commit | 5c3387371f9cbbbdb081931dce4f7b6498ae30cd (patch) | |
tree | 546fba7c8993134b3a86f68ee312cdee23a7a149 | |
parent | 77862458c0d287df29d03e5eacdc0a323b68afe1 (diff) | |
download | pyfilesystem-5c3387371f9cbbbdb081931dce4f7b6498ae30cd.tar.gz |
py2.6 fixes
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@885 67cdc799-7952-0410-af00-57a81ceafa0f
-rw-r--r-- | fs/base.py | 2 | ||||
-rw-r--r-- | fs/errors.py | 2 | ||||
-rw-r--r-- | tox.ini | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -754,7 +754,7 @@ class FS(object): """ info = self.getinfo(path) - return {k: info[k] for k in keys if k in info} + return dict((k, info[k]) for k in keys if k in info) def desc(self, path): """Returns short descriptive text regarding a path. Intended mainly as diff --git a/fs/errors.py b/fs/errors.py index a683d2d..7f41623 100644 --- a/fs/errors.py +++ b/fs/errors.py @@ -67,7 +67,7 @@ class FSError(Exception): keys = {} for k,v in self.__dict__.iteritems(): if isinstance(v, six.binary_type): - v = v.decode(sys.getfilesystemencoding(), errors='replace') + v = v.decode(sys.getfilesystemencoding(), 'replace') keys[k] = v return unicode(self.msg, encoding=sys.getfilesystemencoding(), errors='replace') % keys @@ -1,5 +1,5 @@ [tox] -envlist = py26,py27,py31,py32,pypy +envlist = py26,py27,py31,py32,py33,pypy sitepackages = False [testenv] |