contrib: print oldline within single quotes

Signed-off-by: Jose Alarcon <jose.alarcon@ge.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Jose Alarcon 2015-12-28 11:07:13 +02:00 committed by Martin Jansa
parent b9db247aac
commit 0330c71f59

View File

@ -311,10 +311,10 @@ def follow_rule(i, line):
# if the line still does not respect the rule
if not rules[i][0](line):
# this is a rule disgression
print ("## Disgression: ", rules[i][2], " in:", oldline)
print ("## Disgression: ", rules[i][2], " in: '", oldline, "'")
else:
# just remind user about his/her errors
print ("## Reminder: ", rules[i][2], " in :", oldline)
print ("## Reminder: ", rules[i][2], " in : '", oldline, "'")
return line