summaryrefslogtreecommitdiff
path: root/scripts/gmock_doctor.py
diff options
context:
space:
mode:
authorvladlosev <vladlosev@8415998a-534a-0410-bf83-d39667b30386>2010-09-29 00:38:12 +0000
committervladlosev <vladlosev@8415998a-534a-0410-bf83-d39667b30386>2010-09-29 00:38:12 +0000
commit8ee5a6055f18d4d462b678ac39270e2507bb3586 (patch)
treefc057d0c88a531434ce6713234a1061b1456cd41 /scripts/gmock_doctor.py
parentd330d37c687c9c90c04194fd799a224026146e10 (diff)
downloadgooglemock-8ee5a6055f18d4d462b678ac39270e2507bb3586.tar.gz
Factors out email address in Google Mock Doctor messages.
git-svn-id: http://googlemock.googlecode.com/svn/trunk@326 8415998a-534a-0410-bf83-d39667b30386
Diffstat (limited to 'scripts/gmock_doctor.py')
-rwxr-xr-xscripts/gmock_doctor.py24
1 files changed, 14 insertions, 10 deletions
diff --git a/scripts/gmock_doctor.py b/scripts/gmock_doctor.py
index 1918cf6..4a41abf 100755
--- a/scripts/gmock_doctor.py
+++ b/scripts/gmock_doctor.py
@@ -38,6 +38,8 @@ import sys
_VERSION = '1.0.3'
+_EMAIL = 'googlemock@googlegroups.com'
+
_COMMON_GMOCK_SYMBOLS = [
# Matchers
'_',
@@ -563,16 +565,17 @@ def main():
diagnoses = Diagnose(msg)
count = len(diagnoses)
if not count:
- print '\nGcc complained:'
- print '8<------------------------------------------------------------'
- print msg
- print '------------------------------------------------------------>8'
- print """
+ print ("""
+Your compiler complained:
+8<------------------------------------------------------------
+%s
+------------------------------------------------------------>8
+
Uh-oh, I'm not smart enough to figure out what the problem is. :-(
However...
If you send your source code and the compiler's error messages to
-googlemock@googlegroups.com, you can be helped and I can get smarter --
-win-win for us!"""
+%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',
@@ -586,10 +589,11 @@ win-win for us!"""
if count > 1:
print '\n#%s:' % (i,)
print d
- print """
+ print ("""
How did I do? If you think I'm wrong or unhelpful, please send your
-source code and compiler's error messages to googlemock@googlegroups.com.
-Then you can be helped and I can get smarter -- I promise I won't be upset!"""
+source code and the compiler's error messages to %s.
+Then you can be helped and I can get smarter -- I promise I won't be upset!""" %
+ _EMAIL)
if __name__ == '__main__':