Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 70dedff

Browse files
hpfn-drenzon
authored andcommitted
Atualizar 'print >> sys.stderr' para Python 3
close #25
1 parent 75ebce4 commit 70dedff

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

setup.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ def find_package_data(
7070
or fn.lower() == pattern.lower()):
7171
bad_name = True
7272
if show_ignored:
73-
print >> sys.stderr, (
74-
"Directory %s ignored by pattern %s"
75-
% (fn, pattern))
73+
print("Directory %s ignored by pattern %s" %
74+
(fn, pattern), file=sys.stderr)
7675
break
7776
if bad_name:
7877
continue
@@ -93,9 +92,8 @@ def find_package_data(
9392
or fn.lower() == pattern.lower()):
9493
bad_name = True
9594
if show_ignored:
96-
print >> sys.stderr, (
97-
"File %s ignored by pattern %s"
98-
% (fn, pattern))
95+
print("File %s ignored by pattern %s" %
96+
(fn, pattern), file=sys.stderr)
9997
break
10098
if bad_name:
10199
continue

0 commit comments

Comments
 (0)