diff options
author | Carlos Martín Nieto <cmn@elego.de> | 2013-01-04 23:01:36 +0400 |
---|---|---|
committer | Carlos Martín Nieto <cmn@elego.de> | 2013-01-04 23:03:02 +0400 |
commit | 702c3bf70e0542d57636897eccb36b88a676a6fd (patch) | |
tree | 7512f2df0fe49b409f340d293bdecbf9d62027df /tests-clar/generate.py | |
parent | 1d5d4186719df67cf8636b7c710983dec25e4e83 (diff) |
clar: make it compatible with python3
Diffstat (limited to 'tests-clar/generate.py')
-rw-r--r-- | tests-clar/generate.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests-clar/generate.py b/tests-clar/generate.py index 74b69bda3..e7115dbbf 100644 --- a/tests-clar/generate.py +++ b/tests-clar/generate.py @@ -154,7 +154,7 @@ class TestSuite(object): cache = {} try: - fp = open(path) + fp = open(path, 'rb') cache = pickle.load(fp) fp.close() except IOError: @@ -164,7 +164,7 @@ class TestSuite(object): def save_cache(self): path = os.path.join(self.path, '.clarcache') - with open(path, 'w') as cache: + with open(path, 'wb') as cache: pickle.dump(self.modules, cache) def load(self, force = False): @@ -233,5 +233,5 @@ if __name__ == '__main__': suite.load(options.force) suite.disable(options.excluded) if suite.write(): - print "Written `clar.suite` (%d suites)" % len(suite.modules) + print("Written `clar.suite` (%d suites)" % len(suite.modules)) |