git @ Cat's Eye Technologies Maxixe / support-python-3
Update source to run under both Python 2 and Python 3. Chris Pressey 3 years ago
3 changed file(s) with 5 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
1515 proof = p.proof()
1616 c = Checker(proof)
1717 c.check()
18 print 'ok'
18 print('ok')
1919 sys.exit(0)
00 -> Functionality "Check Maxixe proof" is implemented by
1 -> shell command "bin/maxixe %(test-body-file)"
1 -> shell command "python2 bin/maxixe %(test-body-file)"
22
3 -> Functionality "Check Maxixe proof" is implemented by
4 -> shell command "python3 bin/maxixe %(test-body-file)"
66 def __repr__(self):
77 return "%s(%s)" % (
88 self.__class__.__name__,
9 ', '.join(['%s=%r' % (k, v) for k, v in self.attrs.iteritems()])
9 ', '.join(['%s=%r' % (k, v) for k, v in self.attrs.items()])
1010 )
1111
1212 def __getattr__(self, name):