Browse Source

Use print_function

pull/736/head
Daniel Neuhäuser 12 years ago
parent
commit
506db0eab2
  1. 7
      setup.py

7
setup.py

@ -38,6 +38,7 @@ Links
<http://github.com/mitsuhiko/flask/zipball/master#egg=Flask-dev>`_ <http://github.com/mitsuhiko/flask/zipball/master#egg=Flask-dev>`_
""" """
from __future__ import print_function
from setuptools import Command, setup from setuptools import Command, setup
class run_audit(Command): class run_audit(Command):
@ -59,7 +60,7 @@ class run_audit(Command):
try: try:
import pyflakes.scripts.pyflakes as flakes import pyflakes.scripts.pyflakes as flakes
except ImportError: except ImportError:
print "Audit requires PyFlakes installed in your system." print("Audit requires PyFlakes installed in your system.")
sys.exit(-1) sys.exit(-1)
warns = 0 warns = 0
@ -71,9 +72,9 @@ class run_audit(Command):
if file != '__init__.py' and file.endswith('.py') : if file != '__init__.py' and file.endswith('.py') :
warns += flakes.checkPath(os.path.join(root, file)) warns += flakes.checkPath(os.path.join(root, file))
if warns > 0: if warns > 0:
print "Audit finished with total %d warnings." % warns print("Audit finished with total %d warnings." % warns)
else: else:
print "No problems found in sourcecode." print("No problems found in sourcecode.")
setup( setup(
name='Flask', name='Flask',

Loading…
Cancel
Save