Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3fa637b

Browse files
Replace double quotes with single quotes where allowed (#129)
1 parent c3c0d24 commit 3fa637b

4 files changed

Lines changed: 8 additions & 9 deletions

File tree

nrrd/reader.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,6 @@ def read(filename, custom_field_map=None, index_order='F'):
508508
:meth:`write`, :meth:`read_header`, :meth:`read_data`
509509
"""
510510

511-
"""Read a NRRD file and return a tuple (data, header)."""
512511
with open(filename, 'rb') as fh:
513512
header = read_header(fh, custom_field_map)
514513
data = read_data(header, fh, filename, index_order)

nrrd/tests/test_reading.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,15 @@ def test_read_dup_field_error_and_warn(self):
178178
expected_header = {'type': 'float', 'dimension': 3}
179179
header_txt_tuple = ('NRRD0005', 'type: float', 'dimension: 3', 'type: float')
180180

181-
with self.assertRaisesRegex(nrrd.NRRDError, "Duplicate header field: type"):
181+
with self.assertRaisesRegex(nrrd.NRRDError, 'Duplicate header field: type'):
182182
header = nrrd.read_header(header_txt_tuple)
183183

184184
import warnings
185185
with warnings.catch_warnings(record=True) as w:
186186
nrrd.reader.ALLOW_DUPLICATE_FIELD = True
187187
header = nrrd.read_header(header_txt_tuple)
188188

189-
self.assertTrue("Duplicate header field: type" in str(w[0].message))
189+
self.assertTrue('Duplicate header field: type' in str(w[0].message))
190190

191191
self.assertEqual(expected_header, header)
192192
nrrd.reader.ALLOW_DUPLICATE_FIELD = False

nrrd/tests/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import warnings
33

44
# Enable all warnings
5-
warnings.simplefilter("always")
5+
warnings.simplefilter('always')
66

77
DATA_DIR_PATH = os.path.join(os.path.dirname(__file__), 'data')
88
RAW_NRRD_FILE_PATH = os.path.join(DATA_DIR_PATH, 'BallBinary30x30x30.nrrd')

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
'License :: OSI Approved :: MIT License',
3030
'Topic :: Scientific/Engineering',
3131
'Programming Language :: Python',
32-
"Programming Language :: Python :: 3.7",
33-
"Programming Language :: Python :: 3.8",
34-
"Programming Language :: Python :: 3.9",
35-
"Programming Language :: Python :: 3.10",
36-
"Programming Language :: Python :: 3.11"
32+
'Programming Language :: Python :: 3.7',
33+
'Programming Language :: Python :: 3.8',
34+
'Programming Language :: Python :: 3.9',
35+
'Programming Language :: Python :: 3.10',
36+
'Programming Language :: Python :: 3.11',
3737
],
3838
project_urls={
3939
'Tracker': 'https://github.com/mhe/pynrrd/issues',

0 commit comments

Comments
 (0)