UPDATED: print statements to be Python 3.x compatible

This commit is contained in:
Bruno Tikami
2016-03-01 17:01:58 -03:00
parent abf03d48d6
commit 2efe8255c5
4 changed files with 33 additions and 23 deletions

View File

@ -1,3 +1,5 @@
from __future__ import print_function
import os
import sys
from distutils.util import convert_path
@ -63,9 +65,11 @@ def find_package_data(
or fn.lower() == pattern.lower()):
bad_name = True
if show_ignored:
print >> sys.stderr, (
"Directory %s ignored by pattern %s"
% (fn, pattern))
print(
"Directory %s ignored by pattern %s" % (fn, pattern),
file=sys.stderr
)
break
if bad_name:
continue
@ -86,9 +90,10 @@ def find_package_data(
or fn.lower() == pattern.lower()):
bad_name = True
if show_ignored:
print >> sys.stderr, (
"File %s ignored by pattern %s"
% (fn, pattern))
print(
"File %s ignored by pattern %s" % (fn, pattern),
file=sys.stderr
)
break
if bad_name:
continue