Gentoo Archives: gentoo-commits

From: Paul Varner <fuzzyray@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/revdep_rebuild/
Date: Wed, 13 Jul 2011 16:01:10
Message-Id: 4aea8eb88ca81e2c977634567d94f9f68ba0a06c.fuzzyray@gentoo
1 commit: 4aea8eb88ca81e2c977634567d94f9f68ba0a06c
2 Author: Paul Varner <fuzzyray <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 13 16:00:52 2011 +0000
4 Commit: Paul Varner <fuzzyray <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 13 16:00:52 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=4aea8eb8
7
8 Add from __future__ import print_function for python 3 compatability
9
10 ---
11 pym/gentoolkit/revdep_rebuild/analyse.py | 2 ++
12 pym/gentoolkit/revdep_rebuild/assign.py | 1 +
13 pym/gentoolkit/revdep_rebuild/cache.py | 1 +
14 pym/gentoolkit/revdep_rebuild/collect.py | 1 +
15 pym/gentoolkit/revdep_rebuild/rebuild.py | 9 +++++----
16 pym/gentoolkit/revdep_rebuild/settings.py | 1 +
17 pym/gentoolkit/revdep_rebuild/stuff.py | 1 +
18 7 files changed, 12 insertions(+), 4 deletions(-)
19
20 diff --git a/pym/gentoolkit/revdep_rebuild/analyse.py b/pym/gentoolkit/revdep_rebuild/analyse.py
21 index 69651ca..f0ef323 100644
22 --- a/pym/gentoolkit/revdep_rebuild/analyse.py
23 +++ b/pym/gentoolkit/revdep_rebuild/analyse.py
24 @@ -1,5 +1,7 @@
25 #!/usr/bin/python
26
27 +from __future__ import print_function
28 +
29 import os
30 import re
31 import platform
32
33 diff --git a/pym/gentoolkit/revdep_rebuild/assign.py b/pym/gentoolkit/revdep_rebuild/assign.py
34 index 5ed938e..ed0f698 100644
35 --- a/pym/gentoolkit/revdep_rebuild/assign.py
36 +++ b/pym/gentoolkit/revdep_rebuild/assign.py
37 @@ -1,5 +1,6 @@
38 #!/usr/bin/python
39
40 +from __future__ import print_function
41 import os
42 import re
43
44
45 diff --git a/pym/gentoolkit/revdep_rebuild/cache.py b/pym/gentoolkit/revdep_rebuild/cache.py
46 index ef46314..a1cb1ec 100644
47 --- a/pym/gentoolkit/revdep_rebuild/cache.py
48 +++ b/pym/gentoolkit/revdep_rebuild/cache.py
49 @@ -1,5 +1,6 @@
50 #!/bin/bash
51
52 +from __future__ import print_function
53 import os
54 import time
55
56
57 diff --git a/pym/gentoolkit/revdep_rebuild/collect.py b/pym/gentoolkit/revdep_rebuild/collect.py
58 index e8075d8..b9e9c0d 100644
59 --- a/pym/gentoolkit/revdep_rebuild/collect.py
60 +++ b/pym/gentoolkit/revdep_rebuild/collect.py
61 @@ -1,5 +1,6 @@
62 #!/usr/bin/python
63
64 +from __future__ import print_function
65 import re
66 import os
67 import glob
68
69 diff --git a/pym/gentoolkit/revdep_rebuild/rebuild.py b/pym/gentoolkit/revdep_rebuild/rebuild.py
70 index 9ac4811..d26e186 100644
71 --- a/pym/gentoolkit/revdep_rebuild/rebuild.py
72 +++ b/pym/gentoolkit/revdep_rebuild/rebuild.py
73 @@ -10,6 +10,7 @@
74 # Creation date: 2010/10/17
75 # License: BSD
76
77 +from __future__ import print_function
78 import subprocess
79 import os
80 import sys
81 @@ -42,13 +43,13 @@ __productname__ = "revdep-ng"
82
83 def print_usage():
84 print( APP_NAME + ': (' + VERSION +')')
85 - print
86 + print()
87 print('This is free software; see the source for copying conditions.')
88 - print
89 + print()
90 print('Usage: ' + APP_NAME + ' [OPTIONS] [--] [EMERGE_OPTIONS]')
91 - print
92 + print()
93 print('Broken reverse dependency rebuilder, python implementation.')
94 - print
95 + print()
96 print('Available options:')
97 print('''
98 -C, --nocolor Turn off colored output
99
100 diff --git a/pym/gentoolkit/revdep_rebuild/settings.py b/pym/gentoolkit/revdep_rebuild/settings.py
101 index 96aa491..b95e8ff 100644
102 --- a/pym/gentoolkit/revdep_rebuild/settings.py
103 +++ b/pym/gentoolkit/revdep_rebuild/settings.py
104 @@ -1,5 +1,6 @@
105 #!/usr/bin/python
106
107 +from __future__ import print_function
108 import os
109 import sys
110
111
112 diff --git a/pym/gentoolkit/revdep_rebuild/stuff.py b/pym/gentoolkit/revdep_rebuild/stuff.py
113 index 1ab21f2..66f5769 100644
114 --- a/pym/gentoolkit/revdep_rebuild/stuff.py
115 +++ b/pym/gentoolkit/revdep_rebuild/stuff.py
116 @@ -1,5 +1,6 @@
117 #!/usr/bin/python
118
119 +from __future__ import print_function
120 import subprocess
121
122 import portage