diff options
author | Tushar Gohad <tusharsg@gmail.com> | 2015-04-06 10:21:47 -0700 |
---|---|---|
committer | Tushar Gohad <tusharsg@gmail.com> | 2015-04-06 10:21:47 -0700 |
commit | 29c20a8d23d81e7c12546c3e3cf7b91d4061bcf7 (patch) | |
tree | 5165e68c180ba9c5ca93cfe7988cc32bd965cfb1 | |
parent | 9b2ed408c1ff526799d72350cf6c953f105f2b2f (diff) | |
parent | 0155a20b64c248b5c874ce2f8d39f4c0c09c54b2 (diff) | |
download | pyeclib-29c20a8d23d81e7c12546c3e3cf7b91d4061bcf7.tar.gz |
Merged in zaitcev/pyeclib/py3_prints (pull request #23)
Fix a few print statements for py3
-rw-r--r-- | test/test_pyeclib_api.py | 2 | ||||
-rw-r--r-- | test/test_pyeclib_c.py | 2 | ||||
-rw-r--r-- | tools/pyeclib_conf_tool.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/test_pyeclib_api.py b/test/test_pyeclib_api.py index b00abc0..71552c1 100644 --- a/test/test_pyeclib_api.py +++ b/test/test_pyeclib_api.py @@ -536,7 +536,7 @@ class TestPyECLibDriver(unittest.TestCase): pyeclib_driver.reconstruct([fragments[0]], [1,2,3,4,5,6]) except ECDriverError as e: hit_exception = True - print e.error_str.__str__() + print(e.error_str.__str__()) self.assertTrue(e.error_str.__str__().find("Insufficient number of fragments") > -1) self.assertTrue(hit_exception) diff --git a/test/test_pyeclib_c.py b/test/test_pyeclib_c.py index c7ebb83..eaa93dc 100644 --- a/test/test_pyeclib_c.py +++ b/test/test_pyeclib_c.py @@ -40,7 +40,7 @@ def collect_available_backends(): else: handle = pyeclib_c.init(10, 4, ec_type.value) available_backends.append(ec_type.name) - print ec_type.name + print(ec_type.name) except: pass return available_backends diff --git a/tools/pyeclib_conf_tool.py b/tools/pyeclib_conf_tool.py index 958fc43..7f7a837 100644 --- a/tools/pyeclib_conf_tool.py +++ b/tools/pyeclib_conf_tool.py @@ -245,7 +245,7 @@ for scheme in schemes: timer.reset() -print results +print(results) results.sort(lambda x, y: (int)((1000 * x[1]) - (1000 * y[1]))) for i in range(len(results)): |