[python-debian/master 19/36] Avoid using 0L, since Python 3 doesn't support it; 0 will do here.

Colin Watson cjwatson at canonical.com
Mon Oct 8 07:41:22 UTC 2012


---
 lib/debian/arfile.py  |    2 +-
 tests/test_debfile.py |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/debian/arfile.py b/lib/debian/arfile.py
index 2adfc9c..841b716 100644
--- a/lib/debian/arfile.py
+++ b/lib/debian/arfile.py
@@ -282,7 +282,7 @@ class ArMember(object):
         cur = self.__fp.tell()
         
         if cur < self.__offset:
-            return 0L
+            return 0
         else:
             return cur - self.__offset
 
diff --git a/tests/test_debfile.py b/tests/test_debfile.py
index c9287cc..1f27c71 100755
--- a/tests/test_debfile.py
+++ b/tests/test_debfile.py
@@ -71,7 +71,7 @@ class TestArFile(unittest.TestCase):
             self.assertEqual(m.tell(), i, "failed tell()")
             
             m.seek(-i, 1)
-            self.assertEqual(m.tell(), 0L, "failed tell()")
+            self.assertEqual(m.tell(), 0, "failed tell()")
 
         m.seek(0)
         self.assertRaises(IOError, m.seek, -1, 0)
-- 
1.7.2.5





More information about the pkg-python-debian-commits mailing list