/usr/lib/python2.7/dist-packages/pywps/_compat.py is in python-pywps 4.0.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | ##################################################################
# Copyright 2016 OSGeo Foundation, #
# represented by PyWPS Project Steering Committee, #
# licensed under MIT, Please consult LICENSE.txt for details #
##################################################################
import logging
import sys
__author__ = "Alex Morega"
LOGGER = logging.getLogger('PYWPS')
PY2 = sys.version_info[0] == 2
if PY2:
LOGGER.debug('Python 2.x')
text_type = unicode # noqa
from StringIO import StringIO
from flufl.enum import Enum
from urlparse import urlparse
from urlparse import urljoin
from urllib2 import urlopen
else:
LOGGER.debug('Python 3.x')
text_type = str
from io import StringIO
from enum import Enum
from urllib.parse import urlparse
from urllib.parse import urljoin
from urllib.request import urlopen
|