Skip to content

Commit

Permalink
drop six
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Oct 30, 2021
1 parent bd3bae1 commit d7d894d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion miutil/imio/nii.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,20 @@
import numbers
import os.path
import re
import sys

import nibabel as nib
import numpy as np
from six import string_types

from ..fdio import create_dir, fspath, hasext
from . import RE_NII_GZ

RE_GZ = re.compile(r"^(.+)(\.gz)$", flags=re.I)
log = logging.getLogger(__name__)
if sys.version_info[0] < 3:
string_types = basestring, # NOQA: F821
else:
string_types = str,


def file_parts(fname, regex=RE_NII_GZ):
Expand Down

0 comments on commit d7d894d

Please sign in to comment.