diff --git a/docs/conf.py b/docs/conf.py index 3c48422..bc8071e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -194,4 +194,4 @@ # continue # dtype, target = line.split(None, 1) # target = target.strip() -# nitpick_ignore.append((dtype, six.u(target))) +# nitpick_ignore.append((dtype, str(target))) diff --git a/docs/install.rst b/docs/install.rst index 4080370..482bd8b 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -6,10 +6,9 @@ Requirements This package has the following dependencies: -* `Python `_ 3.6 or later (Python 3.x is supported) +* `Python `_ 3.6 or later * `Numpy `_ 1.8 or later * `Astropy `__ 1.0 or later -* `six `__ Installation ------------ diff --git a/radio_beam/beam.py b/radio_beam/beam.py index 93e5221..1fa41bd 100644 --- a/radio_beam/beam.py +++ b/radio_beam/beam.py @@ -1,4 +1,3 @@ -import six from astropy import units as u from astropy.io import fits from astropy import constants @@ -165,7 +164,7 @@ def from_fits_header(cls, hdr, unit=u.deg): # ... given a file try to make a fits header # assume a string refers to a filename on disk if not isinstance(hdr,fits.Header): - if isinstance(hdr, six.string_types): + if isinstance(hdr, str): if hdr.lower().endswith(('.fits', '.fits.gz', '.fit', '.fit.gz', '.fits.Z', '.fit.Z')): hdr = fits.getheader(hdr) diff --git a/radio_beam/conftest.py b/radio_beam/conftest.py index 0e745f4..e51ca96 100644 --- a/radio_beam/conftest.py +++ b/radio_beam/conftest.py @@ -1,8 +1,6 @@ # this contains imports plugins that configure py.test for astropy tests. # by importing them here in conftest.py they are discoverable by py.test # no matter how it is invoked within the source tree. -from __future__ import print_function, absolute_import, division - import os from setuptools._distutils.version import LooseVersion diff --git a/setup.cfg b/setup.cfg index 08eb95b..810ba60 100644 --- a/setup.cfg +++ b/setup.cfg @@ -15,7 +15,6 @@ packages = find: install_requires = astropy numpy>=1.8.0 - six scipy [options.extras_require]