Skip to content

Commit e3cdd1a

Browse files
authored
Clean up a few Python 2-isms (#586)
* CLN : Use of super modified: zarr/indexing.py modified: zarr/n5.py modified: zarr/storage.py modified: zarr/tests/test_convenience.py * CLN : Remove coding cookies from file utf-8 is the default source code file encoding on python 3 * CLN : Remove u-string prefixes the string prefixes dont do anything on python 3 and are visual noise modified: zarr/tests/test_core.py modified: zarr/tests/test_creation.py modified: zarr/tests/test_filters.py modified: zarr/tests/test_hierarchy.py modified: zarr/util.py * CLN : Remove conditional The conditional always evaluates to True on Python 3 so the rest of the if/elif/else conditional has been removed modified: zarr/storage.py * DOC : Add an entry in release doc modified: docs/release.rst * CLN : Fix a pep8 issue remove the import entirely and use os.replace instead of replace modified: zarr/storage.py
1 parent 0e465a2 commit e3cdd1a

32 files changed

+45
-72
lines changed

docs/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python3
2-
# -*- coding: utf-8 -*-
32
#
43
# zarr documentation build configuration file, created by
54
# sphinx-quickstart on Mon May 2 21:40:09 2016.

docs/release.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ Next release
77

88
* `DirectoryStore` now uses `os.scandir`, which should make listing large store
99
faster, :issue:`563`
10+
11+
* Remove a few remaining Python 2-isms.
12+
By :user:`Poruri Sai Rahul <rahulporuri>`; :issue:`393`.
13+
1014
* Fix minor bug in `N5Store`.
1115
By :user:`gsakkis`, :issue:`550`.
1216

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import sys
32

43
from setuptools import setup

zarr/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# flake8: noqa
32
from zarr.codecs import *
43
from zarr.convenience import (consolidate_metadata, copy, copy_all, copy_store,

zarr/attrs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from collections.abc import MutableMapping
32

43
from zarr.meta import parse_metadata

zarr/codecs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# flake8: noqa
32
from numcodecs import *
43
from numcodecs import get_codec, Blosc, Zlib, Delta, AsType, BZ2

zarr/convenience.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Convenience functions for storing and loading data."""
32
import io
43
import itertools

zarr/core.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import binascii
32
import hashlib
43
import itertools

zarr/creation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from warnings import warn
32

43
import numpy as np

zarr/errors.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21

32

43
class MetadataError(Exception):

0 commit comments

Comments
 (0)