aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBilly Donahue <BillyDonahue@users.noreply.github.com>2015-08-30 12:09:32 -0400
committerBilly Donahue <BillyDonahue@users.noreply.github.com>2015-08-30 12:09:32 -0400
commit24ecc348b9a02abb39bc09a40c70bc68e1a548e4 (patch)
tree8bde2cfe560bf401d71690e5915031d31b5c036e
parent60c85a40ff11e5c01e47f2ff29dc254b083e1e32 (diff)
parentac830d6b197f8b8dad24782d7900c69cee0ab77e (diff)
downloadgoogletest-24ecc348b9a02abb39bc09a40c70bc68e1a548e4.tar.gz
googletest-24ecc348b9a02abb39bc09a40c70bc68e1a548e4.tar.bz2
googletest-24ecc348b9a02abb39bc09a40c70bc68e1a548e4.zip
Merge pull request #571 from srouquette/python3
Fix gmock_doctor.py for Python3
-rwxr-xr-xgooglemock/scripts/gmock_doctor.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/googlemock/scripts/gmock_doctor.py b/googlemock/scripts/gmock_doctor.py
index 9ac46535..74992bc7 100755
--- a/googlemock/scripts/gmock_doctor.py
+++ b/googlemock/scripts/gmock_doctor.py
@@ -599,7 +599,7 @@ def main():
print ('Please copy and paste the compiler errors here. Press c-D when '
'you are done:')
else:
- print 'Waiting for compiler errors on stdin . . .'
+ print ('Waiting for compiler errors on stdin . . .')
msg = sys.stdin.read().strip()
diagnoses = Diagnose(msg)
@@ -617,18 +617,18 @@ If you send your source code and the compiler's error messages to
%s, you can be helped and I can get smarter --
win-win for us!""" % (msg, _EMAIL))
else:
- print '------------------------------------------------------------'
- print 'Your code appears to have the following',
+ print ('------------------------------------------------------------')
+ print ('Your code appears to have the following',)
if count > 1:
- print '%s diseases:' % (count,)
+ print ('%s diseases:' % (count,))
else:
- print 'disease:'
+ print ('disease:')
i = 0
for d in diagnoses:
i += 1
if count > 1:
- print '\n#%s:' % (i,)
- print d
+ print ('\n#%s:' % (i,))
+ print (d)
print ("""
How did I do? If you think I'm wrong or unhelpful, please send your
source code and the compiler's error messages to %s.