Commit 879e0344 authored by Yann Leboulanger's avatar Yann Leboulanger

fix some py2->py3 missing things. Fixes #9019

parent 6d868546
......@@ -3,13 +3,13 @@ This module is in charge of taking care of all the infomation related to
individual files. Files are identified by the account name and its sid.
>>> print FilesProp.getFileProp('jabberid', '10')
>>> print(FilesProp.getFileProp('jabberid', '10'))
None
>>> fp = FilesProp()
Traceback (most recent call last):
...
Exception: this class should not be instatiated
>>> print FilesProp.getAllFileProp()
>>> print(FilesProp.getAllFileProp())
[]
>>> fp = FilesProp.getNewFileProp('jabberid', '10')
>>> fp2 = FilesProp.getFileProp('jabberid', '10')
......
......@@ -153,7 +153,7 @@ if __name__ == '__main__':
print("test 1\n" + Generator.create_xhtml("""
test::
>>> print 1
>>> print(1)
1
*I* like it. It is for :JEP:`71`
......
#!/usr/bin/env python
import os
import sys
if os.getcwd().endswith('dev'):
os.chdir('../../') # we were in scripts/dev
ret = 0
ret += os.system("make clean > " + os.devnull)
ret += os.system("make > " + os.devnull)
ret += os.system("make check > " + os.devnull)
if ret == 0:
print "Build successfull"
sys.exit(0)
else:
print >>sys.stderr, "Build failed"
sys.exit(1)
#!/usr/bin/env python
# (C) 2006 Nikos Kouremenos <kourem@gmail.com>
#!/usr/bin/env python3
# Copyright (C) 2006 Nikos Kouremenos <kourem@gmail.com>
# Copyright (C) 2016 Yann Leboulanger <asterix AT lagaule.org>
import os
import sys
......@@ -7,4 +8,4 @@ import sys
if os.getcwd().endswith('dev'):
os.chdir('../../gajim/') # we were in scripts/dev
os.system("pylint --include-ids=y --additional-builtins='_' --disable-msg=C0103,C0111,W0703,W0511,W0142,W0613,R0201 --disable-checker=design " + "".join(sys.argv[1:]))
os.system("pylint3 --generated-members= --additional-builtins='_' --disable=C0103,C0111,W0703,W0511,W0142,W0613,R0201,design " + "".join(sys.argv[1:]))
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