summaryrefslogtreecommitdiff
path: root/apt/package.py
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-12-31 23:25:13 +0100
committerMichael Vogt <mvo@debian.org>2014-01-05 20:04:30 +0100
commit3bf9c3fe4d19ed4d985dc8b7747a737699f46a7e (patch)
tree75ad948c351605fd7ac50b176f1149c4e2a513e4 /apt/package.py
parente3c26754af1891d2c50993730467fc9335ec5f09 (diff)
downloadpython-apt-3bf9c3fe4d19ed4d985dc8b7747a737699f46a7e.tar.gz
make test_pep8.py pass
Diffstat (limited to 'apt/package.py')
-rw-r--r--apt/package.py12
1 files changed, 2 insertions, 10 deletions
diff --git a/apt/package.py b/apt/package.py
index 79dac71d..d4217195 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -26,16 +26,8 @@ import re
import socket
import subprocess
import urllib2
-try:
- from collections import Mapping, Sequence
-except ImportError:
- # (for Python < 2.6) pylint: disable-msg=C0103
- Sequence = Mapping = object
-
-try:
- from collections import Sequence
-except ImportError:
- Sequence = object
+
+from collections import Mapping, Sequence
import apt_pkg
import apt.progress.text