summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongjoon Hyun <dongjoon@apache.org>2016-02-18 12:46:24 -0800
committerDongjoon Hyun <dongjoon@apache.org>2016-02-18 12:57:59 -0800
commit3b358631e7bf2d43c664aa1f4b3f23db773b3df5 (patch)
treed4a525e4d608b94de1422c52dd61657378e61a36
parentec5bd813061ceb766cf78d04c6d72a80804110e0 (diff)
downloadnumpy-3b358631e7bf2d43c664aa1f4b3f23db773b3df5.tar.gz
MAINT: Remove redundant trailing semicolons.
-rw-r--r--doc/newdtype_example/setup.py2
-rw-r--r--numpy/core/tests/test_multiarray.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/newdtype_example/setup.py b/doc/newdtype_example/setup.py
index 2222f0de1..d7ab040a1 100644
--- a/doc/newdtype_example/setup.py
+++ b/doc/newdtype_example/setup.py
@@ -7,7 +7,7 @@ def configuration(parent_package = '', top_path=None):
config = Configuration('floatint', parent_package, top_path)
config.add_extension('floatint',
- sources = ['floatint.c']);
+ sources = ['floatint.c'])
return config
setup(configuration=configuration)
diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py
index d57e7c106..3bbfed569 100644
--- a/numpy/core/tests/test_multiarray.py
+++ b/numpy/core/tests/test_multiarray.py
@@ -3587,7 +3587,7 @@ class TestIO(object):
# but for now test for proper errors
b = io.BytesIO()
assert_raises(IOError, np.fromfile, b, np.uint8, 80)
- d = np.ones(7);
+ d = np.ones(7)
assert_raises(IOError, lambda x: x.tofile(b), d)
def test_bool_fromstring(self):
@@ -3676,7 +3676,7 @@ class TestIO(object):
d = np.zeros(4 * 1024 ** 2)
d.tofile(self.filename)
assert_equal(os.path.getsize(self.filename), d.nbytes)
- assert_array_equal(d, np.fromfile(self.filename));
+ assert_array_equal(d, np.fromfile(self.filename))
# check offset
with open(self.filename, "r+b") as f:
f.seek(d.nbytes)