Permalink
Browse files

Use print function everywhere

  • Loading branch information...
treyhunner committed Apr 15, 2014
1 parent 1e66320 commit d8fd9b1837757061ecfbaa69291aa03b55fb9685
Showing with 7 additions and 5 deletions.
  1. +2 −1 richard/base/browserid.py
  2. +5 −4 scripts/update_copyrights.py
@@ -1,3 +1,4 @@
+from __future__ import print_function
import urlparse
from django.http import HttpResponseRedirect
@@ -11,7 +12,7 @@
class RichardVerify(Verify):
def login_success(self):
"""Send to new_user view if new user, otherwise send on their way"""
- print 'login success'
+ print('login success')
response = super(RichardVerify, self).login_success()
# If this user has never logged in before, send them to our
@@ -3,6 +3,7 @@
Updates copyright statements in all html and python files.
"""
+from __future__ import print_function
import os
import re
import sys
@@ -26,14 +27,14 @@ def copyright_py(filename):
def main(argv):
if '--doit' not in argv:
- print 'Usage: {0} --doit'.format(__file__)
- print 'Updates the copyright on all Python files.'
+ print('Usage: {0} --doit'.format(__file__))
+ print('Updates the copyright on all Python files.')
return 1
top_level = os.path.abspath(
os.path.join(os.path.dirname(__file__), os.pardir))
- print 'Starting at {0}'.format(top_level)
+ print('Starting at {0}'.format(top_level))
for root, dirs, files in os.walk(top_level):
for name in files:
@@ -43,7 +44,7 @@ def main(argv):
if name.endswith(('.py', '.html')):
filename = os.path.join(root, name)
- print 'Fixing {0}'.format(filename)
+ print('Fixing {0}'.format(filename))
copyright_py(filename)
return 0

0 comments on commit d8fd9b1

Please sign in to comment.