<86>Apr 1 11:05:45 userdel[1744399]: delete user 'rooter' <86>Apr 1 11:05:45 userdel[1744399]: removed group 'rooter' owned by 'rooter' <86>Apr 1 11:05:45 userdel[1744399]: removed shadow group 'rooter' owned by 'rooter' <86>Apr 1 11:05:45 groupadd[1744404]: group added to /etc/group: name=rooter, GID=567 <86>Apr 1 11:05:45 groupadd[1744404]: group added to /etc/gshadow: name=rooter <86>Apr 1 11:05:45 groupadd[1744404]: new group: name=rooter, GID=567 <86>Apr 1 11:05:45 useradd[1744408]: new user: name=rooter, UID=567, GID=567, home=/root, shell=/bin/bash <86>Apr 1 11:05:45 userdel[1744415]: delete user 'builder' <86>Apr 1 11:05:45 userdel[1744415]: removed group 'builder' owned by 'builder' <86>Apr 1 11:05:45 userdel[1744415]: removed shadow group 'builder' owned by 'builder' <86>Apr 1 11:05:45 groupadd[1744420]: group added to /etc/group: name=builder, GID=568 <86>Apr 1 11:05:45 groupadd[1744420]: group added to /etc/gshadow: name=builder <86>Apr 1 11:05:45 groupadd[1744420]: new group: name=builder, GID=568 <86>Apr 1 11:05:45 useradd[1744424]: new user: name=builder, UID=568, GID=568, home=/usr/src, shell=/bin/bash <13>Apr 1 11:05:49 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Apr 1 11:05:49 rpmi: libexpat-2.2.4-alt1 1503305345 installed <13>Apr 1 11:05:49 rpmi: libp11-kit-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>Apr 1 11:05:49 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825062 installed <13>Apr 1 11:05:49 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Apr 1 11:05:49 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Apr 1 11:05:49 rpmi: ca-certificates-2020.01.23-alt1 sisyphus+244791.300.2.1 1580285500 installed <13>Apr 1 11:05:49 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Apr 1 11:05:49 rpmi: p11-kit-trust-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>Apr 1 11:05:49 rpmi: libcrypto1.1-1.1.1d-alt1.1 sisyphus+237931.100.2.1 1569235729 installed <13>Apr 1 11:05:49 rpmi: libssl1.1-1.1.1d-alt1.1 sisyphus+237931.100.2.1 1569235729 installed <13>Apr 1 11:05:49 rpmi: python3-3.8.2-alt1 sisyphus+244999.100.3.1 1585218480 installed <13>Apr 1 11:05:50 rpmi: python3-base-3.8.2-alt1 sisyphus+244999.100.3.1 1585218480 installed <13>Apr 1 11:05:50 rpmi: libpython3-3.8.2-alt1 sisyphus+244999.100.3.1 1585218480 installed <13>Apr 1 11:05:50 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Apr 1 11:05:50 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Apr 1 11:05:55 rpmi: python3-module-pkg_resources-1:41.4.0-alt1 sisyphus+238787.100.2.1 1570608044 installed <13>Apr 1 11:05:55 rpmi: python3-module-wcwidth-0.1.7-alt2.1 sisyphus+227536.2000.1.2 1555963469 installed <13>Apr 1 11:05:55 rpmi: python3-module-six-1.13.0-alt1 sisyphus+240546.100.2.1 1573542703 installed <13>Apr 1 11:05:55 rpmi: python3-module-pyparsing-2.4.2-alt1 sisyphus+236061.100.3.1 1565853577 installed <13>Apr 1 11:05:55 rpmi: python3-module-packaging-19.0-alt2 sisyphus+235493.3500.8.1 1565461874 installed <13>Apr 1 11:05:55 rpmi: python3-module-more-itertools-7.0.0-alt3 sisyphus+226536.100.1.1 1554329928 installed <13>Apr 1 11:05:55 rpmi: python3-module-iniconfig-1.0.0-alt2 sisyphus+235493.2400.6.1 1565442448 installed <13>Apr 1 11:05:55 rpmi: python3-module-zipp-0.5.0-alt1 sisyphus+229321.100.1.1 1557825329 installed <13>Apr 1 11:05:55 rpmi: python3-module-importlib_metadata-1.5.0-alt1 sisyphus+246069.300.1.1 1581604535 installed <13>Apr 1 11:05:55 rpmi: python3-module-pluggy-0.13.0-alt2 sisyphus+246682.100.1.1 1582205671 installed <13>Apr 1 11:05:55 rpmi: python3-module-attrs-19.3.0-alt1 sisyphus+240796.100.1.1 1573741715 installed <13>Apr 1 11:05:55 rpmi: python3-module-apipkg-1.5-alt1 sisyphus+227465.1100.1.2 1555756555 installed <13>Apr 1 11:05:55 rpmi: python3-module-py-1.8.0-alt5 sisyphus+242058.200.5.1 1575792989 installed <13>Apr 1 11:05:55 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Apr 1 11:05:55 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512089 installed <13>Apr 1 11:05:55 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <86>Apr 1 11:05:55 groupadd[1749453]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 1 11:05:55 groupadd[1749453]: group added to /etc/gshadow: name=_keytab <86>Apr 1 11:05:55 groupadd[1749453]: new group: name=_keytab, GID=499 <13>Apr 1 11:05:55 rpmi: libkrb5-1.17.1-alt1 sisyphus+242784.100.1.1 1576137330 installed <13>Apr 1 11:05:55 rpmi: libtirpc-1.0.3-alt1 1532008017 installed <13>Apr 1 11:05:55 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Apr 1 11:05:55 rpmi: python-modules-encodings-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 1 11:05:55 rpmi: python-modules-compiler-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 1 11:05:55 rpmi: python-modules-email-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 1 11:05:55 rpmi: python-modules-unittest-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 1 11:05:55 rpmi: python-modules-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 1 11:05:55 rpmi: python-modules-nis-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 1 11:05:55 rpmi: python-modules-ctypes-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 1 11:05:55 rpmi: python-modules-multiprocessing-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 1 11:05:55 rpmi: python-modules-logging-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 1 11:05:55 rpmi: python-tools-2to3-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Apr 1 11:05:56 rpmi: python3-module-pytest-5.3.2-alt2 sisyphus+248945.100.1.1 1585598915 installed <13>Apr 1 11:05:56 rpmi: python3-module-nose-1:1.3.7-alt4.git20160316 sisyphus+229068.100.1.1 1557255939 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-tmdb3-0.7.2-alt2.nosrc.rpm <13>Apr 1 11:06:02 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Apr 1 11:06:02 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Apr 1 11:06:02 rpmi: python3-dev-3.8.2-alt1 sisyphus+244999.100.3.1 1585218480 installed <13>Apr 1 11:06:02 rpmi: python3-module-setuptools-1:41.4.0-alt1 sisyphus+238787.100.2.1 1570608044 installed Installing python3-module-tmdb3-0.7.2-alt2.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.63399 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf tmdb3-0.7.2 + echo 'Source #0 (tmdb3-0.7.2.tar.gz):' Source #0 (tmdb3-0.7.2.tar.gz): + /bin/gzip -dc /usr/src/RPM/SOURCES/tmdb3-0.7.2.tar.gz + /bin/tar -xf - + cd tmdb3-0.7.2 + /bin/chmod -c -Rf u+rwX,go-w . + find ./ -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./tmdb3/util.py RefactoringTool: No changes to ./tmdb3/tmdb_exceptions.py RefactoringTool: Refactored ./tmdb3/tmdb_auth.py --- ./tmdb3/util.py (original) +++ ./tmdb3/util.py (refactored) @@ -7,14 +7,14 @@ #----------------------- from copy import copy -from locales import get_locale -from tmdb_auth import get_session +from .locales import get_locale +from .tmdb_auth import get_session class NameRepr(object): """Mixin for __repr__ methods using 'name' attribute.""" def __repr__(self): - return u"<{0.__class__.__name__} '{0.name}'>"\ + return "<{0.__class__.__name__} '{0.name}'>"\ .format(self).encode('utf-8') @@ -25,7 +25,7 @@ """ def __repr__(self): name = self._name if self._name else self._request._kwargs['query'] - return u"".format(name).encode('utf-8') + return "".format(name).encode('utf-8') class Poller(object): @@ -82,7 +82,7 @@ def apply(self, data, set_nones=True): # apply data directly, bypassing callable function unfilled = False - for k, v in self.lookup.items(): + for k, v in list(self.lookup.items()): if (k in data) and (not callable(self.func) or data[k] is not None): # argument received data, populate it setattr(self.inst, v, data[k]) @@ -109,7 +109,7 @@ This maps to a single key in a JSON dictionary received from the API """ def __init__(self, field, initarg=None, handler=None, poller=None, - raw=True, default=u'', lang=None, passthrough={}): + raw=True, default='', lang=None, passthrough={}): """ This defines how the dictionary value is to be processed by the poller @@ -221,7 +221,7 @@ val._locale = inst._locale val._session = inst._session - for source, dest in self.passthrough.items(): + for source, dest in list(self.passthrough.items()): setattr(val, dest, getattr(inst, source)) data.append(val) @@ -287,7 +287,7 @@ val._locale = inst._locale val._session = inst._session - for source, dest in self.passthrough.items(): + for source, dest in list(self.passthrough.items()): setattr(val, dest, getattr(inst, source)) data[self.getkey(val)] = val @@ -309,7 +309,7 @@ for base in reversed(bases): if isinstance(base, mcs): - for k, attr in base.__dict__.items(): + for k, attr in list(base.__dict__.items()): if isinstance(attr, Data): # extract copies of each defined Data element from # parent classes @@ -320,7 +320,7 @@ # extract copies of each defined Poller function # from parent classes pollers[k] = attr.func - for k, attr in attrs.items(): + for k, attr in list(attrs.items()): if isinstance(attr, Data): data[k] = attr if '_populate' in attrs: @@ -331,7 +331,7 @@ # which Data points pollermap = dict([(k, []) for k in pollers]) initargs = [] - for k, v in data.items(): + for k, v in list(data.items()): v.name = k if v.initarg: initargs.append(v) @@ -347,7 +347,7 @@ # wrap each used poller function with a Poller class, and push into # the new class attributes - for k, v in pollermap.items(): + for k, v in list(pollermap.items()): if len(v) == 0: continue lookup = dict([(attr.field, attr.name) for attr in v]) @@ -397,6 +397,5 @@ return obj -class Element( object ): - __metaclass__ = ElementType +class Element( object, metaclass=ElementType ): _lang = 'en' --- ./tmdb3/tmdb_auth.py (original) +++ ./tmdb3/tmdb_auth.py (refactored) @@ -65,8 +65,8 @@ dt.appeRefactoringTool: Refactored ./tmdb3/tmdb_api.py nd(tz) return cls(*dt) -from request import Request -from tmdb_exceptions import * +from .request import Request +from .tmdb_exceptions import * syssession = None --- ./tmdb3/tmdb_api.py (original) +++ ./tmdb3/tmdb_api.py (refactored) @@ -67,16 +67,16 @@ # Fix unicode issues with search result object names # Temporary fix for youtube videos with malformed URLs -from request import set_key, Request -from util import Datapoint, Datalist, Datadict, Element, NameRepr, SearchRepr -from pager import PagedRequest -from locales import get_locale, set_locale -from tmdb_auth import get_session, set_session -from tmdb_exceptions import * +from .request import set_key, Request +from .util import Datapoint, Datalist, Datadict, Element, NameRepr, SearchRepr +from .pager import PagedRequest +from .locales import get_locale, set_locale +from .tmdb_auth import get_session, set_session +from .tmdb_exceptions import * import json -import urllib -import urllib2 +import urllib.request, urllib.parse, urllib.error +import urllib.request, urllib.error, urllib.parse import datetime DEBUG = False @@ -247,7 +247,7 @@ if size not in self.sizes(): raise TMDBImageSizeError url = Configuration.images['base_url'].rstrip('/') - return url+u'/{0}/{1}'.format(size, self.filename) + return url+'/{0}/{1}'.format(size, self.filename) # sort preferring locale's language, but keep remaining ordering consistent def __lt__(self, other): @@ -269,14 +269,14 @@ return self.filename == other.filename # special handling for boolean to see if exists - def __nonzero__(self): + def __bool__(self): if len(self.filename) == 0: return False return True def __repr__(self): # BASE62 encoded filename, no need to worry about unicode - return u"<{0.__class__.__name__} '{0.filename}'>".format(self) + return "<{0.__class__.__name__} '{0.filename}'>".format(self) class Backdrop(Image): @@ -316,7 +316,7 @@ return self.country == other.country def __repr__(self): - return u"<{0.__class__.__name__} '{0.title}' ({0.country})>"\ + return "<{0.__class__.__name__} '{0.title}' ({0.country})>"\ .format(self).encode('utf-8') @@ -334,7 +334,7 @@ aliases = Datalist('also_known_as') def __repr__(self): - return u"<{0.__class__.__name__} '{0.name}'>"\ + return "<{0.__class__.__name__} '{0.name}'>"\ .format(self).encode('utf-8') def _populate(self): @@ -358,7 +358,7 @@ order = Datapoint('order') def __repr__(self): - return u"<{0.__class__.__name__} '{0.name}' as '{0.character}'>"\ + return "<{0.__class__.__name__} '{0.name}' as '{0.character}'>"\ .format(self).encode('utf-8') @@ -367,7 +367,7 @@ department = Datapoint('department') def __repr__(self): - return u"<{0.__class__.__name__} '{0.name}','{0.job}'>"\ + return "<{0.__class__.__name__} '{0.name}','{0.job}'>"\ .format(self).encode('utf-8') @@ -376,7 +376,7 @@ name = Datapoint('name') def __repr__(self): - return u"<{0.__class__.__name__} '{0.name}'>"\ + return "<{0.__class__.__name__} '{0.name}'>"\ .format(self).encode('utf-8') @@ -385,7 +385,7 @@ country = Datapoint('iso_3166_1') releasedate = Datapoint('release_date', handler=process_date) def __repr__(self): - return u"<{0.__class__.__name__} '{0.country}', {0.releasedate}>"\ + return "<{0.__class__.__name__} '{0.country}', {0.releasedate}>"\ .format(self).encode('utf-8') @@ -402,7 +402,7 @@ def __repr__(self): # modified BASE64 encoding, no need to worry about unicode - return u"<{0.__class__.__name__} '{0.name}'>".format(self) + return "<{0.__class__.__name__} '{0.name}'>".format(self) class AppleTrailer(Element): @@ -410,7 +410,7 @@ sources = Datadict('sources', handlRefactoringTool: Refactored ./tmdb3/request.py er=Trailer, attr='size') def sizes(self): - return self.sources.keys() + return list(self.sources.keys()) def geturl(self, size=None): if size is None: @@ -421,7 +421,7 @@ return self.sources[size].source def __repr__(self): - return u"<{0.__class__.__name__} '{0.name}'>".format(self) + return "<{0.__class__.__name__} '{0.name}'>".format(self) class Translation(Element): @@ -430,7 +430,7 @@ englishname = Datapoint('english_name') def __repr__(self): - return u"<{0.__class__.__name__} '{0.name}' ({0.language})>"\ + return "<{0.__class__.__name__} '{0.name}' ({0.language})>"\ .format(self).encode('utf-8') @@ -447,7 +447,7 @@ if 'movies' not in self._data: search = MovieSearchResult(self._populate_movies(), \ locale=self._locale) - search._name = u"{0.name} Movies".format(self) + search._name = "{0.name} Movies".format(self) self._data['movies'] = search return self._data['movies'] @@ -484,7 +484,7 @@ if 'movies' not in self._data: search = MovieSearchResult(self._populate_movies(), locale=self._locale) - search._name = u"{0.name} Movies".format(self) + search._name = "{0.name} Movies".format(self) self._data['movies'] = search return self._data['movies'] @@ -698,7 +698,7 @@ res = MovieSearchResult(Request( 'movie/{0}/similar_movies'.format(self.id)), locale=self._locale) - res._name = u'Similar to {0}'.format(self._printable_name()) + res._name = 'Similar to {0}'.format(self._printable_name()) return res @property @@ -709,17 +709,17 @@ def _printable_name(self): if self.title is not None: - s = u"'{0}'".format(self.title) + s = "'{0}'".format(self.title) elif self.originaltitle is not None: - s = u"'{0}'".format(self.originaltitle) + s = "'{0}'".format(self.originaltitle) else: - s = u"'No Title'" + s = "'No Title'" if self.releasedate: - s = u"{0} ({1})".format(s, self.releasedate.year) + s = "{0} ({1})".format(s, self.releasedate.year) return s def __repr__(self): - return u"<{0} {1}>".format(self.__class__.__name__, + return "<{0} {1}>".format(self.__class__.__name__, self._printable_name()).encode('utf-8') @@ -727,7 +727,7 @@ character = Datapoint('character') def __repr__(self): - return (u"<{0.__class__.__name__} '{0.character}' on {1}>" + return ("<{0.__class__.__name__} '{0.character}' on {1}>" .format(self, self._printable_name()).encode('utf-8')) @@ -736,7 +736,7 @@ job = Datapoint('job') def __repr__(self): - return (u"<{0.__class__.__name__} '{0.job}' for {1}>" + return ("<{0.__class__.__name__} '{0.job}' for {1}>" .format(self, self._printable_name()).encode('utf-8')) @@ -927,5 +927,5 @@ res = SeriesSearchResult(Request( 'tv/{0}/similar'.format(self.id)), locale=self._locale) - res._name = u'Similar to {0.name}'.format(self) + res._name = 'Similar to {0.name}'.format(self) return res --- ./tmdb3/request.py (original) +++ ./tmdb3/request.py (refactored) @@ -8,12 +8,12 @@ # TMDb v3 API #----------------------- -from tmdb_exceptions import * -from locales import get_locale -from cache import Cache +from .tmdb_exceptions import * +from .locales import get_locale +from .cache import Cache -from urllib import urlencode -import urllib2 +from urllib.parse import urlencode +import urllib.request, urllib.error, urllib.parse import json import os @@ -43,7 +43,7 @@ cache.configuRefactoringTool: Refactored ./tmdb3/pager.py RefactoringTool: Refactored ./tmdb3/locales.py re(engine, *args, **kwargs) -class Request(urllib2.Request): +class Request(urllib.request.Request): _api_key = None _base_url = "http://api.themoviedb.org/3/" @@ -61,17 +61,17 @@ """ kwargs['api_key'] = self.api_key self._url = url.lstrip('/') - self._kwargs = dict([(kwa, kwv) for kwa, kwv in kwargs.items() + self._kwargs = dict([(kwa, kwv) for kwa, kwv in list(kwargs.items()) if kwv is not None]) locale = get_locale() kwargs = {} - for k, v in self._kwargs.items(): + for k, v in list(self._kwargs.items()): kwargs[k] = locale.encode(v) url = '{0}{1}?{2}'\ .format(self._base_url, self._url, urlencode(kwargs)) - urllib2.Request.__init__(self, url) + urllib.request.Request.__init__(self, url) self.add_header('Accept', 'application/json') self.lifetime = 3600 # 1hr @@ -80,7 +80,7 @@ Create a new instance of the request, with tweaked arguments. """ args = dict(self._kwargs) - for k, v in kwargs.items(): + for k, v in list(kwargs.items()): if v is None: if k in args: del args[k] @@ -92,31 +92,31 @@ def add_data(self, data): """Provide data to be sent with POST.""" - urllib2.Request.add_data(self, urlencode(data)) + urllib.request.Request.add_data(self, urlencode(data)) def open(self): """Open a file object to the specified URL.""" try: if DEBUG: - print 'loading '+self.get_full_url() + print('loading '+self.get_full_url()) if self.has_data(): - print ' '+self.get_data() - return urllib2.urlopen(self) - except urllib2.HTTPError, e: + print(' '+self.get_data()) + return urllib.request.urlopen(self) + except urllib.error.HTTPError as e: raise TMDBHTTPError(e) def read(self): """Return result from specified URL as a string.""" return self.open().read() - @cache.cached(urllib2.Request.get_full_url) + @cache.cached(urllib.request.Request.get_full_url) def readJSON(self): """Parse result from specified URL as JSON data.""" url = self.get_full_url() try: # catch HTTP error from open() data = json.load(self.open()) - except TMDBHTTPError, e: + except TMDBHTTPError as e: try: # try to load whatever was returned data = json.loads(e.response) --- ./tmdb3/pager.py (original) +++ ./tmdb3/pager.py (refactored) @@ -18,7 +18,7 @@ def __iter__(self): return self - def next(self): + def __next__(self): self._index += 1 if self._index == self._len: raise StopIteration @@ -64,7 +64,7 @@ def __getitem__(self, index): if isinstance(index, slice): - return [self[x] for x in xrange(*index.indices(len(self)))] + return [self[x] for x in range(*index.indices(len(self)))] if index >= len(self): raise IndexError("list index outside range") if (index >= len(self._data)) \ --- ./tmdb3/locales.py (original) +++ ./tmdb3/locales.py (refactored) @@ -6,7 +6,7 @@ # Author: Raymond Wagner #----------------------- -from tmdb_exceptions import * +from .tmdb_exceptions import * import locale syslocale = None @@ -71,7 +71,7 @@ return self.ISO639_1 def __repr__(self): - return u"".format(self) + return "".format(self) class Country(LocaleBase): @@ -87,7 +87,7 @@ return self.alpha2 def __repr__(self): - return u"".format(self) + return "".format(self) class Locale(LocaleBase): @@ WARNING: couldn't encode ./tmdb3/locales.py's diff for your terminal RefactoringTool: Refactored ./tmdb3/cache_null.py RefactoringTool: Refactored ./tmdb3/cache_file.py RefactoringTool: Refactored ./tmdb3/cache_engine.py RefactoringTool: Refactored ./tmdb3/cache.py -99,10 +99,10 @@ self.encoding = encoding if encoding else 'latin-1' def __str__(self): - return u"{0}_{1}".format(self.language, self.country) + return "{0}_{1}".format(self.language, self.country) def __repr__(self): - return u"".format(self) + return "".format(self) def encode(self, dat): """Encode using system default encoding for network/file output.""" @@ -172,471 +172,471 @@ ######## AUTOGENERATED LANGUAGE AND COUNTRY DATA BELOW HERE ######### -Language("ab", "abk", u"Abkhazian") -Language("aa", "aar", u"Afar") -Language("af", "afr", u"Afrikaans") -Language("ak", "aka", u"Akan") -Language("sq", "alb/sqi", u"Albanian") -Language("am", "amh", u"Amharic") -Language("ar", "ara", u"Arabic") -Language("an", "arg", u"Aragonese") -Language("hy", "arm/hye", u"Armenian") -Language("as", "asm", u"Assamese") -Language("av", "ava", u"Avaric") -Language("ae", "ave", u"Avestan") -Language("ay", "aym", u"Aymara") -Language("az", "aze", u"Azerbaijani") -Language("bm", "bam", u"Bambara") -Language("ba", "bak", u"Bashkir") -Language("eu", "baq/eus", u"Basque") -Language("be", "bel", u"Belarusian") -Language("bn", "ben", u"Bengali") -Language("bh", "bih", u"Bihari languages") -Language("bi", "bis", u"Bislama") --- ./tmdb3/cache_null.py (original) +++ ./tmdb3/cache_null.py (refactored) @@ -7,7 +7,7 @@ # Purpose: Null caching engine for debugging purposes #----------------------- -from cache_engine import CacheEngine +from .cache_engine import CacheEngine class NullEngine(CacheEngine): --- ./tmdb3/cache_file.py (original) +++ ./tmdb3/cache_file.py (refactored) @@ -16,10 +16,10 @@ import os import io -from cStringIO import StringIO - -from tmdb_exceptions import * -from cache_engine import CacheEngine, CacheObject +from io import StringIO + +from .tmdb_exceptions import * +from .cache_engine import CacheEngine, CacheObject #################### # Cache File Format @@ -123,7 +123,7 @@ if filename.startswith('~'): # check for home directory return os.path.expanduser(filename) - elif (ord(filename[0]) in (range(65, 91) + range(99, 123))) \ + elif (ord(filename[0]) in (list(range(65, 91)) + list(range(99, 123)))) \ and (filename[1:3] == ':\\'): # check for absolute drive path (e.g. C:\...) return filename @@ -371,7 +371,7 @@ else: # rewrite cache file from scratch # pull data from parent cache - data.extend(self.parent()._data.values()) + data.extend(list(self.parent()._data.values())) data.sort(key=lambda x: x.creation) # write header size = len(data) + self.preallocate --- ./tmdb3/cache_engine.py (original) +++ ./tmdb3/cache_engine.py (refactored) @@ -43,8 +43,7 @@ Engines.register(cls) -class CacheEngine(object): - __metaclass__ = CacheEngineType +class CacheEngine(object, metaclass=CacheEngineType): name = 'unspecified' def __init__(self, parent): --- ./tmdb3/cache.py (original) +++ ./tmdb3/cache.py (refactored) @@ -10,11 +10,11 @@ import time import os -from tmdb_exceptions import * -from cache_engine import Engines +from .tmdb_exceptions import * +from .cache_engine import Engines -import cache_null -import cache_file +from . import cache_null +from . import cache_file DEBUG = False @@ -49,7 +49,7 @@ self._age = max(self._age, obj.creation) def _expire(self): - for k, v in self._data.items(): + for k, v in list(self._data.items()): if v.expired: del self._data[k] @@ -83,7 +83,7 @@ w = 10 - (time.time() - self._rate_limiter.pop(0)) if (w > 0): if DEBUG: - print "rate limiting - waiting {0} seconds".format(w) + print("rate limiting - waiting {0} seconds".format(w)) time.RefactoringTool: Refactored ./tmdb3/__init__.py RefactoringTool: No changes to ./setup.py RefactoringTool: Files that were modified: RefactoringTool: ./tmdb3/util.py RefactoringTool: ./tmdb3/tmdb_exceptions.py RefactoringTool: ./tmdb3/tmdb_auth.py RefactoringTool: ./tmdb3/tmdb_api.py RefactoringTool: ./tmdb3/request.py RefactoringTool: ./tmdb3/pager.py RefactoringTool: ./tmdb3/locales.py RefactoringTool: ./tmdb3/cache_null.py RefactoringTool: ./tmdb3/cache_file.py RefactoringTool: ./tmdb3/cache_engine.py RefactoringTool: ./tmdb3/cache.py RefactoringTool: ./tmdb3/__init__.py RefactoringTool: ./setup.py sleep(w) return None --- ./tmdb3/__init__.py (original) +++ ./tmdb3/__init__.py (refactored) @@ -1,12 +1,12 @@ #!/usr/bin/env python -from tmdb_api import Configuration, searchMovie, searchMovieWithYear, \ +from .tmdb_api import Configuration, searchMovie, searchMovieWithYear, \ searchPerson, searchStudio, searchList, searchCollection, \ searchSeries, Person, Movie, Collection, Genre, List, \ Series, Studio, Network, Episode, Season, __version__ -from request import set_key, set_cache -from locales import get_locale, set_locale -from tmdb_auth import get_session, set_session -from cache_engine import CacheEngine -from tmdb_exceptions import * +from .request import set_key, set_cache +from .locales import get_locale, set_locale +from .tmdb_auth import get_session, set_session +from .cache_engine import CacheEngine +from .tmdb_exceptions import * + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.13561 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd tmdb3-0.7.2 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/tmdb3 copying tmdb3/util.py -> build/lib/tmdb3 copying tmdb3/tmdb_exceptions.py -> build/lib/tmdb3 copying tmdb3/tmdb_auth.py -> build/lib/tmdb3 copying tmdb3/tmdb_api.py -> build/lib/tmdb3 copying tmdb3/request.py -> build/lib/tmdb3 copying tmdb3/pager.py -> build/lib/tmdb3 copying tmdb3/locales.py -> build/lib/tmdb3 copying tmdb3/cache_null.py -> build/lib/tmdb3 copying tmdb3/cache_file.py -> build/lib/tmdb3 copying tmdb3/cache_engine.py -> build/lib/tmdb3 copying tmdb3/cache.py -> build/lib/tmdb3 copying tmdb3/__init__.py -> build/lib/tmdb3 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.731 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-tmdb3-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-tmdb3-buildroot + cd tmdb3-0.7.2 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python3-module-tmdb3-buildroot --force running install running install_lib creating /usr/src/tmp/python3-module-tmdb3-buildroot creating /usr/src/tmp/python3-module-tmdb3-buildroot/usr creating /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib creating /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3 creating /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3 copying build/lib/tmdb3/__init__.py -> /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3 copying build/lib/tmdb3/cache.py -> /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3 copying build/lib/tmdb3/cache_engine.py -> /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3 copying build/lib/tmdb3/cache_file.py -> /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3 copying build/lib/tmdb3/cache_null.py -> /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3 copying build/lib/tmdb3/locales.py -> /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3 copying build/lib/tmdb3/pager.py -> /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3 copying build/lib/tmdb3/request.py -> /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3 copying build/lib/tmdb3/tmdb_api.py -> /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3 copying build/lib/tmdb3/tmdb_auth.py -> /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3 copying build/lib/tmdb3/tmdb_exceptions.py -> /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3 copying build/lib/tmdb3/util.py -> /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3 byte-compiling /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__init__.py to __init__.cpython-38.pyc byte-compiling /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache.py to cache.cpython-38.pyc byte-compiling /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_engine.py to cache_engine.cpython-38.pyc byte-compiling /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_file.py to cache_file.cpython-38.pyc byte-compiling /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_null.py to cache_null.cpython-38.pyc byte-compiling /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/locales.py to locales.cpython-38.pyc byte-compiling /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/pager.py to pager.cpython-38.pyc byte-compiling /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/request.py to request.cpython-38.pyc byte-compiling /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_api.py to tmdb_api.cpython-38.pyc byte-compiling /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_auth.py to tmdb_auth.cpython-38.pyc byte-compiling /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_exceptions.py to tmdb_exceptions.cpython-38.pyc byte-compiling /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/util.py to util.cpython-38.pyc running install_egg_info running egg_info writing tmdb3.egg-info/PKG-INFO writing dependency_links to tmdb3.egg-info/dependency_links.txt writing top-level names to tmdb3.egg-info/top_level.txt reading manifest file 'tmdb3.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'tmdb3.egg-info/SOURCES.txt' Copying tmdb3.egg-info to /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3-0.7.2-py3.8.egg-info running install_scripts + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-tmdb3-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-tmdb3-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/python3-module-tmdb3-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-tmdb3-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-tmdb3-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python3-module-tmdb3-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/python3-module-tmdb3-buildroot using /usr/bin/python2.7 Bytecompiling python modules with optimization in /usr/src/tmp/python3-module-tmdb3-buildroot using /usr/bin/python2.7 -O Bytecompiling python3 modules in /usr/src/tmp/python3-module-tmdb3-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__pycache__/__init__.cpython-38.pyc unlink /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__pycache__/cache.cpython-38.pyc unlink /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__pycache__/cache_engine.cpython-38.pyc unlink /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__pycache__/cache_file.cpython-38.pyc unlink /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__pycache__/cache_null.cpython-38.pyc unlink /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__pycache__/locales.cpython-38.pyc unlink /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__pycache__/pager.cpython-38.pyc unlink /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__pycache__/request.cpython-38.pyc unlink /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_api.cpython-38.pyc unlink /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_auth.cpython-38.pyc unlink /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_exceptions.cpython-38.pyc unlink /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__pycache__/util.cpython-38.pyc compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__init__.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_engine.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_file.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_null.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/locales.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/pager.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/request.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_api.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_auth.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_exceptions.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/util.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-tmdb3-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__init__.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_engine.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_file.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_null.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/locales.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/pager.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/request.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_api.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_auth.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_exceptions.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/util.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-tmdb3-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__init__.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_engine.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_file.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_null.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/locales.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/pager.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/request.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_api.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_auth.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_exceptions.py compile /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/util.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/tmdb3/__pycache__/util.cpython-38.opt-1.pyc' => './usr/lib/python3/site-packages/tmdb3/__pycache__/util.cpython-38.pyc' './usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_exceptions.cpython-38.opt-1.pyc' => './usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_exceptions.cpython-38.pyc' './usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_exceptions.cpython-38.opt-2.pyc' => './usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_exceptions.cpython-38.opt-1.pyc' './usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_auth.cpython-38.opt-1.pyc' => './usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_auth.cpython-38.pyc' './usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_api.cpython-38.opt-1.pyc' => './usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_api.cpython-38.pyc' './usr/lib/python3/site-packages/tmdb3/__pycache__/request.cpython-38.opt-1.pyc' => './usr/lib/python3/site-packages/tmdb3/__pycache__/request.cpython-38.pyc' './usr/lib/python3/site-packages/tmdb3/__pycache__/pager.cpython-38.opt-1.pyc' => './usr/lib/python3/site-packages/tmdb3/__pycache__/pager.cpython-38.pyc' './usr/lib/python3/site-packages/tmdb3/__pycache__/locales.cpython-38.opt-1.pyc' => './usr/lib/python3/site-packages/tmdb3/__pycache__/locales.cpython-38.pyc' './usr/lib/python3/site-packages/tmdb3/__pycache__/cache_null.cpython-38.opt-1.pyc' => './usr/lib/python3/site-packages/tmdb3/__pycache__/cache_null.cpython-38.pyc' './usr/lib/python3/site-packages/tmdb3/__pycache__/cache_file.cpython-38.opt-1.pyc' => './usr/lib/python3/site-packages/tmdb3/__pycache__/cache_file.cpython-38.pyc' './usr/lib/python3/site-packages/tmdb3/__pycache__/cache_engine.cpython-38.opt-1.pyc' => './usr/lib/python3/site-packages/tmdb3/__pycache__/cache_engine.cpython-38.pyc' './usr/lib/python3/site-packages/tmdb3/__pycache__/cache.cpython-38.opt-1.pyc' => './usr/lib/python3/site-packages/tmdb3/__pycache__/cache.cpython-38.pyc' './usr/lib/python3/site-packages/tmdb3/__pycache__/__init__.cpython-38.opt-1.pyc' => './usr/lib/python3/site-packages/tmdb3/__pycache__/__init__.cpython-38.pyc' './usr/lib/python3/site-packages/tmdb3/__pycache__/__init__.cpython-38.opt-2.pyc' => './usr/lib/python3/site-packages/tmdb3/__pycache__/__init__.cpython-38.opt-1.pyc' Hardlinking identical .pyc and .pyo files Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.14116 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd tmdb3-0.7.2 + nosetests3 ---------------------------------------------------------------------- Ran 0 tests in 0.237s OK + exit 0 Processing files: python3-module-tmdb3-0.7.2-alt2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.45162 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd tmdb3-0.7.2 + DOCDIR=/usr/src/tmp/python3-module-tmdb3-buildroot/usr/share/doc/python3-module-tmdb3-0.7.2 + export DOCDIR + rm -rf /usr/src/tmp/python3-module-tmdb3-buildroot/usr/share/doc/python3-module-tmdb3-0.7.2 + /bin/mkdir -p /usr/src/tmp/python3-module-tmdb3-buildroot/usr/share/doc/python3-module-tmdb3-0.7.2 + cp -prL LICENSE PKG-INFO README.md /usr/src/tmp/python3-module-tmdb3-buildroot/usr/share/doc/python3-module-tmdb3-0.7.2 + chmod -R go-w /usr/src/tmp/python3-module-tmdb3-buildroot/usr/share/doc/python3-module-tmdb3-0.7.2 + chmod -R a+rX /usr/src/tmp/python3-module-tmdb3-buildroot/usr/share/doc/python3-module-tmdb3-0.7.2 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.TGbDKZ find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.dj8cv2 find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__init__.py: line=3 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__init__.py: line=7 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__init__.py: line=8 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__init__.py: line=9 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__init__.py: line=10 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__init__.py: line=11 possible relative import from ., UNIMPLEMENTED python3.req: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache.py: skipping time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache.py: line=13 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache.py: line=14 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache.py: line=16 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache.py: line=17 possible relative import from ., UNIMPLEMENTED python3.req: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_engine.py: skipping time python3.req: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_file.py: skipping errno python3.req: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_file.py: skipping time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_file.py: line=21 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_file.py: line=22 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_file.py: line=57 IGNORE (for REQ=slight and deep=8) module=fcntl /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_file.py: line=98 IGNORE (for REQ=slight and deep=8) module=msvcrt /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_null.py: line=10 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/locales.py: line=9 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/request.py: line=11 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/request.py: line=12 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/request.py: line=13 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/request.py: line=133 IGNORE (for REQ=slight and deep=16) module=pprint /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_api.py: line=70 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_api.py: line=71 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_api.py: line=72 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_api.py: line=73 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_api.py: line=74 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_api.py: line=75 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_api.py: line=89 IGNORE (for REQ=slight and deep=12) module=sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_api.py: line=90 IGNORE (for REQ=slight and deep=12) module=warnings /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_api.py: line=91 IGNORE (for REQ=slight and deep=12) module=traceback /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_auth.py: line=68 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_auth.py: line=69 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/util.py: line=10 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/util.py: line=11 possible relative import from ., UNIMPLEMENTED shebang.req.files: executable script /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/__init__.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_engine.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_file.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/cache_null.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/locales.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/pager.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/request.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_api.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_auth.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/tmdb_exceptions.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-tmdb3-buildroot/usr/lib/python3/site-packages/tmdb3/util.py is not executable Provides: python3(tmdb3), python3(tmdb3.cache), python3(tmdb3.cache_engine), python3(tmdb3.cache_file), python3(tmdb3.cache_null), python3(tmdb3.locales), python3(tmdb3.pager), python3(tmdb3.request), python3(tmdb3.tmdb_api), python3(tmdb3.tmdb_auth), python3(tmdb3.tmdb_exceptions), python3(tmdb3.util) Requires: /usr/lib/python3/site-packages, python3(collections) < 0, python3(copy) < 0, python3(datetime) < 0, python3(io) < 0, python3(json) < 0, python3(locale) < 0, python3(os) < 0, python3(re) < 0, python3(struct) < 0, python3(urllib.error) < 0, python3(urllib.parse) < 0, python3(urllib.request) < 0, python3(weakref) < 0 Wrote: /usr/src/RPM/RPMS/noarch/python3-module-tmdb3-0.7.2-alt2.noarch.rpm 21.36user 1.23system 0:45.31elapsed 49%CPU (0avgtext+0avgdata 26888maxresident)k 0inputs+0outputs (0major+168880minor)pagefaults 0swaps 34.13user 8.73system 1:09.67elapsed 61%CPU (0avgtext+0avgdata 109032maxresident)k 0inputs+0outputs (0major+618112minor)pagefaults 0swaps --- python3-module-tmdb3-0.7.2-alt2.noarch.rpm.repo 2020-02-17 12:05:26.000000000 +0000 +++ python3-module-tmdb3-0.7.2-alt2.noarch.rpm.hasher 2020-04-01 11:06:51.267871150 +0000 @@ -1,45 +1,45 @@ /usr/lib/python3/site-packages/tmdb3 40755 -/usr/lib/python3/site-packages/tmdb3-0.7.2-py3.7.egg-info 40755 -/usr/lib/python3/site-packages/tmdb3-0.7.2-py3.7.egg-info/PKG-INFO 100644 -/usr/lib/python3/site-packages/tmdb3-0.7.2-py3.7.egg-info/SOURCES.txt 100644 -/usr/lib/python3/site-packages/tmdb3-0.7.2-py3.7.egg-info/dependency_links.txt 100644 -/usr/lib/python3/site-packages/tmdb3-0.7.2-py3.7.egg-info/top_level.txt 100644 +/usr/lib/python3/site-packages/tmdb3-0.7.2-py3.8.egg-info 40755 +/usr/lib/python3/site-packages/tmdb3-0.7.2-py3.8.egg-info/PKG-INFO 100644 +/usr/lib/python3/site-packages/tmdb3-0.7.2-py3.8.egg-info/SOURCES.txt 100644 +/usr/lib/python3/site-packages/tmdb3-0.7.2-py3.8.egg-info/dependency_links.txt 100644 +/usr/lib/python3/site-packages/tmdb3-0.7.2-py3.8.egg-info/top_level.txt 100644 /usr/lib/python3/site-packages/tmdb3/__init__.py 100644 /usr/lib/python3/site-packages/tmdb3/__pycache__ 40755 -/usr/lib/python3/site-packages/tmdb3/__pycache__/__init__.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/__init__.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/__init__.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/cache.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/cache.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/cache.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/cache_engine.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/cache_engine.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/cache_engine.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/cache_file.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/cache_file.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/cache_file.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/cache_null.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/cache_null.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/cache_null.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/locales.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/locales.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/locales.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/pager.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/pager.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/pager.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/request.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/request.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/request.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_api.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_api.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_api.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_auth.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_auth.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_auth.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_exceptions.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_exceptions.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_exceptions.cpython-37.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/util.cpython-37.opt-1.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/util.cpython-37.opt-2.pyc 100644 -/usr/lib/python3/site-packages/tmdb3/__pycache__/util.cpython-37.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/__init__.cpython-38.opt-1.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/__init__.cpython-38.opt-2.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/__init__.cpython-38.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/cache.cpython-38.opt-1.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/cache.cpython-38.opt-2.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/cache.cpython-38.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/cache_engine.cpython-38.opt-1.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/cache_engine.cpython-38.opt-2.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/cache_engine.cpython-38.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/cache_file.cpython-38.opt-1.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/cache_file.cpython-38.opt-2.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/cache_file.cpython-38.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/cache_null.cpython-38.opt-1.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/cache_null.cpython-38.opt-2.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/cache_null.cpython-38.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/locales.cpython-38.opt-1.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/locales.cpython-38.opt-2.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/locales.cpython-38.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/pager.cpython-38.opt-1.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/pager.cpython-38.opt-2.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/pager.cpython-38.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/request.cpython-38.opt-1.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/request.cpython-38.opt-2.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/request.cpython-38.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_api.cpython-38.opt-1.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_api.cpython-38.opt-2.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_api.cpython-38.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_auth.cpython-38.opt-1.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_auth.cpython-38.opt-2.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_auth.cpython-38.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_exceptions.cpython-38.opt-1.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_exceptions.cpython-38.opt-2.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/tmdb_exceptions.cpython-38.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/util.cpython-38.opt-1.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/util.cpython-38.opt-2.pyc 100644 +/usr/lib/python3/site-packages/tmdb3/__pycache__/util.cpython-38.pyc 100644 /usr/lib/python3/site-packages/tmdb3/cache.py 100644