diff options
author | vladlosev <vladlosev@8415998a-534a-0410-bf83-d39667b30386> | 2010-09-29 00:38:12 +0000 |
---|---|---|
committer | vladlosev <vladlosev@8415998a-534a-0410-bf83-d39667b30386> | 2010-09-29 00:38:12 +0000 |
commit | 662d8a23502173db60e2d9d600c508e06d8ba173 (patch) | |
tree | fc057d0c88a531434ce6713234a1061b1456cd41 /scripts/gmock_doctor.py | |
parent | d43acacf5070eabfcecb2cd9a4072bf9036eadfc (diff) | |
download | googletest-662d8a23502173db60e2d9d600c508e06d8ba173.tar.gz googletest-662d8a23502173db60e2d9d600c508e06d8ba173.tar.bz2 googletest-662d8a23502173db60e2d9d600c508e06d8ba173.zip |
Factors out email address in Google Mock Doctor messages.
Diffstat (limited to 'scripts/gmock_doctor.py')
-rwxr-xr-x | scripts/gmock_doctor.py | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/scripts/gmock_doctor.py b/scripts/gmock_doctor.py index 1918cf6c..4a41abfc 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__': |