Enable pep8 check

This commit is contained in:
Julien Schueller 2014-06-07 13:10:27 +02:00
commit 7a4cef998c
4 changed files with 22 additions and 12 deletions

View file

@ -5,22 +5,22 @@ Testcase to test %pythonprepend and %pythonappend %pythoncode %pythonbegin
%module python_append
%pythoncode %{
mypath = os.path.dirname("/a/b/c/d.txt")
funcpath = None
staticfuncpath = None
def grabpath():
mypath = os.path.dirname("/a/b/c/d.txt")
funcpath = None
staticfuncpath = None
def grabpath():
return funcpath
def grabstaticpath():
def grabstaticpath():
return staticfuncpath
%}
%pythonappend Test::func %{
funcpath = os.path.dirname(funcpath)
funcpath = os.path.dirname(funcpath)
%}
%pythonprepend Test::func %{
global funcpath
funcpath = mypath
global funcpath
funcpath = mypath
%}
%pythonappend Test::static_func %{
@ -29,9 +29,9 @@ pass
%}
%pythonprepend Test::static_func {
global staticfuncpath
staticfuncpath = mypath
pass
global staticfuncpath
staticfuncpath = mypath
pass
}
%pythonbegin %{