Skip to content

Commit 3a67670

Browse files
committed
remove Python2 crumbs
1 parent 1eb0216 commit 3a67670

File tree

5 files changed

+3
-8
lines changed

5 files changed

+3
-8
lines changed

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,4 +194,4 @@
194194
# continue
195195
# dtype, target = line.split(None, 1)
196196
# target = target.strip()
197-
# nitpick_ignore.append((dtype, six.u(target)))
197+
# nitpick_ignore.append((dtype, str(target)))

docs/install.rst

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ Requirements
66

77
This package has the following dependencies:
88

9-
* `Python <http://www.python.org>`_ 3.6 or later (Python 3.x is supported)
9+
* `Python <http://www.python.org>`_ 3.6 or later
1010
* `Numpy <http://www.numpy.org>`_ 1.8 or later
1111
* `Astropy <http://www.astropy.org>`__ 1.0 or later
12-
* `six <http://pypi.python.org/pypi/six/>`__
1312

1413
Installation
1514
------------

radio_beam/beam.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import six
21
from astropy import units as u
32
from astropy.io import fits
43
from astropy import constants
@@ -165,7 +164,7 @@ def from_fits_header(cls, hdr, unit=u.deg):
165164
# ... given a file try to make a fits header
166165
# assume a string refers to a filename on disk
167166
if not isinstance(hdr,fits.Header):
168-
if isinstance(hdr, six.string_types):
167+
if isinstance(hdr, str):
169168
if hdr.lower().endswith(('.fits', '.fits.gz', '.fit',
170169
'.fit.gz', '.fits.Z', '.fit.Z')):
171170
hdr = fits.getheader(hdr)

radio_beam/conftest.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# this contains imports plugins that configure py.test for astropy tests.
22
# by importing them here in conftest.py they are discoverable by py.test
33
# no matter how it is invoked within the source tree.
4-
from __future__ import print_function, absolute_import, division
5-
64
import os
75
from setuptools._distutils.version import LooseVersion
86

setup.cfg

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ packages = find:
1515
install_requires =
1616
astropy
1717
numpy>=1.8.0
18-
six
1918
scipy
2019

2120
[options.extras_require]

0 commit comments

Comments
 (0)