From 596cb9c7e287abbb98c64974fb4944d522cb6b5a Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 28 Apr 2012 18:02:01 +0200 Subject: Replaced print statement by print function (forward compatibility syntax). --- django/bin/profiling/gather_profile_stats.py | 2 +- django/bin/unique-messages.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'django/bin') diff --git a/django/bin/profiling/gather_profile_stats.py b/django/bin/profiling/gather_profile_stats.py index 2274eadee9..0244eb6034 100644 --- a/django/bin/profiling/gather_profile_stats.py +++ b/django/bin/profiling/gather_profile_stats.py @@ -24,7 +24,7 @@ def gather_stats(p): prof = stats.load(os.path.join(p, f)) else: continue - print "Processing %s" % f + print("Processing %s" % f) if path in profiles: profiles[path].add(prof) else: diff --git a/django/bin/unique-messages.py b/django/bin/unique-messages.py index c43374a5b9..fbc74f8f46 100755 --- a/django/bin/unique-messages.py +++ b/django/bin/unique-messages.py @@ -11,7 +11,7 @@ def unique_messages(): elif os.path.isdir('locale'): basedir = os.path.abspath('locale') else: - print "This script should be run from the Django Git tree or your project or app tree." + print("This script should be run from the Django Git tree or your project or app tree.") sys.exit(1) for (dirpath, dirnames, filenames) in os.walk(basedir): -- cgit v1.3