python,
cpio,
bzip2,
- gzip
+ gzip,
+ python-pytest
Description: image creator for Linux distributions
The tool createrep is used to ppfarm test
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: python
+Requires: python-pytest
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
elif is_py3:
- from urllib.parse import urlparse, urlunparse, urljoin, urlsplit, urlencode, quote, unquote, quote_plus, unquote_plus, urldefrag
- from urllib.request import parse_http_list, getproxies, proxy_bypass
- from http import cookiejar as cookielib
- from http.cookies import Morsel
+ from urllib.parse import urlparse, urlunparse, urljoin, urlsplit, urlencode, quote, unquote, quote_plus, unquote_plus, urldefrag # pylint: disable=E0401,E0611
+ from urllib.request import parse_http_list, getproxies, proxy_bypass # pylint: disable=E0401,E0611
+ from http import cookiejar as cookielib # pylint: disable=E0401
+ from http.cookies import Morsel # pylint: disable=E0401
from io import StringIO
from collections import OrderedDict
- from http.client import IncompleteRead
+ from http.client import IncompleteRead # pylint: disable=E0401
builtin_str = str
str = str
\r
def _description_of(path):\r
"""Return a string describing the probable encoding of a file."""\r
- from charade.universaldetector import UniversalDetector\r
-\r
+ from requests.packages.charade.universaldetector import UniversalDetector\r
u = UniversalDetector()\r
for line in open(path, 'rb'):\r
u.feed(line)\r
from sys import argv\r
for path in argv[1:]:\r
print(_description_of(path))\r
-
\ No newline at end of file
+\r
support ';python -m charade <file1> [file2] ...' package execution syntax (2.7+)\r
'''\r
\r
-from charade import charade_cli\r
+from requests.packages.charade import charade_cli\r
\r
charade_cli()\r
self._mTotalChars += 1\r
# order is valid\r
if order < self._mTableSize:\r
- if 512 > self._mCharToFreqOrder[order]:\r
+ if 512 > self._mCharToFreqOrder[order]: #pylint: disable=unsubscriptable-object\r
self._mFreqChars += 1\r
\r
def get_confidence(self):\r
'mTypicalPositiveRatio': 0.976601,\r
'keepEnglishLetter': False,\r
'charsetName': "MacCyrillic"\r
-};\r
+}\r
\r
Ibm866Model = {\r
'charToOrderMap': IBM866_CharToOrderMap,\r
except ImportError:
from httplib import HTTPSConnection
from logging import getLogger
-from ntlm import ntlm
+
+from ntlmpool import ntlm
from urllib3 import HTTPSConnectionPool
for k in self:
yield (k, self[k])
- def update(*args, **kwds):
+ def update(self,*args, **kwds):
'''od.update(E, **F) -> None. Update od from dict/iterable E and F.
If E is a dict instance, does: for k in E: od[k] = E[k]
if PY3:
- import builtins
+ import builtins #pylint: disable=import-error
exec_ = getattr(builtins, "exec")
def urlopen(self, method, url, body=None, headers=None,
encode_multipart=True, multipart_boundary=None,
**kw): # Abstract
- raise NotImplemented("Classes extending RequestMethods must implement "
+ raise NotImplementedError("Classes extending RequestMethods must implement "
"their own ``urlopen`` method.")
def request(self, method, url, fields=None, headers=None, **urlopen_kw):