<86>Apr 21 01:08:18 userdel[75574]: delete user 'rooter' <86>Apr 21 01:08:18 groupadd[75599]: group added to /etc/group: name=rooter, GID=615 <86>Apr 21 01:08:18 groupadd[75599]: group added to /etc/gshadow: name=rooter <86>Apr 21 01:08:18 groupadd[75599]: new group: name=rooter, GID=615 <86>Apr 21 01:08:18 useradd[75626]: new user: name=rooter, UID=615, GID=615, home=/root, shell=/bin/bash <86>Apr 21 01:08:18 userdel[75651]: delete user 'builder' <86>Apr 21 01:08:18 userdel[75651]: removed group 'builder' owned by 'builder' <86>Apr 21 01:08:18 userdel[75651]: removed shadow group 'builder' owned by 'builder' <86>Apr 21 01:08:18 groupadd[75663]: group added to /etc/group: name=builder, GID=616 <86>Apr 21 01:08:18 groupadd[75663]: group added to /etc/gshadow: name=builder <86>Apr 21 01:08:18 useradd[75683]: new user: name=builder, UID=616, GID=616, home=/usr/src, shell=/bin/bash <13>Apr 21 01:08:21 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 21 01:08:21 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 21 01:08:21 rpmi: libtinfo-devel-5.9-alt8 1456756459 installed <13>Apr 21 01:08:21 rpmi: libncurses-devel-5.9-alt8 1456756459 installed <13>Apr 21 01:08:21 rpmi: python-modules-curses-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:08:21 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 21 01:08:21 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 21 01:08:21 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Apr 21 01:08:21 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 21 01:08:21 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 21 01:08:21 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <86>Apr 21 01:08:21 groupadd[90037]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 21 01:08:21 groupadd[90037]: group added to /etc/gshadow: name=_keytab <86>Apr 21 01:08:21 groupadd[90037]: new group: name=_keytab, GID=499 <13>Apr 21 01:08:21 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 21 01:08:22 rpmi: python3-base-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 01:08:22 rpmi: python3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 01:08:22 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:08:22 rpmi: rpm-build-python3-0.1.10.10-alt1.M80P.1 1530521451 installed <13>Apr 21 01:08:22 rpmi: libpython3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 01:08:22 rpmi: python3-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 21 01:08:22 rpmi: python3-dev-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 01:08:22 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:08:22 rpmi: python3-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 21 01:08:22 rpmi: python3-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 21 01:08:22 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:08:23 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:08:23 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:08:23 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:08:23 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:08:23 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:08:23 rpmi: python-tools-2to3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:08:23 rpmi: python-modules-xml-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:08:23 rpmi: python-modules-hotshot-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:08:23 rpmi: python-modules-bsddb-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:08:23 rpmi: python-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:08:23 rpmi: python-dev-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:08:23 rpmi: python-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 21 01:08:23 rpmi: python-modules-json-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:08:23 rpmi: python-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 21 01:08:23 rpmi: python-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed Installing python-module-z3c.json-0.5.5-alt2.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.65736 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-z3c.json-0.5.5 + echo 'Source #0 (python-module-z3c.json-0.5.5.tar):' Source #0 (python-module-z3c.json-0.5.5.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-z3c.json-0.5.5.tar + cd python-module-z3c.json-0.5.5 + /bin/chmod -c -Rf u+rwX,go-w . + cp -fR . ../python3 + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.65736 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-z3c.json-0.5.5 + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + /usr/bin/python setup.py build running build running build_py creating build creating build/lib creating build/lib/z3c copying src/z3c/__init__.py -> build/lib/z3c creating build/lib/z3c/json copying src/z3c/json/transport.py -> build/lib/z3c/json copying src/z3c/json/tests.py -> build/lib/z3c/json copying src/z3c/json/testing.py -> build/lib/z3c/json copying src/z3c/json/proxy.py -> build/lib/z3c/json copying src/z3c/json/minjson.py -> build/lib/z3c/json copying src/z3c/json/interfaces.py -> build/lib/z3c/json copying src/z3c/json/exceptions.py -> build/lib/z3c/json copying src/z3c/json/converter.py -> build/lib/z3c/json copying src/z3c/json/__init__.py -> build/lib/z3c/json running egg_info writing requirements to src/z3c.json.egg-info/requires.txt writing src/z3c.json.egg-info/PKG-INFO writing namespace_packages to src/z3c.json.egg-info/namespace_packages.txt writing top-level names to src/z3c.json.egg-info/top_level.txt writing dependency_links to src/z3c.json.egg-info/dependency_links.txt reading manifest file 'src/z3c.json.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'src/z3c.json.egg-info/SOURCES.txt' copying src/z3c/json/README.txt -> build/lib/z3c/json copying src/z3c/json/configure.zcml -> build/lib/z3c/json copying src/z3c/json/z3c.json-configure.zcml -> build/lib/z3c/json + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-z3c.json-0.5.5 + 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 ./src/z3c/json/transport.py RefactoringTool: Refactored ./src/z3c/json/tests.py --- ./src/z3c/json/transport.py (original) +++ ./src/z3c/json/transport.py (refactored) @@ -17,8 +17,8 @@ __docformat__ = "reStructuredText" import string -import urllib -import httplib +import urllib.request, urllib.parse, urllib.error +import http.client import base64 import types @@ -129,13 +129,13 @@ """ x509 = {} - if isinstance(host, types.TupleType): + if isinstance(host, tuple): host, x509 = host - auth, host = urllib.splituser(host) + auth, host = urllib.parse.splituser(host) if auth: - auth = base64.encodestring(urllib.unquote(auth)) + auth = base64.encodestring(urllib.parse.unquote(auth)) auth = string.join(string.split(auth), "") # get rid of whitespace extra_headers = [ ("Authorization", "Basic " + auth) @@ -148,7 +148,7 @@ def make_connection(self, host): # create a HTTP connection object from a host descriptor host, extra_headers, x509 = self.get_host_info(host) - return httplib.HTTP(host) + return http.client.HTTP(host) def send_request(self, connection, handler, request_body): connection.putrequest("POST", handler) @@ -158,7 +158,7 @@ connection.putheader("Host", host) if extra_headers: if isinstance(extra_headers, dict): - extra_headers = extra_headers.items() + extra_headers = list(extra_headers.items()) for key, value in extra_headers: connection.putheader(key, value) @@ -192,7 +192,7 @@ if not response: break if self.verbose: - print "body:", repr(response) + print("body:", repr(response)) p.feed(response) file.close() @@ -212,7 +212,7 @@ """ host, extra_headers, x509 = self.get_host_info(host) try: - HTTPS = httplib.HTTPS + HTTPS = http.client.HTTPS except AttributeError: raise NotImplementedError( "your version of httplib doesn't support HTTPS" --- ./src/z3c/json/tests.py (original) +++ ./src/z3c/json/tests.py (refactored) @@ -18,10 +18,10 @@ __docformat__ = "reStructuredText" import unittest -import BaseHTTPServer +import http.server import random import threading -import urllib +import urllib.request, urllib.parse, urllib.error import cgi import pprint @@ -48,7 +48,7 @@ class JSONTests(unittest.TestCase): def testReadString(self): - s = u"'hello'" + s = "'hello'" self.assertEqual(json.read(s) ,'hello') def testWriteString(self): @@ -56,7 +56,7 @@ self.assertEqual(json.write(s), '"hello"') def testReadInt(self): - s = u"1" + s = "1" self.assertEqual(json.read(s), 1) def testWriteInt(self): @@ -64,19 +64,19 @@ self.assertEqual(json.write(s), "1") def testReadLong(self): - s = u"999999999999999999999" + s = "999999999999999999999" self.assertEqual(json.read(s), 999999999999999999999) def testWriteShortLong(self): - s = 1L + s = 1 self.assertEqual(json.write(s), "1") def testWriteLongLong(self): - s = 999999999999999999999L + s = 999999999999999999999 self.assertEqual(json.write(s), "999999999999999999999") def testReadNegInt(self): - s = u"-1" + s = "-1" assert json.read(s) == -1 def testWriteNegInt(self): @@ -84,23 +84,23 @@ assert json.write(s) == '-1' def testReadFloat(self): - s = u"1.334" + s = "1.334" assert json.read(s) == 1.334 def testReadEFloat1(self): - s = u"1.334E2" + s = "1.334E2" assert json.read(s) == 133.4 def testReadEFloat2(self): - s = u"1.334E-02" + s = "1.334E-02" assert json.read(s) == 0.01334 def testReadeFloat1(self): - s = u"1.334e2" + s = "1.334e2" assert json.read(s) == 133.4 def testReadeFloat2(self): - s = u"1.334e-02" + s = "1.334e-02" assert json.read(s) == 0.01334 def testWriteFloat(self): @@ -116,7 +116,7 @@ pass def testReadNegFloat(self): - s = u"-1.334" + s = "-1.334" assert json.read(s) == -1.334 def testWriteNegFloat(self): @@ -124,7 +124,7 @@ assert json.write(s) == "-1.334" def testReadEmptyDict(self): - s = u"{}" + s = "{}" assert json.read(s) == {} def testWriteEmptyList(self): @@ -136,7 +136,7 @@ assert json.write(s) == "[]" def testReadEmptyList(self): - s = u"[]" + s = "[]" assert json.read(s) == [] def testWriteEmptyDict(self): @@ -144,7 +144,7 @@ assert json.write(s) == '{}' def testReadTrue(self): - s = u"true" + s = "true" assert json.read(s) == True def testWriteTrue(self): @@ -152,7 +152,7 @@ assert json.write(s) == "true" def testReadStringTrue(self): - s = u'"true"' + s = '"true"' assert json.read(s) == 'true' def testWriteStringTrue(self): @@ -160,7 +160,7 @@ assert json.write(s) == '"True"' def testReadStringNull(self): - s = u'"null"' + s = '"null"' assert json.read(s) == 'null' def testWriteStringNone(self): @@ -168,7 +168,7 @@ assert json.write(s) == '"None"' def testReadFalse(self): - s = u"false" + s = "false" assert json.read(s) == False def testWriteFalse(self): @@ -176,7 +176,7 @@ assert json.write(s) == 'false' def testReadNull(self): - s = u"null" + s = "null" assert json.read(s) == None def testWriteNone(self): @@ -184,11 +184,11 @@ assert json.write(s) == "null" def testReadDictOfLists(self): - s = u"{'a':[],'b':[]}" + s = "{'a':[],'b':[]}" assert json.read(s) == {'a':[],'b':[]} def testReadDictOfListsWithSpaces(self): - s = u"{ 'a' : [], 'b' : [] } " + s = "{ 'a' : [], 'b' : [] } " assert json.read(s) == {'a':[],'b':[]} def testWriteDictOfLists(self): @@ -210,11 +210,11 @@ assert spaceless(w) == '[4,4,5,6]' def testReadListOfDicts(self): - s = u"[{},{}]" + s = "[{},{}]" assert json.read(s) == [{},{}] def testReadListOfDictsWithSpaces(self): - s = u" [ { } ,{ \n} ] " + s = " [ { } ,{ \n} ] " assert json.read(s) == [{},{}] def testWriteListOfDicts(self): @@ -226,23 +226,23 @@ assert spaceless(json.write(s)) == "[{},{}]" def testReadListOfStrings(self): - s = u"['a','b','c']" + s = "['a','b','c']" assert json.read(s) == ['a','b','c'] def testReadListOfStringsWithSpaces(self): - s = u" ['a' ,'b' ,\n 'c'] " + s = " ['a' ,'b' ,\n 'c'] " assert json.read(s) == ['a','b','c'] def testReadStringWithWhiteSpace(self): - s = ur"'hello \tworld'" + s = r"'hello \tworld'" assert json.read(s) == 'hello \tworld' def testWriteMixedList(self): - o = ['OIL',34,199L,38.5] + o = ['OIL',34,199,38.5] assert spaceless(json.write(o)) == '["OIL",34,199,38.5]' def testWriteMixedTuple(self): - o = ('OIL',34,199L,38.5) + o = ('OIL',34,199,38.5) assert spaceless(json.write(o)) == '["OIL",34,199,38.5]' def testWriteStringWithWhiteSpace(self): @@ -321,23 +321,23 @@ assert json.read(s) == '\n' def testWriteNewLine(self): - s = u'\n' + s = '\n' assert json.write(s) == r'"\n"' def testWriteSimpleUnicode(self): - s = u'hello' + s = 'hello' assert json.write(s) == '"hello"' def testReadBackSlashuUnicode(self): - s = u'"\u0066"' + s = '"\u0066"' assert json.read(s) == 'f' def testReadBackSlashuUnicodeInDWARNING: couldn't encode ./src/z3c/json/tests.py's diff for your terminal RefactoringTool: No changes to ./src/z3c/json/testing.py RefactoringTool: Refactored ./src/z3c/json/proxy.py RefactoringTool: Refactored ./src/z3c/json/minjson.py ictKey(self): - s = u'{"\u0066ather":34}' + s = '{"\u0066ather":34}' assert json.read(s) == {'father':34} def testReadDictKeyWithBackSlash(self): - s = u'{"mo\\use":22}' + s = '{"mo\\use":22}' self.assertEqual(json.read(s) , {r'mo\use':22}) def testWriteDictKeyWithBackSlash(self): @@ -345,26 +345,26 @@ self.assertEqual(json.write(s) , r'{"mo\\use":22}') def testWriteListOfBackSlashuUnicodeStrings(self): - s = [u'\u20ac',u'\u20ac',u'\u20ac'] - self.assertEqual(spaceless(json.write(s)) ,u'["\u20ac","\u20ac","\u20ac"]') + s = ['\u20ac','\u20ac','\u20ac'] + self.assertEqual(spaceless(json.write(s)) ,'["\u20ac","\u20ac","\u20ac"]') def testWriteUnicodeCharacter(self): - s = json.write(u'\u1001', 'ascii') - self.assertEqual(u'"\u1001"', s) + s = json.write('\u1001', 'ascii') + self.assertEqual('"\u1001"', s) def testWriteUnicodeCharacter1(self): - s = json.write(u'\u1001', 'ascii',outputEncoding='ascii') + s = json.write('\u1001', 'ascii',outputEncoding='ascii') self.assertEqual(r'"\u1001"', s) def testWriteHexUnicode(self): - s = unicode('\xff\xfe\xbf\x00Q\x00u\x00\xe9\x00 \x00p\x00a\x00s\x00a\x00?\x00','utf-16') + s = str('\xff\xfe\xbf\x00Q\x00u\x00\xe9\x00 \x00p\x00a\x00s\x00a\x00?\x00','utf-16') p = json.write(s, 'latin-1', outputEncoding="latin-1") --- ./src/z3c/json/proxy.py (original) +++ ./src/z3c/json/proxy.py (refactored) @@ -16,7 +16,7 @@ """ __docformat__ = "reStructuredText" -import urllib +import urllib.request, urllib.parse, urllib.error import copy import logging import socket @@ -87,7 +87,7 @@ data = json.write(request) try: return self.call(data) - except socket.error, msg: + except socket.error as msg: raise ResponseError("JSONRPC server connection error.") def __getattr__(self, name): @@ -100,10 +100,10 @@ def __init__(self, uri, transport=None, encoding=None, verbose=None, jsonId=None, jsonVersion=JSON_RPC_VERSION): - utype, uri = urllib.splittype(uri) + utype, uri = urllib.parse.splittype(uri) if utype not in ("http", "https"): - raise IOError, "Unsupported JSONRPC protocol" - self.__host, self.__handler = urllib.splithost(uri) + raise IOError("Unsupported JSONRPC protocol") + self.__host, self.__handler = urllib.parse.splithost(uri) if not self.__handler: self.__handler = "" @@ -116,7 +116,7 @@ self.__encoding = encoding self.__verbose = verbose - self.jsonId = jsonId or u'jsonrpc' + self.jsonId = jsonId or 'jsonrpc' self.jsonVersion = jsonVersion or JSON_RPC_VERSION self.error = None @@ -133,9 +133,9 @@ response = self.__transport.request(self.__host, self.__handler, request, verbose=self.__verbose) self.error = None - except ResponseError, e: + except ResponseError as e: # catch error message - self.error = unicode(str(e), 'utf-8') + self.error = str(str(e), 'utf-8') raise if isinstance(response, int): --- ./src/z3c/json/minjson.py (original) +++ ./src/z3c/json/minjson.py (refactored) @@ -71,7 +71,7 @@ unichrRE = compile(r"\\u[0-9a-fA-F]{4,4}") def unichrReplace(match): - return unichr(int(match.group()[2:],16)) + return chr(int(match.group()[2:],16)) escapeStrs = (('\n',r'\n'),('\b',r'\b'), ('\f',r'\f'),('\t',r'\t'),('\r',r'\r'), ('"',r'\"') @@ -102,7 +102,7 @@ def tokenize(self): try: - tokenize(self._data.next,self.readTokens) + tokenize(self._data.__next__,self.readTokens) except TokenError: raise SyntaxError @@ -154,7 +154,7 @@ try: #key key = self.objects.pop() - if not isinstance(key,basestring): + if not isinstance(key,str): raise SyntaxError except IndexError: @@ -185,7 +185,7 @@ raise SyntaxError try: key = self.objects.pop() - if not isinstance(key,basestring): + if not isinstance(key,str): raise SyntaxError except IndexError: raise SyntaxError @@ -194,8 +194,10 @@ theDict[k[0]] = k[1] self.objects.append(theDict) - def readTokens(self,type, token, (srow, scol), (erow, ecol), line): + def readTokens(self,type, token, xxx_todo_changeme, xxx_todo_changeme1, line): # UPPERCASE consts from tokens.py or tokenize.py + (srow, scol) = xxx_todo_changeme + (erow, ecol) = xxx_todo_changeme1 if type == OP: if token not in "[{}],:-": raise SyntaxError @@ -275,7 +277,7 @@ if unicodechars: aString = unichrRE.sub(unichrReplace, aString) #if it's already unicode, we won't try to decode it - if isinstance(aString, unicode): + if isinstance(aString, str): s = aString else: if encoding: @@ -283,24 +285,24 @@ # incoming byte string. UnicodeDecode error will be raised # in that case. Often, it will be best not to provide the encoding # and allow the default - s = unicode(aString, encoding) + s = str(aString, encoding) #print "decoded %s from %s" % (s,encoding) else: # let's try to decode to unicode in system default encoding try: - s = unicode(aString) + s = str(aString) #import sys #print "decoded %s from %s" % (s,sys.getdefaultencoding()) except UnicodeDecodeError: # last choice: handle as emergencyEncoding enc = emergencyEncoding - s = unicode(aString, enc) + s = str(aString, enc) #print "%s decoded from %s" % (s, enc) # parse and get the object. try: data = JSONReader(s).output() except SyntaxError: - raise ReadException, 'Unacceptable JSON expression: %s' % aString + raise ReadException('Unacceptable JSON expression: %s' % aString) return data read = safeRead @@ -310,7 +312,7 @@ ################################# import re, codecs -from cStringIO import StringIO +from io import StringIO ### Codec error handler @@ -325,7 +327,7 @@ if isinstance(exc, UnicodeEncodeError): part = exc.object[exc.start] # repr(part) will convert u'\unnnn' to u'u\\nnnn' - return u'\\u%04x' % ord(part), exc.start+1 + return '\\u%04x' % ord(part), exc.start+1 else: raise exc @@ -376,7 +378,7 @@ ''' if stream is not None: if output_encoding is None: - raise WriteException, 'If a stream is given, output encoding must also be provided' + raise WriteException('If a stream is given, output encoding must also be provided') else: stream = JsonStream() self.stream = stream @@ -397,7 +399,7 @@ elif isinstance(obj, dict): self.stream.write('{') first = True - for key, value in obj.iteritems(): + for key, value in obj.items(): if first: first = False else: @@ -412,20 +414,20 @@ self.stream.write('false') elif obj is None: self.stream.write('null') - elif not isinstance(obj, basestring): + elif not isinstance(obj, str): # if we are not baseobj, convert to it try: obj = str(obj) - except Exception, exc: - raise WriteException, 'Cannot write object (%s: %s)' % (exc.__class__, exc) + except Exception as exc: + raise WriteException('Cannot write object (%s: %s)RefactoringTool: No changes to ./src/z3c/json/interfaces.py RefactoringTool: No changes to ./src/z3c/json/exceptions.py RefactoringTool: Refactored ./src/z3c/json/converter.py RefactoringTool: No changes to ./src/z3c/__init__.py RefactoringTool: No changes to ./setup.py RefactoringTool: Refactored ./bootstrap.py RefactoringTool: Files that were modified: RefactoringTool: ./src/z3c/json/transport.py RefactoringTool: ./src/z3c/json/tests.py RefactoringTool: ./src/z3c/json/testing.py RefactoringTool: ./src/z3c/json/proxy.py RefactoringTool: ./src/z3c/json/minjson.py RefactoringTool: ./src/z3c/json/interfaces.py RefactoringTool: ./src/z3c/json/exceptions.py RefactoringTool: ./src/z3c/json/converter.py RefactoringTool: ./src/z3c/__init__.py RefactoringTool: ./setup.py RefactoringTool: ./bootstrap.py ' % (exc.__class__, exc)) self.stream.write(obj) else: # convert to unicode first - if not isinstance(obj, unicode): + if not isinstance(obj, str): try: - obj = unicode(obj, self.input_encoding) + obj = str(obj, self.input_encoding) except (UnicodeDecodeError, UnicodeTranslateError): - obj = unicode(obj, 'utf-8', 'replace') + obj = str(obj, 'utf-8', 'replace') # do the mangling obj = strmangle(obj) # make the encoding --- ./src/z3c/json/converter.py (original) +++ ./src/z3c/json/converter.py (refactored) @@ -51,7 +51,7 @@ # This is a fall-back position for less-well-constructed JSON try: return minjson.read(aString, encoding) - except minjson.ReadException, e: + except minjson.ReadException as e: raise exceptions.ResponseError(e) @@ -62,14 +62,14 @@ def write(self, anObject): if hasCJson: try: - return unicode(cjson.encode(anObject)) + return str(cjson.encode(anObject)) except cjson.EncodeError: # fall back to minjson pass try: return minjson.write(anObject) - except minjson.WriteException, e: - raise TypeError, e + except minjson.WriteException as e: + raise TypeError(e) def premarshal(data): @@ -93,7 +93,7 @@ self.data = data def __call__(self): - raise Exception, "Not implemented" + raise Exception("Not implemented") class DictPreMarshaller(PreMarshallerBase): @@ -101,12 +101,12 @@ def __call__(self): return dict([(premarshal(k), premarshal(v)) - for (k, v) in self.data.items()]) + for (k, v) in list(self.data.items())]) class ListPreMarshaller(PreMarshallerBase): """Pre-marshaller for list""" def __call__(self): - return map(premarshal, self.data) + return list(map(premarshal, self.data)) --- ./bootstrap.py (original) +++ ./bootstrap.py (refactored) @@ -71,7 +71,7 @@ try: from urllib.request import urlopen except ImportError: - from urllib2 import urlopen + from urllib.request import urlopen exec(urlopen('http://python-distribute.org/distribute_setup.py').read(), ez) setup_args = dict(to_dir=tmpeggs, download_delay=0, no_fake=True) + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + python3 setup.py build running build running build_py creating build creating build/lib creating build/lib/z3c copying src/z3c/__init__.py -> build/lib/z3c creating build/lib/z3c/json copying src/z3c/json/transport.py -> build/lib/z3c/json copying src/z3c/json/tests.py -> build/lib/z3c/json copying src/z3c/json/testing.py -> build/lib/z3c/json copying src/z3c/json/proxy.py -> build/lib/z3c/json copying src/z3c/json/minjson.py -> build/lib/z3c/json copying src/z3c/json/interfaces.py -> build/lib/z3c/json copying src/z3c/json/exceptions.py -> build/lib/z3c/json copying src/z3c/json/converter.py -> build/lib/z3c/json copying src/z3c/json/__init__.py -> build/lib/z3c/json running egg_info writing dependency_links to src/z3c.json.egg-info/dependency_links.txt writing requirements to src/z3c.json.egg-info/requires.txt writing src/z3c.json.egg-info/PKG-INFO writing namespace_packages to src/z3c.json.egg-info/namespace_packages.txt writing top-level names to src/z3c.json.egg-info/top_level.txt reading manifest file 'src/z3c.json.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'src/z3c.json.egg-info/SOURCES.txt' copying src/z3c/json/README.txt -> build/lib/z3c/json copying src/z3c/json/configure.zcml -> build/lib/z3c/json copying src/z3c/json/z3c.json-configure.zcml -> build/lib/z3c/json + popd ~/RPM/BUILD/python-module-z3c.json-0.5.5 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.41234 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-z3c.json-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-z3c.json-buildroot + cd python-module-z3c.json-0.5.5 + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-z3c.json-buildroot --force running install running install_lib Skipping installation of /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c/__init__.py (namespace package) copying z3c/json/z3c.json-configure.zcml -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c/json copying z3c/json/configure.zcml -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c/json copying z3c/json/README.txt -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c/json copying z3c/json/__init__.py -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c/json copying z3c/json/converter.py -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c/json copying z3c/json/exceptions.py -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c/json copying z3c/json/interfaces.py -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c/json copying z3c/json/minjson.py -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c/json copying z3c/json/proxy.py -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c/json copying z3c/json/testing.py -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c/json copying z3c/json/tests.py -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c/json copying z3c/json/transport.py -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c/json byte-compiling /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c/json/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c/json/converter.py to converter.pyc byte-compiling /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c/json/exceptions.py to exceptions.pyc byte-compiling /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c/json/interfaces.py to interfaces.pyc byte-compiling /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c/json/minjson.py to minjson.pyc byte-compiling /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c/json/proxy.py to proxy.pyc byte-compiling /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c/json/testing.py to testing.pyc byte-compiling /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c/json/tests.py to tests.pyc byte-compiling /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c/json/transport.py to transport.pyc running install_egg_info running egg_info writing requirements to src/z3c.json.egg-info/requires.txt writing src/z3c.json.egg-info/PKG-INFO writing namespace_packages to src/z3c.json.egg-info/namespace_packages.txt writing top-level names to src/z3c.json.egg-info/top_level.txt writing dependency_links to src/z3c.json.egg-info/dependency_links.txt reading manifest file 'src/z3c.json.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'src/z3c.json.egg-info/SOURCES.txt' Copying src/z3c.json.egg-info to /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c.json-0.5.5-py2.7.egg-info Installing /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c.json-0.5.5-py2.7-nspkg.pth running install_scripts + install -d /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages + mv /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c.json-0.5.5-py2.7-nspkg.pth /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python2.7/site-packages/z3c.json-0.5.5-py2.7.egg-info /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/ + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-z3c.json-0.5.5 + python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-z3c.json-buildroot --force running install running install_lib Skipping installation of /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c/__init__.py (namespace package) copying z3c/json/z3c.json-configure.zcml -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c/json copying z3c/json/configure.zcml -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c/json copying z3c/json/README.txt -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c/json copying z3c/json/__init__.py -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c/json copying z3c/json/converter.py -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c/json copying z3c/json/exceptions.py -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c/json copying z3c/json/interfaces.py -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c/json copying z3c/json/minjson.py -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c/json copying z3c/json/proxy.py -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c/json copying z3c/json/testing.py -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c/json copying z3c/json/tests.py -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c/json copying z3c/json/transport.py -> /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c/json byte-compiling /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c/json/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c/json/converter.py to converter.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c/json/exceptions.py to exceptions.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c/json/interfaces.py to interfaces.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c/json/minjson.py to minjson.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c/json/proxy.py to proxy.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c/json/testing.py to testing.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c/json/tests.py to tests.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c/json/transport.py to transport.cpython-35.pyc running install_egg_info running egg_info writing namespace_packages to src/z3c.json.egg-info/namespace_packages.txt writing requirements to src/z3c.json.egg-info/requires.txt writing dependency_links to src/z3c.json.egg-info/dependency_links.txt writing top-level names to src/z3c.json.egg-info/top_level.txt writing src/z3c.json.egg-info/PKG-INFO reading manifest file 'src/z3c.json.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'src/z3c.json.egg-info/SOURCES.txt' Copying src/z3c.json.egg-info to /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c.json-0.5.5-py3.5.egg-info Installing /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c.json-0.5.5-py3.5-nspkg.pth running install_scripts + popd ~/RPM/BUILD/python-module-z3c.json-0.5.5 + install -d /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages + mv /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c.json-0.5.5-py3.5-nspkg.pth /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib/python3/site-packages/z3c.json-0.5.5-py3.5.egg-info /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/ + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-z3c.json-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-z3c.json-buildroot (binconfig,pkgconfig,libtool,desktop) Compressing files in /usr/src/tmp/python-module-z3c.json-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-z3c.json-buildroot ./usr/lib64: ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-z3c.json-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/python-module-z3c.json-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/__init__.pyc unlink /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/converter.pyc unlink /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/exceptions.pyc unlink /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/interfaces.pyc unlink /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/minjson.pyc unlink /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/proxy.pyc unlink /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/testing.pyc unlink /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/tests.pyc unlink /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/transport.pyc compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/__init__.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/converter.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/exceptions.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/interfaces.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/minjson.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/proxy.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/testing.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/tests.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/transport.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-z3c.json-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/__init__.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/converter.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/exceptions.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/interfaces.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/minjson.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/proxy.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/testing.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/tests.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/transport.py Bytecompiling python3 modules in /usr/src/tmp/python-module-z3c.json-buildroot using python3 unlink /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/__pycache__/converter.cpython-35.pyc unlink /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/__pycache__/exceptions.cpython-35.pyc unlink /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/__pycache__/interfaces.cpython-35.pyc unlink /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/__pycache__/minjson.cpython-35.pyc unlink /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/__pycache__/proxy.cpython-35.pyc unlink /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/__pycache__/testing.cpython-35.pyc unlink /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/__pycache__/tests.cpython-35.pyc unlink /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/__pycache__/transport.cpython-35.pyc compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/__init__.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/converter.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/exceptions.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/interfaces.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/minjson.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/proxy.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/testing.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/tests.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/transport.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-z3c.json-buildroot using python3 -O compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/__init__.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/converter.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/exceptions.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/interfaces.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/minjson.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/proxy.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/testing.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/tests.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/transport.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-z3c.json-buildroot using python3 -OO compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/__init__.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/converter.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/exceptions.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/interfaces.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/minjson.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/proxy.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/testing.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/tests.py compile /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/transport.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib64/python3/site-packages/z3c/json/__pycache__/transport.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/z3c/json/__pycache__/transport.cpython-35.pyc' './usr/lib64/python3/site-packages/z3c/json/__pycache__/testing.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/z3c/json/__pycache__/testing.cpython-35.pyc' './usr/lib64/python3/site-packages/z3c/json/__pycache__/proxy.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/z3c/json/__pycache__/proxy.cpython-35.pyc' './usr/lib64/python3/site-packages/z3c/json/__pycache__/interfaces.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/z3c/json/__pycache__/interfaces.cpython-35.pyc' './usr/lib64/python3/site-packages/z3c/json/__pycache__/exceptions.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/z3c/json/__pycache__/exceptions.cpython-35.pyc' './usr/lib64/python3/site-packages/z3c/json/__pycache__/converter.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/z3c/json/__pycache__/converter.cpython-35.pyc' './usr/lib64/python3/site-packages/z3c/json/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/z3c/json/__pycache__/__init__.cpython-35.pyc' './usr/lib64/python3/site-packages/z3c/json/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib64/python3/site-packages/z3c/json/__pycache__/__init__.cpython-35.opt-1.pyc' Hardlinking identical .pyc and .pyo files './usr/lib64/python2.7/site-packages/z3c/json/transport.pyo' => './usr/lib64/python2.7/site-packages/z3c/json/transport.pyc' './usr/lib64/python2.7/site-packages/z3c/json/testing.pyo' => './usr/lib64/python2.7/site-packages/z3c/json/testing.pyc' './usr/lib64/python2.7/site-packages/z3c/json/proxy.pyo' => './usr/lib64/python2.7/site-packages/z3c/json/proxy.pyc' './usr/lib64/python2.7/site-packages/z3c/json/interfaces.pyo' => './usr/lib64/python2.7/site-packages/z3c/json/interfaces.pyc' './usr/lib64/python2.7/site-packages/z3c/json/exceptions.pyo' => './usr/lib64/python2.7/site-packages/z3c/json/exceptions.pyc' './usr/lib64/python2.7/site-packages/z3c/json/converter.pyo' => './usr/lib64/python2.7/site-packages/z3c/json/converter.pyc' './usr/lib64/python2.7/site-packages/z3c/json/__init__.pyo' => './usr/lib64/python2.7/site-packages/z3c/json/__init__.pyc' Processing files: python-module-z3c.json-0.5.5-alt2.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.84832 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-z3c.json-0.5.5 + DOCDIR=/usr/src/tmp/python-module-z3c.json-buildroot/usr/share/doc/python-module-z3c.json-0.5.5 + export DOCDIR + rm -rf /usr/src/tmp/python-module-z3c.json-buildroot/usr/share/doc/python-module-z3c.json-0.5.5 + /bin/mkdir -p /usr/src/tmp/python-module-z3c.json-buildroot/usr/share/doc/python-module-z3c.json-0.5.5 + cp -prL CHANGES.txt COPYRIGHT.txt LICENSE.txt README.txt TODO.txt /usr/src/tmp/python-module-z3c.json-buildroot/usr/share/doc/python-module-z3c.json-0.5.5 + chmod -R go-w /usr/src/tmp/python-module-z3c.json-buildroot/usr/share/doc/python-module-z3c.json-0.5.5 + chmod -R a+rX /usr/src/tmp/python-module-z3c.json-buildroot/usr/share/doc/python-module-z3c.json-0.5.5 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.Kdfy9Q 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.768ENq find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/converter.py: line=27 IGNORE (for REQ=slight and deep=8) module=cjson /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/converter.py: line=30 IGNORE (for REQ=slight and deep=8) module=logging Provides: python2.7(z3c.json), python2.7(z3c.json.converter), python2.7(z3c.json.exceptions), python2.7(z3c.json.interfaces), python2.7(z3c.json.minjson), python2.7(z3c.json.proxy), python2.7(z3c.json.transport) Requires: python2.7(zope.component), /usr/lib64/python2.7/site-packages, python-modules, python2.7(logging), python2.7(tokenize), python2.7(z3c), python2.7(zope) Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.C8iBv3 Processing files: python3-module-z3c.json-0.5.5-alt2.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.98290 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-z3c.json-0.5.5 + DOCDIR=/usr/src/tmp/python-module-z3c.json-buildroot/usr/share/doc/python3-module-z3c.json-0.5.5 + export DOCDIR + rm -rf /usr/src/tmp/python-module-z3c.json-buildroot/usr/share/doc/python3-module-z3c.json-0.5.5 + /bin/mkdir -p /usr/src/tmp/python-module-z3c.json-buildroot/usr/share/doc/python3-module-z3c.json-0.5.5 + cp -prL CHANGES.txt COPYRIGHT.txt LICENSE.txt README.txt TODO.txt /usr/src/tmp/python-module-z3c.json-buildroot/usr/share/doc/python3-module-z3c.json-0.5.5 + chmod -R go-w /usr/src/tmp/python-module-z3c.json-buildroot/usr/share/doc/python3-module-z3c.json-0.5.5 + chmod -R a+rX /usr/src/tmp/python-module-z3c.json-buildroot/usr/share/doc/python3-module-z3c.json-0.5.5 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.NvvYEJ 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.sa1YNs find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/converter.py: line=27 IGNORE (for REQ=slight and deep=8) module=cjson /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/converter.py: line=30 IGNORE (for REQ=slight and deep=8) module=logging Provides: python3(z3c.json), python3(z3c.json.converter), python3(z3c.json.exceptions), python3(z3c.json.interfaces), python3(z3c.json.minjson), python3(z3c.json.proxy), python3(z3c.json.transport), python3.3(z3c.json), python3.3(z3c.json.converter), python3.3(z3c.json.exceptions), python3.3(z3c.json.interfaces), python3.3(z3c.json.minjson), python3.3(z3c.json.proxy), python3.3(z3c.json.transport) Requires: python3(zope.component) < 0, /usr/lib64/python3/site-packages, python3(base64) < 0, python3(codecs) < 0, python3(copy) < 0, python3(http) < 0, python3(io) < 0, python3(logging) < 0, python3(re) < 0, python3(socket) < 0, python3(string) < 0, python3(token) < 0, python3(tokenize) < 0, python3(types) < 0, python3(urllib) < 0, python3(z3c) < 0, python3(zope) < 0 Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.d8S1Ue Processing files: python3-module-z3c.json-tests-0.5.5-alt2.1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.KMiu73 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.7ZWjjW find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python3/site-packages/z3c/json/tests.py: line=112 IGNORE (for REQ=slight and deep=15) module=decimal Provides: python3(z3c.json.testing), python3(z3c.json.tests), python3.3(z3c.json.testing), python3.3(z3c.json.tests) Requires: python3-module-z3c.json = 0.5.5-alt2.1, python3(z3c.coverage) < 0, python3(zope.app.testing) < 0, /usr/lib64/python3/site-packages, python3(cgi) < 0, python3(http) < 0, python3(pprint) < 0, python3(random) < 0, python3(threading) < 0, python3(unittest) < 0, python3(urllib) < 0, python3(z3c) < 0, python3(zope) < 0 Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.wmBBzR Processing files: python-module-z3c.json-tests-0.5.5-alt2.1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.XzwnSP 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.AXFQhR find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-z3c.json-buildroot/usr/lib64/python2.7/site-packages/z3c/json/tests.py: line=112 IGNORE (for REQ=slight and deep=15) module=decimal Provides: python2.7(z3c.json.testing), python2.7(z3c.json.tests) Requires: python-module-z3c.json = 0.5.5-alt2.1, python2.7(z3c.coverage), python2.7(zope.app.testing), /usr/lib64/python2.7/site-packages, python-modules, python2.7(unittest), python2.7(z3c), python2.7(zope) Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.BlDRJV Removing 4 extra deps from python-module-z3c.json-tests due to repentancy on python-module-z3c.json Removing 5 extra deps from python3-module-z3c.json-tests due to repentancy on python3-module-z3c.json Wrote: /usr/src/RPM/RPMS/x86_64/python-module-z3c.json-0.5.5-alt2.1.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/python3-module-z3c.json-0.5.5-alt2.1.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/python3-module-z3c.json-tests-0.5.5-alt2.1.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/python-module-z3c.json-tests-0.5.5-alt2.1.x86_64.rpm 6.73user 1.05system 0:19.58elapsed 39%CPU (0avgtext+0avgdata 28436maxresident)k 0inputs+0outputs (0major+369382minor)pagefaults 0swaps 11.69user 3.27system 0:28.06elapsed 53%CPU (0avgtext+0avgdata 121976maxresident)k 0inputs+0outputs (0major+649303minor)pagefaults 0swaps --- python3-module-z3c.json-0.5.5-alt2.1.x86_64.rpm.repo 2016-03-17 07:01:34.000000000 +0000 +++ python3-module-z3c.json-0.5.5-alt2.1.x86_64.rpm.hasher 2019-04-21 01:08:45.124542354 +0000 @@ -1,10 +1,10 @@ /usr/lib64/python3/site-packages/z3c 40755 -/usr/lib64/python3/site-packages/z3c.json-0.5.5-py3.3.egg-info 40755 -/usr/lib64/python3/site-packages/z3c.json-0.5.5-py3.3.egg-info/PKG-INFO 100644 -/usr/lib64/python3/site-packages/z3c.json-0.5.5-py3.3.egg-info/SOURCES.txt 100644 -/usr/lib64/python3/site-packages/z3c.json-0.5.5-py3.3.egg-info/dependency_links.txt 100644 -/usr/lib64/python3/site-packages/z3c.json-0.5.5-py3.3.egg-info/namespace_packages.txt 100644 -/usr/lib64/python3/site-packages/z3c.json-0.5.5-py3.3.egg-info/not-zip-safe 100644 -/usr/lib64/python3/site-packages/z3c.json-0.5.5-py3.3.egg-info/requires.txt 100644 -/usr/lib64/python3/site-packages/z3c.json-0.5.5-py3.3.egg-info/top_level.txt 100644 +/usr/lib64/python3/site-packages/z3c.json-0.5.5-py3.5.egg-info 40755 +/usr/lib64/python3/site-packages/z3c.json-0.5.5-py3.5.egg-info/PKG-INFO 100644 +/usr/lib64/python3/site-packages/z3c.json-0.5.5-py3.5.egg-info/SOURCES.txt 100644 +/usr/lib64/python3/site-packages/z3c.json-0.5.5-py3.5.egg-info/dependency_links.txt 100644 +/usr/lib64/python3/site-packages/z3c.json-0.5.5-py3.5.egg-info/namespace_packages.txt 100644 +/usr/lib64/python3/site-packages/z3c.json-0.5.5-py3.5.egg-info/not-zip-safe 100644 +/usr/lib64/python3/site-packages/z3c.json-0.5.5-py3.5.egg-info/requires.txt 100644 +/usr/lib64/python3/site-packages/z3c.json-0.5.5-py3.5.egg-info/top_level.txt 100644 /usr/lib64/python3/site-packages/z3c/json 40755 @@ -13,14 +13,23 @@ /usr/lib64/python3/site-packages/z3c/json/__pycache__ 40755 -/usr/lib64/python3/site-packages/z3c/json/__pycache__/converter.cpython-33.pyc 100644 -/usr/lib64/python3/site-packages/z3c/json/__pycache__/converter.cpython-33.pyo 100644 -/usr/lib64/python3/site-packages/z3c/json/__pycache__/exceptions.cpython-33.pyc 100644 -/usr/lib64/python3/site-packages/z3c/json/__pycache__/exceptions.cpython-33.pyo 100644 -/usr/lib64/python3/site-packages/z3c/json/__pycache__/interfaces.cpython-33.pyc 100644 -/usr/lib64/python3/site-packages/z3c/json/__pycache__/interfaces.cpython-33.pyo 100644 -/usr/lib64/python3/site-packages/z3c/json/__pycache__/minjson.cpython-33.pyc 100644 -/usr/lib64/python3/site-packages/z3c/json/__pycache__/minjson.cpython-33.pyo 100644 -/usr/lib64/python3/site-packages/z3c/json/__pycache__/proxy.cpython-33.pyc 100644 -/usr/lib64/python3/site-packages/z3c/json/__pycache__/proxy.cpython-33.pyo 100644 -/usr/lib64/python3/site-packages/z3c/json/__pycache__/transport.cpython-33.pyc 100644 -/usr/lib64/python3/site-packages/z3c/json/__pycache__/transport.cpython-33.pyo 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/__init__.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/__init__.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/__init__.cpython-35.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/converter.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/converter.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/converter.cpython-35.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/exceptions.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/exceptions.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/exceptions.cpython-35.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/interfaces.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/interfaces.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/interfaces.cpython-35.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/minjson.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/minjson.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/minjson.cpython-35.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/proxy.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/proxy.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/proxy.cpython-35.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/transport.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/transport.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/transport.cpython-35.pyc 100644 /usr/lib64/python3/site-packages/z3c/json/configure.zcml 100644 @@ -39,19 +48,19 @@ /usr/share/doc/python3-module-z3c.json-0.5.5/TODO.txt 100644 -Requires: python3.3(zope.component) +Requires: python3(zope.component) < 0 Requires: /usr/lib64/python3/site-packages -Requires: python3.3(base64) -Requires: python3.3(codecs) -Requires: python3.3(copy) -Requires: python3.3(http) -Requires: python3.3(io) -Requires: python3.3(logging) -Requires: python3.3(re) -Requires: python3.3(socket) -Requires: python3.3(string) -Requires: python3.3(token) -Requires: python3.3(tokenize) -Requires: python3.3(types) -Requires: python3.3(urllib) -Requires: python3.3(z3c) -Requires: python3.3(zope) +Requires: python3(base64) < 0 +Requires: python3(codecs) < 0 +Requires: python3(copy) < 0 +Requires: python3(http) < 0 +Requires: python3(io) < 0 +Requires: python3(logging) < 0 +Requires: python3(re) < 0 +Requires: python3(socket) < 0 +Requires: python3(string) < 0 +Requires: python3(token) < 0 +Requires: python3(tokenize) < 0 +Requires: python3(types) < 0 +Requires: python3(urllib) < 0 +Requires: python3(z3c) < 0 +Requires: python3(zope) < 0 Requires: rpmlib(PayloadIsLzma) --- python3-module-z3c.json-tests-0.5.5-alt2.1.x86_64.rpm.repo 2016-03-17 07:01:34.000000000 +0000 +++ python3-module-z3c.json-tests-0.5.5-alt2.1.x86_64.rpm.hasher 2019-04-21 01:08:45.239542321 +0000 @@ -1,5 +1,7 @@ -/usr/lib64/python3/site-packages/z3c/json/__pycache__/testing.cpython-33.pyc 100644 -/usr/lib64/python3/site-packages/z3c/json/__pycache__/testing.cpython-33.pyo 100644 -/usr/lib64/python3/site-packages/z3c/json/__pycache__/tests.cpython-33.pyc 100644 -/usr/lib64/python3/site-packages/z3c/json/__pycache__/tests.cpython-33.pyo 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/testing.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/testing.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/testing.cpython-35.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/tests.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/tests.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/z3c/json/__pycache__/tests.cpython-35.pyc 100644 /usr/lib64/python3/site-packages/z3c/json/testing.py 100644 @@ -7,9 +9,9 @@ Requires: python3-module-z3c.json = 0.5.5-alt2.1 -Requires: python3.3(z3c.coverage) -Requires: python3.3(zope.app.testing) -Requires: python3.3(cgi) -Requires: python3.3(pprint) -Requires: python3.3(random) -Requires: python3.3(threading) -Requires: python3.3(unittest) +Requires: python3(z3c.coverage) < 0 +Requires: python3(zope.app.testing) < 0 +Requires: python3(cgi) < 0 +Requires: python3(pprint) < 0 +Requires: python3(random) < 0 +Requires: python3(threading) < 0 +Requires: python3(unittest) < 0 Requires: rpmlib(PayloadIsLzma)