Skip to content

Commit 4c99200

Browse files
Delete Python 2 leftover
Detected by pyugrade.
1 parent be26785 commit 4c99200

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

numcodecs/tests/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def check_backwards_compatibility(codec_id, arrays, codecs, precision=None, pref
276276
with open(codec_fn, mode='w') as cf:
277277
_json.dump(codec.get_config(), cf, sort_keys=True, indent=4)
278278
# load config and compare with expectation
279-
with open(codec_fn, mode='r') as cf:
279+
with open(codec_fn) as cf:
280280
config = _json.load(cf)
281281
assert codec == get_codec(config)
282282

numcodecs/vlen.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class VLenUTF8(Codec):
9898
for i in range(n_items):
9999
u = input_values[i]
100100
if u is None or u == 0: # treat these as missing value, normalize
101-
u = u''
101+
u = ''
102102
elif not PyUnicode_Check(u):
103103
raise TypeError('expected unicode string, found %r' % u)
104104
b = PyUnicode_AsUTF8String(u)

0 commit comments

Comments
 (0)