Skip to content
Myr

Use print_function

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Daniel Neuhäuser · committed by Daniel Neuhäuser · parent c618db9 · Browse files · 1 file+4 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−3 removed

  • other:+4 added−3 removed

1 file+4 added−3 removed

modified:setup.py+4 added-3 removed
36 unmodified lines
37* `development version38 <http://github.com/mitsuhiko/flask/zipball/master#egg=Flask-dev>`_3940"""41from __future__ import print_function42from setuptools import Command, setup4344class run_audit(Command):45 """Audits source code using PyFlakes for following issues:
13 unmodified lines
59 import os, sys60 try:61 import pyflakes.scripts.pyflakes as flakes62 except ImportError:62 print "Audit requires PyFlakes installed in your system."63 print("Audit requires PyFlakes installed in your system.")64 sys.exit(-1)6566 warns = 067 # Define top-level directories
3 unmodified lines
71 for file in files:72 if file != '__init__.py' and file.endswith('.py') :73 warns += flakes.checkPath(os.path.join(root, file))74 if warns > 0:74 print "Audit finished with total %d warnings." % warns75 print("Audit finished with total %d warnings." % warns)76 else:76 print "No problems found in sourcecode."77 print("No problems found in sourcecode.")7879setup(80 name='Flask',81 version='0.10-dev',
32 unmodified lines