-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* drop last bits of python 2 * drop py35 support
- Loading branch information
Showing
8 changed files
with
14 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
language: python | ||
python: | ||
- "3.5" | ||
- "3.6" | ||
- "3.7" | ||
- "3.8" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
# Contact email: [email protected] | ||
# ============================================================================= | ||
|
||
from io import BytesIO | ||
from urllib.parse import urlencode | ||
from owslib.util import ( | ||
testXMLValue, | ||
|
@@ -33,7 +34,6 @@ | |
from owslib.feature.common import ( | ||
WFSCapabilitiesReader, | ||
AbstractContentMetadata, | ||
makeStringIO, | ||
) | ||
from owslib.namespaces import Namespaces | ||
from owslib.util import log, openURL | ||
|
@@ -346,16 +346,16 @@ def getfeature( | |
tree = etree.fromstring(data) | ||
except BaseException: | ||
# Not XML | ||
return makeStringIO(data) | ||
return BytesIO(data) | ||
else: | ||
if tree.tag == "{%s}ServiceExceptionReport" % namespaces["ogc"]: | ||
se = tree.find(nspath_eval("ServiceException", namespaces["ogc"])) | ||
raise ServiceException(str(se.text).strip()) | ||
else: | ||
return makeStringIO(data) | ||
return BytesIO(data) | ||
else: | ||
if have_read: | ||
return makeStringIO(data) | ||
return BytesIO(data) | ||
return u | ||
|
||
def getOperationByName(self, name): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ def run_tests(self): | |
maintainer_email = '[email protected]', | ||
url = 'https://geopython.github.io/OWSLib', | ||
install_requires = reqs, | ||
python_requires = '>=3.5', | ||
python_requires = '>=3.6', | ||
cmdclass = {'test': PyTest}, | ||
packages = find_packages(exclude=["docs", "etc", "examples", "tests"]), | ||
classifiers = [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters