fix py2.4 and py2.5

This commit is contained in:
Domen Kožar 2011-02-05 18:19:37 +01:00
parent 99148a9380
commit b2db52ff4e

View File

@ -138,7 +138,7 @@ class PythonScript(base.BaseScript):
script_func = self._func(funcname)
# check for old way of using engine
if not inspect.getargspec(script_func).args:
if not inspect.getargspec(script_func)[0]:
raise TypeError("upgrade/downgrade functions must accept engine"
" parameter (since version 0.5.4)")