Make pre-commit hook pass after python3 switch

This commit is contained in:
Daniel Martí 2016-01-04 17:28:55 +01:00
parent 49ac25270e
commit ee9a296b64
7 changed files with 18 additions and 17 deletions

View file

@ -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):

View file

@ -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()

View file

@ -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__":

View file

@ -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):