diff options
author | Bob Ippolito <bob@redivi.com> | 2014-03-27 08:35:34 -0700 |
---|---|---|
committer | Bob Ippolito <bob@redivi.com> | 2014-03-27 08:35:34 -0700 |
commit | dd10d44e3eb9a1d2303c1f7d5126c099d56e97fc (patch) | |
tree | 5a18fa53915169d77784b3b1b92eba3ca66ca528 /xattr | |
parent | 70d1ad2caf11e8dbdef9bc0dcdd2c3702d70b607 (diff) | |
download | xattr-dd10d44e3eb9a1d2303c1f7d5126c099d56e97fc.tar.gz |
fix Python 3 compatibility and prep for v0.7.6v0.7.6
Diffstat (limited to 'xattr')
-rw-r--r-- | xattr/__init__.py | 2 | ||||
-rw-r--r-- | xattr/tests/test_xattr.py | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/xattr/__init__.py b/xattr/__init__.py index 883a46d..de02f72 100644 --- a/xattr/__init__.py +++ b/xattr/__init__.py @@ -7,7 +7,7 @@ The xattr type wraps a path or file descriptor with a dict-like interface that exposes these extended attributes. """ -__version__ = '0.7.5' +__version__ = '0.7.6' from .lib import (XATTR_NOFOLLOW, XATTR_CREATE, XATTR_REPLACE, XATTR_NOSECURITY, XATTR_MAXNAMELEN, XATTR_FINDERINFO_NAME, diff --git a/xattr/tests/test_xattr.py b/xattr/tests/test_xattr.py index bd201b7..f96ba30 100644 --- a/xattr/tests/test_xattr.py +++ b/xattr/tests/test_xattr.py @@ -18,8 +18,8 @@ class BaseTestXattr(object): d['SUNWattr_ro'] = x['SUNWattr_ro'] d['SUNWattr_rw'] = x['SUNWattr_rw'] - self.assertEqual(x.keys(), d.keys()) - self.assertEqual(x.list(), d.keys()) + self.assertEqual(list(x.keys()), list(d.keys())) + self.assertEqual(list(x.list()), list(d.keys())) self.assertEqual(dict(x), d) x['user.sopal'] = b'foo' @@ -60,7 +60,8 @@ class BaseTestXattr(object): try: assign() - except TypeError, e: + except TypeError: + e = sys.exc_info()[1] self.assertEqual(str(e), msg) def test_symlink_attrs(self): |