diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2012-01-10 11:07:12 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2012-01-10 11:07:12 +0100 |
| commit | 6c8269fc130c66d4a450a004af4e120e074808ce (patch) | |
| tree | 74636d5539386a998af5c35833574135e2ab00d0 | |
| parent | 1fc5fddddd6041eb17331d9943f7f489bd53314a (diff) | |
| download | python-apt-6c8269fc130c66d4a450a004af4e120e074808ce.tar.gz | |
pyflakes fixes
| -rw-r--r-- | aptsources/distinfo.py | 1 | ||||
| -rw-r--r-- | aptsources/distro.py | 4 | ||||
| -rw-r--r-- | aptsources/sourceslist.py | 3 |
3 files changed, 2 insertions, 6 deletions
diff --git a/aptsources/distinfo.py b/aptsources/distinfo.py index ec162c2d..ddaeb218 100644 --- a/aptsources/distinfo.py +++ b/aptsources/distinfo.py @@ -24,7 +24,6 @@ import errno import logging import os -from os import getenv from subprocess import Popen, PIPE import re diff --git a/aptsources/distro.py b/aptsources/distro.py index b4056b27..27d7f859 100644 --- a/aptsources/distro.py +++ b/aptsources/distro.py @@ -25,10 +25,8 @@ import gettext import logging import re import os -import sys from xml.etree.ElementTree import ElementTree -import gettext from apt_pkg import gettext as _ @@ -94,7 +92,7 @@ class Distribution(object): comps = [] cdrom_comps = [] enabled_comps = [] - source_code = [] + #source_code = [] for source in self.sourceslist.list: if (source.invalid == False and self.is_codename(source.dist) and diff --git a/aptsources/sourceslist.py b/aptsources/sourceslist.py index e3b8c9be..03377258 100644 --- a/aptsources/sourceslist.py +++ b/aptsources/sourceslist.py @@ -28,13 +28,12 @@ import logging import os.path import re import shutil -import sys import time import apt_pkg from distinfo import DistInfo from apt.deprecation import function_deprecated_by -from apt_pkg import gettext as _ +#from apt_pkg import gettext as _ # some global helpers |
