From 4aea8eb88ca81e2c977634567d94f9f68ba0a06c Mon Sep 17 00:00:00 2001 From: Paul Varner Date: Wed, 13 Jul 2011 11:00:52 -0500 Subject: [PATCH] Add from __future__ import print_function for python 3 compatability --- pym/gentoolkit/revdep_rebuild/analyse.py | 2 ++ pym/gentoolkit/revdep_rebuild/assign.py | 1 + pym/gentoolkit/revdep_rebuild/cache.py | 1 + pym/gentoolkit/revdep_rebuild/collect.py | 1 + pym/gentoolkit/revdep_rebuild/rebuild.py | 9 +++++---- pym/gentoolkit/revdep_rebuild/settings.py | 1 + pym/gentoolkit/revdep_rebuild/stuff.py | 1 + 7 files changed, 12 insertions(+), 4 deletions(-) diff --git a/pym/gentoolkit/revdep_rebuild/analyse.py b/pym/gentoolkit/revdep_rebuild/analyse.py index 69651ca..f0ef323 100644 --- a/pym/gentoolkit/revdep_rebuild/analyse.py +++ b/pym/gentoolkit/revdep_rebuild/analyse.py @@ -1,5 +1,7 @@ #!/usr/bin/python +from __future__ import print_function + import os import re import platform diff --git a/pym/gentoolkit/revdep_rebuild/assign.py b/pym/gentoolkit/revdep_rebuild/assign.py index 5ed938e..ed0f698 100644 --- a/pym/gentoolkit/revdep_rebuild/assign.py +++ b/pym/gentoolkit/revdep_rebuild/assign.py @@ -1,5 +1,6 @@ #!/usr/bin/python +from __future__ import print_function import os import re diff --git a/pym/gentoolkit/revdep_rebuild/cache.py b/pym/gentoolkit/revdep_rebuild/cache.py index ef46314..a1cb1ec 100644 --- a/pym/gentoolkit/revdep_rebuild/cache.py +++ b/pym/gentoolkit/revdep_rebuild/cache.py @@ -1,5 +1,6 @@ #!/bin/bash +from __future__ import print_function import os import time diff --git a/pym/gentoolkit/revdep_rebuild/collect.py b/pym/gentoolkit/revdep_rebuild/collect.py index e8075d8..b9e9c0d 100644 --- a/pym/gentoolkit/revdep_rebuild/collect.py +++ b/pym/gentoolkit/revdep_rebuild/collect.py @@ -1,5 +1,6 @@ #!/usr/bin/python +from __future__ import print_function import re import os import glob diff --git a/pym/gentoolkit/revdep_rebuild/rebuild.py b/pym/gentoolkit/revdep_rebuild/rebuild.py index 9ac4811..d26e186 100644 --- a/pym/gentoolkit/revdep_rebuild/rebuild.py +++ b/pym/gentoolkit/revdep_rebuild/rebuild.py @@ -10,6 +10,7 @@ # Creation date: 2010/10/17 # License: BSD +from __future__ import print_function import subprocess import os import sys @@ -42,13 +43,13 @@ __productname__ = "revdep-ng" def print_usage(): print( APP_NAME + ': (' + VERSION +')') - print + print() print('This is free software; see the source for copying conditions.') - print + print() print('Usage: ' + APP_NAME + ' [OPTIONS] [--] [EMERGE_OPTIONS]') - print + print() print('Broken reverse dependency rebuilder, python implementation.') - print + print() print('Available options:') print(''' -C, --nocolor Turn off colored output diff --git a/pym/gentoolkit/revdep_rebuild/settings.py b/pym/gentoolkit/revdep_rebuild/settings.py index 96aa491..b95e8ff 100644 --- a/pym/gentoolkit/revdep_rebuild/settings.py +++ b/pym/gentoolkit/revdep_rebuild/settings.py @@ -1,5 +1,6 @@ #!/usr/bin/python +from __future__ import print_function import os import sys diff --git a/pym/gentoolkit/revdep_rebuild/stuff.py b/pym/gentoolkit/revdep_rebuild/stuff.py index 1ab21f2..66f5769 100644 --- a/pym/gentoolkit/revdep_rebuild/stuff.py +++ b/pym/gentoolkit/revdep_rebuild/stuff.py @@ -1,5 +1,6 @@ #!/usr/bin/python +from __future__ import print_function import subprocess import portage -- 2.26.2