summaryrefslogtreecommitdiff
path: root/aptsources
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2014-01-06 13:24:51 +0100
committerJulian Andres Klode <jak@debian.org>2014-01-06 13:24:51 +0100
commit8b8a55f10ca47fe297fbb9b16a8e100658c60df3 (patch)
treed2e941190673478d7d92821715ac8df476e17843 /aptsources
parentf6c94dbe9cbfa645b19832842183e248f940f829 (diff)
downloadpython-apt-8b8a55f10ca47fe297fbb9b16a8e100658c60df3.tar.gz
Use print_function everywhere
This brings the code closer to Python 3. Automatically converted using 2to3 -f print.
Diffstat (limited to 'aptsources')
-rw-r--r--aptsources/__init__.py2
-rw-r--r--aptsources/sourceslist.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/aptsources/__init__.py b/aptsources/__init__.py
index 0929e12b..d711b4f3 100644
--- a/aptsources/__init__.py
+++ b/aptsources/__init__.py
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import apt_pkg
diff --git a/aptsources/sourceslist.py b/aptsources/sourceslist.py
index 1b68d52e..91ce8eff 100644
--- a/aptsources/sourceslist.py
+++ b/aptsources/sourceslist.py
@@ -23,7 +23,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
-from __future__ import absolute_import
+from __future__ import absolute_import, print_function
import glob
import logging