mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-11 01:30:30 +03:00
Make pre-commit hook pass after python3 switch
This commit is contained in:
parent
49ac25270e
commit
ee9a296b64
7 changed files with 18 additions and 17 deletions
|
|
@ -37,7 +37,7 @@ class BuildTest(unittest.TestCase):
|
|||
break
|
||||
return True
|
||||
else:
|
||||
print 'no build-tools found: ' + build_tools
|
||||
print('no build-tools found: ' + build_tools)
|
||||
return False
|
||||
|
||||
def _find_all(self):
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ class CommonTest(unittest.TestCase):
|
|||
break
|
||||
return True
|
||||
else:
|
||||
print 'no build-tools found: ' + build_tools
|
||||
print('no build-tools found: ' + build_tools)
|
||||
return False
|
||||
|
||||
def _find_all(self):
|
||||
|
|
@ -61,7 +61,7 @@ class CommonTest(unittest.TestCase):
|
|||
if self._set_build_tools():
|
||||
self._find_all()
|
||||
else:
|
||||
print 'no build-tools found: ' + build_tools
|
||||
print('no build-tools found: ' + build_tools)
|
||||
|
||||
def testIsApkDebuggable(self):
|
||||
config = dict()
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ class InstallTest(unittest.TestCase):
|
|||
devices = fdroidserver.install.devices()
|
||||
self.assertIsInstance(devices, list, 'install.devices() did not return a list!')
|
||||
for device in devices:
|
||||
self.assertIsInstance(device, basestring)
|
||||
self.assertIsInstance(device, str)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ class UpdateTest(unittest.TestCase):
|
|||
self.assertEquals(sig.decode('hex'), pysig.decode('hex'),
|
||||
"the length of the two sigs are different!")
|
||||
except TypeError as e:
|
||||
print e
|
||||
print(e)
|
||||
self.assertTrue(False, 'TypeError!')
|
||||
|
||||
def testBadGetsig(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue