Commit 1a8da0bc authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

explicitly use python2.4. support "arg = var" params (which contain white spaces beside "=").

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils/erp5flakes@16391 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ad632be9
#!/usr/bin/python
#!/usr/bin/python2.4
import compiler
import sys
......@@ -86,7 +86,7 @@ def getValidNames(py_script, blacklist_names=()):
for param in py_script.params().split(','):
param = param.strip()
if '=' in param:
name_list.append(param.split('=')[0])
name_list.append(param.split('=')[0].strip())
elif '*' in param:
name_list.append(param.replace('*', ''))
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment