File: remove_six.patch

package info (click to toggle)
astroplan 0.10.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,024 kB
  • sloc: python: 4,411; makefile: 126
file content (34 lines) | stat: -rw-r--r-- 931 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Forwarded: https://github.com/astropy/astroplan/pull/570/files

--- a/astroplan/observer.py
+++ b/astroplan/observer.py
@@ -1,7 +1,7 @@
 # Licensed under a 3-clause BSD style license - see LICENSE.rst
 from __future__ import (absolute_import, division, print_function,
                         unicode_literals)
-from six import string_types
+string_types = (str,)
 
 # Standard library
 import sys
--- a/docs/faq/iers.rst
+++ b/docs/faq/iers.rst
@@ -78,7 +78,7 @@
     import numpy as np
     import astropy.units as u
     from astropy.time import Time
-    from six.moves.urllib.error import HTTPError
+    from urllib.error import HTTPError
 
     # Download and cache the IERS Bulletins A and B  using astropy's machinery
     # (reminder: astroplan has its own function for this: `download_IERS_A`)
--- a/setup.cfg
+++ b/setup.cfg
@@ -20,7 +20,6 @@
 	numpy>=1.17
 	astropy>=4
 	pytz
-	six
 
 [options.extras_require]
 all =