mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-09 00:04:50 +02:00
UPDATED: print statements to be Python 3.x compatible
This commit is contained in:
17
setup.py
17
setup.py
@ -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
|
||||
|
Reference in New Issue
Block a user