Skip to content

Commit 4153441

Browse files
committed
some more cleanup of unused code
1 parent 26ec9a7 commit 4153441

File tree

4 files changed

+1
-15
lines changed

4 files changed

+1
-15
lines changed

astroquery/lamda/core.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,7 @@ def write_lamda_datafile(filename, tables):
250250
coll_part_hdr = re.sub('^ +', '', coll_part_hdr, flags=re.MULTILINE)
251251

252252
if platform.system() == 'Windows':
253-
if sys.version_info[0] >= 3:
254-
stream = open(filename, 'w', newline='')
255-
else:
256-
stream = open(filename, 'wb')
253+
stream = open(filename, 'w', newline='')
257254
else:
258255
stream = open(filename, 'w')
259256

astroquery/mast/tests/test_mast.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Licensed under a 3-clause BSD style license - see LICENSE.rst
22

3-
43
import os
54
import re
65

@@ -10,8 +9,6 @@
109
from astropy.tests.helper import pytest
1110
from astropy.coordinates import SkyCoord
1211
from astropy.io import fits
13-
from astropy.tests.helper import catch_warnings
14-
from astropy.utils.exceptions import AstropyDeprecationWarning
1512

1613
import astropy.units as u
1714

astroquery/splatalogue/core.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
:author: Adam Ginsburg <[email protected]>
88
"""
99
import warnings
10-
import sys
1110
from astropy.io import ascii
1211
from astropy import units as u
1312
from astroquery import log
@@ -22,10 +21,6 @@
2221
# example query of SPLATALOGUE directly:
2322
# https://www.cv.nrao.edu/php/splat/c.php?sid%5B%5D=64&sid%5B%5D=108&calcIn=&data_version=v3.0&from=&to=&frequency_units=MHz&energy_range_from=&energy_range_to=&lill=on&tran=&submit=Search&no_atmospheric=no_atmospheric&no_potential=no_potential&no_probable=no_probable&include_only_nrao=include_only_nrao&displayLovas=displayLovas&displaySLAIM=displaySLAIM&displayJPL=displayJPL&displayCDMS=displayCDMS&displayToyaMA=displayToyaMA&displayOSU=displayOSU&displayRecomb=displayRecomb&displayLisa=displayLisa&displayRFI=displayRFI&ls1=ls1&ls5=ls5&el1=el1
2423

25-
if sys.version_info.major == 2:
26-
# can't do unicode doctests in py2
27-
__doctest_skip__ = ['SplatalogueClass.get_species_ids']
28-
2924

3025
@async_to_sync
3126
class SplatalogueClass(BaseQuery):

astroquery/template_module/tests/test_module.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Licensed under a 3-clause BSD style license - see LICENSE.rst
22

3-
43
# astroquery uses the pytest framework for testing
54
# this is already available in astropy and does
65
# not require a separate install. Import it using:
@@ -14,9 +13,7 @@
1413

1514
# Now import other commonly used modules for tests
1615
import os
17-
import requests
1816

19-
from numpy import testing as npt
2017
from astropy.table import Table
2118
import astropy.coordinates as coord
2219
import astropy.units as u

0 commit comments

Comments
 (0)