Add from __future__ import print_function for python 3 compatability
authorPaul Varner <fuzzyray@gentoo.org>
Wed, 13 Jul 2011 16:00:52 +0000 (11:00 -0500)
committerPaul Varner <fuzzyray@gentoo.org>
Wed, 13 Jul 2011 16:00:52 +0000 (11:00 -0500)
pym/gentoolkit/revdep_rebuild/analyse.py
pym/gentoolkit/revdep_rebuild/assign.py
pym/gentoolkit/revdep_rebuild/cache.py
pym/gentoolkit/revdep_rebuild/collect.py
pym/gentoolkit/revdep_rebuild/rebuild.py
pym/gentoolkit/revdep_rebuild/settings.py
pym/gentoolkit/revdep_rebuild/stuff.py

index 69651ca0754ba6c5f5e9ac6798ef4765f7110e77..f0ef3234e070b3c8afe5495081bba628da3afe41 100644 (file)
@@ -1,5 +1,7 @@
 #!/usr/bin/python
 
+from __future__ import print_function
+
 import os
 import re
 import platform
index 5ed938e888de40456d2a27c461271b3667b4a00b..ed0f69894c93cdf230c474a809eb68f604d8110c 100644 (file)
@@ -1,5 +1,6 @@
 #!/usr/bin/python
 
+from __future__ import print_function
 import os
 import re
 
index ef46314e4f46a3615a0834e8a191dee563832459..a1cb1ecc2b93becea698912879bf7cfbc59ee60a 100644 (file)
@@ -1,5 +1,6 @@
 #!/bin/bash
 
+from __future__ import print_function
 import os
 import time
 
index e8075d8071877cd86f9d86502b8863ed3bad6b44..b9e9c0de4ed212515095e0fe258b7256ab4f8695 100644 (file)
@@ -1,5 +1,6 @@
 #!/usr/bin/python
 
+from __future__ import print_function
 import re
 import os
 import glob
index 9ac4811707f86d4cc2f2ed8b1ccb5c71b0f8e558..d26e186835bf64827592f19acbc9ec5de5081543 100644 (file)
@@ -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
index 96aa491a51918b0aaf4ea4c5b616d9ac0cb7464a..b95e8ffbdc2015e4c5844c970536a6727fa2931a 100644 (file)
@@ -1,5 +1,6 @@
 #!/usr/bin/python
 
+from __future__ import print_function
 import os
 import sys
 
index 1ab21f255db0607a431ffe4021c45990d3ecc6ac..66f5769c1d6ce6335ff4d3512b4a08e63c8c2adc 100644 (file)
@@ -1,5 +1,6 @@
 #!/usr/bin/python
 
+from __future__ import print_function
 import subprocess
 
 import portage