|
a/AlluraTesting/alluratest/test_syntax.py |
|
b/AlluraTesting/alluratest/test_syntax.py |
|
... |
|
... |
64 |
'Allura/allura/command/',
|
64 |
'Allura/allura/command/',
|
65 |
'Allura/ldap-setup.py',
|
65 |
'Allura/ldap-setup.py',
|
66 |
'Allura/ldap-userconfig.py',
|
66 |
'Allura/ldap-userconfig.py',
|
67 |
'Allura/ez_setup/',
|
67 |
'Allura/ez_setup/',
|
68 |
'Allura/push_re.py',
|
68 |
'Allura/push_re.py',
|
|
|
69 |
'Allura/allura/lib/AsciiDammit.py',
|
69 |
'ForgeMail/forgemail/sstress.py',
|
70 |
'ForgeMail/forgemail/sstress.py',
|
70 |
]
|
71 |
]
|
71 |
if run(find_py + " | grep -v '" + "' | grep -v '".join(skips) + "' | xargs grep -v '^ *#' | grep 'print ' | grep -E -v '(pprint|#pragma: ?printok)' ") != 1:
|
72 |
if run(find_py + " | grep -v '" + "' | grep -v '".join(skips) + "' | xargs grep -v '^ *#' | grep 'print ' | grep -E -v '(pprint|#pragma: ?printok)' ") != 1:
|
72 |
raise Exception("These should use logging instead of print")
|
73 |
raise Exception("These should use logging instead of print")
|
73 |
|
74 |
|