mirror of
https://github.com/rasterio/rasterio.git
synced 2025-12-08 17:36:12 +00:00
Add rasterio.five and remove six dependency.
Closes #9. Thanks, @mwtoews!
This commit is contained in:
parent
ab2d73078b
commit
aa7b30176f
@ -95,7 +95,6 @@ Python package dependencies (see also requirements.txt):
|
||||
|
||||
- Numpy
|
||||
- setuptools
|
||||
- six
|
||||
|
||||
Development also requires (see requirements-dev.txt)
|
||||
|
||||
|
||||
@ -2,8 +2,7 @@
|
||||
|
||||
import os
|
||||
|
||||
from six import string_types
|
||||
|
||||
from rasterio.five import string_types
|
||||
from rasterio._copy import RasterCopier
|
||||
from rasterio._io import RasterReader, RasterUpdater
|
||||
import rasterio.dtypes
|
||||
|
||||
7
rasterio/five.py
Normal file
7
rasterio/five.py
Normal file
@ -0,0 +1,7 @@
|
||||
# Python 2-3 compatibility
|
||||
|
||||
import sys
|
||||
if sys.version_info[0] >= 3:
|
||||
string_types = str,
|
||||
else:
|
||||
string_types = basestring,
|
||||
@ -2,4 +2,3 @@ Cython
|
||||
Numpy
|
||||
nose
|
||||
setuptools
|
||||
six
|
||||
|
||||
@ -1,3 +1,2 @@
|
||||
Numpy
|
||||
setuptools
|
||||
six
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user