<86>Jan 26 06:52:26 userdel[11362]: delete user 'rooter' <86>Jan 26 06:52:26 userdel[11362]: removed group 'rooter' owned by 'rooter' <86>Jan 26 06:52:26 userdel[11362]: removed shadow group 'rooter' owned by 'rooter' <86>Jan 26 06:52:26 groupadd[11386]: group added to /etc/group: name=rooter, GID=606 <86>Jan 26 06:52:26 groupadd[11386]: group added to /etc/gshadow: name=rooter <86>Jan 26 06:52:26 groupadd[11386]: new group: name=rooter, GID=606 <86>Jan 26 06:52:26 useradd[11405]: new user: name=rooter, UID=606, GID=606, home=/root, shell=/bin/bash <86>Jan 26 06:52:26 userdel[11437]: delete user 'builder' <86>Jan 26 06:52:26 userdel[11437]: removed group 'builder' owned by 'builder' <86>Jan 26 06:52:26 groupadd[11462]: group added to /etc/group: name=builder, GID=607 <86>Jan 26 06:52:26 groupadd[11462]: group added to /etc/gshadow: name=builder <86>Jan 26 06:52:26 groupadd[11462]: new group: name=builder, GID=607 <86>Jan 26 06:52:26 useradd[11479]: new user: name=builder, UID=607, GID=607, home=/usr/src, shell=/bin/bash <13>Jan 26 06:52:31 rpmi: libexpat-2.1.0-alt1 1347469773 installed <13>Jan 26 06:52:31 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Jan 26 06:52:31 rpmi: libtinfo-devel-5.9-alt8 1456756589 installed <13>Jan 26 06:52:31 rpmi: libncurses-devel-5.9-alt8 1456756589 installed <13>Jan 26 06:52:31 rpmi: python-modules-curses-2.7.11-alt3 1460726037 installed <13>Jan 26 06:52:31 rpmi: libverto-0.2.6-alt1_6 1455633232 installed <13>Jan 26 06:52:31 rpmi: libkeyutils-1.5.9-alt2 1464351238 installed <13>Jan 26 06:52:31 rpmi: libcom_err-1.42.13-alt2 1449075923 installed <13>Jan 26 06:52:31 rpmi: ca-certificates-2016.09.28-alt1 1475233825 installed <13>Jan 26 06:52:31 rpmi: libcrypto10-1.0.2j-alt1 1474898021 installed <13>Jan 26 06:52:31 rpmi: libkrb5-1.14.2-alt2 1465464128 installed <13>Jan 26 06:52:31 rpmi: libssl10-1.0.2j-alt1 1474898021 installed <13>Jan 26 06:52:31 rpmi: python-modules-compiler-2.7.11-alt3 1460726037 installed <13>Jan 26 06:52:31 rpmi: python-modules-email-2.7.11-alt3 1460726037 installed <13>Jan 26 06:52:31 rpmi: python-modules-unittest-2.7.11-alt3 1460726037 installed <13>Jan 26 06:52:31 rpmi: python-modules-encodings-2.7.11-alt3 1460726037 installed <13>Jan 26 06:52:32 rpmi: python-modules-2.7.11-alt3 1460726037 installed <13>Jan 26 06:52:32 rpmi: rpm-build-python3-0.1.11-alt1 1484131403 installed <13>Jan 26 06:52:32 rpmi: python3-3.5.1-alt7 1462447642 installed <13>Jan 26 06:52:33 rpmi: python3-base-3.5.1-alt7 1462447642 installed <13>Jan 26 06:52:33 rpmi: python-modules-ctypes-2.7.11-alt3 1460726037 installed <13>Jan 26 06:52:33 rpmi: python-modules-multiprocessing-2.7.11-alt3 1460726037 installed <13>Jan 26 06:52:33 rpmi: python-modules-logging-2.7.11-alt3 1460726037 installed <13>Jan 26 06:52:33 rpmi: python-tools-2to3-2.7.11-alt3 1460726037 installed <13>Jan 26 06:52:33 rpmi: libpython3-3.5.1-alt7 1462447642 installed <13>Jan 26 06:52:33 rpmi: python-modules-xml-2.7.11-alt3 1460726037 installed <13>Jan 26 06:52:33 rpmi: python-modules-hotshot-2.7.11-alt3 1460726037 installed <13>Jan 26 06:52:33 rpmi: python-modules-bsddb-2.7.11-alt3 1460726037 installed <13>Jan 26 06:52:33 rpmi: python-2.7.11-alt3 1460726037 installed <13>Jan 26 06:52:33 rpmi: python-dev-2.7.11-alt3 1460726037 installed <13>Jan 26 06:52:33 rpmi: python-module-setuptools-1:18.1-alt4 1469693421 installed <13>Jan 26 06:52:34 rpmi: python3-dev-3.5.1-alt7 1462447642 installed <13>Jan 26 06:52:34 rpmi: python3-module-setuptools-1:18.1-alt4 1469693421 installed Installing python-module-zope.rdb-3.5.0-alt3.1.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.90088 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-zope.rdb-3.5.0 + echo 'Source #0 (python-module-zope.rdb-3.5.0.tar):' Source #0 (python-module-zope.rdb-3.5.0.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-zope.rdb-3.5.0.tar + cd python-module-zope.rdb-3.5.0 + /bin/chmod -c -Rf u+rwX,go-w . + cp -fR . ../python3 + find ../python3 -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 ../python3/src/zope/rdb/zcml.py RefactoringTool: Refactored ../python3/src/zope/rdb/tests/test_zopedbtransactionmanager.py RefactoringTool: Refactored ../python3/src/zope/rdb/tests/test_zopedatabaseadapter.py RefactoringTool: Refactored ../python3/src/zope/rdb/tests/test_zopecursor.py --- ../python3/src/zope/rdb/zcml.py (original) +++ ../python3/src/zope/rdb/zcml.py (refactored) @@ -25,22 +25,22 @@ """This directive creates a globale connection to an RDBMS.""" name = TextLine( - title=u"Name", - description=u"This is the name the connection will be known as.", + title="Name", + description="This is the name the connection will be known as.", required=True) component = GlobalObject( - title=u"Component", - description=u"Specifies the component that provides the connection. " + title="Component", + description="Specifies the component that provides the connection. " "This component handles one particular RDBMS.", required=True) dsn = TextLine( - title=u"DSN", - description=u"The DSN contains all the connection information. The"\ - u"syntax looks as follows: \n" \ - u"dbi://username:password@host:port/dbname;param1=value...", - default=u"dbi://localhost/testdb", + title="DSN", + description="The DSN contains all the connection information. The"\ + "syntax looks as follows: \n" \ + "dbi://username:password@host:port/dbname;param1=value...", + default="dbi://localhost/testdb", required=True) def connectionhandler(_context, name, component, dsn): --- ../python3/src/zope/rdb/tests/test_zopedbtransactionmanager.py (original) +++ ../python3/src/zope/rdb/tests/test_zopedbtransactionmanager.py (refactored) @@ -39,7 +39,7 @@ transaction.abort() def test_interface(self): - self.assert_(verifyObject(IDataManager, self.datamgr)) + self.assertTrue(verifyObject(IDataManager, self.datamgr)) def test_abort(self): transaction.abort() --- ../python3/src/zope/rdb/tests/test_zopedatabaseadapter.py (original) +++ ../python3/src/zope/rdb/tests/test_zopedatabaseadapter.py (refactored) @@ -72,7 +72,7 @@ from zope.rdb import identity da = self._da conv = da.getConverter('any') - self.assert_(conv is identity, "default converter is wrong") + self.assertTrue(conv is identity, "default converter is wrong") def testThreading(self): # Ensure that different threads get distinct connections @@ -84,8 +84,8 @@ t = Thread(target=get_con) t.start() t.join() - self.failUnlessEqual(len(cons), 2) - self.failIfEqual(id(cons[0]), id(cons[1])) + self.assertEqual(len(cons), 2) + self.assertNotEqual(id(cons[0]), id(cons[1])) def test_suite(): --- ../python3/src/zope/rdb/tests/test_zopecursor.py (original) +++ ../python3/src/zope/rdb/tests/test_zopecursor.py (refactored) @@ -156,44 +156,44 @@ self.assertEqual([("A",), ("B",)], self.cursor.cursor.args) def test_cursor_query_encoding(self): - self.cursor.execute(u'\u0422\u0435\u0441\u0442') + self.cursor.execute('\u0422\u0435\u0441\u0442') self.assertEqual('\xd0\xa2\xd0\xb5\xd1\x81\xd1\x82', self.cursor.cursor.query) self.typeInfo.setEncoding("windows-1251") - self.cursor.execute(u'\u0422\u0435\u0441\u0442') + self.cursor.execute('\u0422\u0435\u0441\u0442') self.assertEqual('\xd2\xe5\xf1\xf2', self.cursor.cursor.query) def test_cursor_tuple_args_encoding(self): self.typeInfo.setEncoding("windows-1251") self.cursor.execute("SELECT * FROM table", - (u'\u0422\u0435\u0441\u0442',)) + ('\u0422\u0435\u0441\u0442',)) self.assertEqual(('\xd2\xe5\xf1\xf2',), self.cursor.cursor.args) def test_cursor_list_args_encoding(self): self.typeInfo.setEncoding("windows-1251") - self.cursor.execute(u'\u0422\u0435\u0441\u0442', - [u'\u0422\u0435\u0441\u0442']) + self.cursor.execute('\u0422\u0435\u0441\u0442', + ['\u0422\u0435\u0441\u0442']) self.assertEqual('\xd2\xe5\xf1\xf2', self.cursor.cursor.query) selfRefactoringTool: Refactored ../python3/src/zope/rdb/tests/test_zopeconnection.py RefactoringTool: Refactored ../python3/src/zope/rdb/tests/test_row.py .assertEqual(['\xd2\xe5\xf1\xf2'], self.cursor.cursor.args) self.cursor.execute("SELECT * FROM table", - [(u'\u0422\u0435\u0441\u0442',)]) + [('\u0422\u0435\u0441\u0442',)]) self.assertEqual([('\xd2\xe5\xf1\xf2',)], self.cursor.cursor.args) self.cursor.execute("SELECT * FROM table", - [[u'\u0422\u0435\u0441\u0442']]) + [['\u0422\u0435\u0441\u0442']]) self.assertEqual([['\xd2\xe5\xf1\xf2']], self.cursor.cursor.args) self.cursor.execute("SELECT * FROM table", - [{"value": u'\u0422\u0435\u0441\u0442'}]) + [{"value": '\u0422\u0435\u0441\u0442'}]) self.assertEqual([{"value": '\xd2\xe5\xf1\xf2'}], self.cursor.cursor.args) def test_cursor_dict_args_encoding(self): self.typeInfo.setEncoding("windows-1251") self.cursor.execute("SELECT * FROM table", - {"value": u'\u0422\u0435\u0441\u0442'}) + {"value": '\u0422\u0435\u0441\u0442'}) self.assertEqual({"value": '\xd2\xe5\xf1\xf2'}, self.cursor.cursor.args) --- ../python3/src/zope/rdb/tests/test_zopeconnection.py (original) +++ ../python3/src/zope/rdb/tests/test_zopeconnection.py (refactored) @@ -27,7 +27,7 @@ zc = ZopeConnection(ConnectionStub(), TypeInfoStub()) cursor = zc.cursor() - self.failUnless(IZopeCursor.providedBy(cursor), + self.assertTrue(IZopeCursor.providedBy(cursor), "cursor is not what we expected") def test_connection_txn_registration(self): --- ../python3/src/zope/rdb/tests/test_row.py (original) +++ ../python3/src/zope/rdb/tests/test_row.py (refactored) @@ -29,8 +29,8 @@ klass = RowClassFactory(columns) ob = klass(data) - self.failUnless(ob.food == 'pizza', "bad row class attribute") - self.failUnless(ob.name == 'john', "bad row class attribute (2)") + self.assertTrue(ob.food == 'pizza', "bad row class attribute") + self.assertTrue(ob.name == 'john', "bad row class attribute (2)") def test_RowClassFactory_Proxied(self): from zope.rdb import RowClassFactory @@ -47,8 +47,8 @@ proxied = ProxyFactory(ob) - self.failUnless (proxied.type == 'airplane', "security proxy error") - self.failUnless (proxied.speed == '800km', "security proxy error (2)") + self.assertTrue (proxied.type == 'airplane', "security proxy error") + self.assertTrue (proxied.speed == '800km', "security proxy error (2)") self.assertRaises(ForbiddenAttribute, getattr, proxied, '__slots__') # Indirectly, check the the __Security_checker__ attribute has been @@ -60,7 +60,7 @@ # Check __Security_checker__ directly self.assertRaises(AttributeError, getattr, klass, '__Security_checker__') - self.assert_(IChecker.providedBy(ob.__Security_checker__)) + self.assertTrue(IChecker.providedBy(ob.__Security_checker__)) def test__cmp__(self): from zope.rdb import RowClassFactory @@ -81,14 +81,14 @@ klass3 = RowClassFactory(columns) ob3 = klass3(data) - self.assert_(ob < ob3, "cmp with different columns") + self.assertTrue(ob < ob3, "cmp with different columns") columns = ('food', 'name') data = ('pizza', 'mary') klass4 = RowClassFactory(columns) ob4 = klass4(data) - self.assert_(ob < ob4, "cmp with different data") + self.assertTrue(ob < ob4, "cmp with different data") def test_InstanceOnlyDescriptor(self): from zope.rdb import InstanceOnlyDescriptor @@ -99,10 +99,10 @@ self.assertRaises(AttributeError, d.__get__, None, cls) self.assertRaises(AttributeError, d.__delete__, inst) d.__set__(inst, 23) - self.assertEquals(d.__get__(inst, cls), 23) + self.assertEqual(d.__get__(inst, cls), 23) self.assertRaises(AttributeError, d.__get__, None, cls) d = InstanceOnlyDescriptor(23) - self.assertRefactoringTool: Refactored ../python3/src/zope/rdb/tests/test_resultset.py RefactoringTool: Refactored ../python3/src/zope/rdb/tests/test_gadflyrootdirective.py RefactoringTool: No changes to ../python3/src/zope/rdb/tests/test_gadflyphantom.py RefactoringTool: Refactored ../python3/src/zope/rdb/tests/test_gadflyadapter.py RefactoringTool: No changes to ../python3/src/zope/rdb/tests/test_dsnparser.py RefactoringTool: No changes to ../python3/src/zope/rdb/tests/test_doctests.py RefactoringTool: No changes to ../python3/src/zope/rdb/tests/test_directives.py RefactoringTool: No changes to ../python3/src/zope/rdb/tests/stubs.py RefactoringTool: Refactored ../python3/src/zope/rdb/interfaces.py RefactoringTool: Refactored ../python3/src/zope/rdb/gadflyzcml.py RefactoringTool: Refactored ../python3/src/zope/rdb/gadflyda.py Equals(d.__get__(inst, cls), 23) + self.assertEqual(d.__get__(inst, cls), 23) d.__delete__(inst) self.assertRaises(AttributeError, d.__get__, inst, cls) self.assertRaises(AttributeError, d.__get__, None, cls) --- ../python3/src/zope/rdb/tests/test_resultset.py (original) +++ ../python3/src/zope/rdb/tests/test_resultset.py (refactored) @@ -52,7 +52,7 @@ rs1 = ResultSet(columns1, rows) columns2 = ('Foo', 'Bar') rs2 = ResultSet(columns2, rows) - self.assert_(rs1 > rs2, "different columns compared incorrectly") + self.assertTrue(rs1 > rs2, "different columns compared incorrectly") # Test if the data is different columns = ('foo', 'bar') @@ -60,7 +60,7 @@ rows2 = (('2', '2'), ('3', '4')) rs1 = ResultSet(columns, rows1) rs2 = ResultSet(columns, rows2) - self.assert_(rs1 < rs2, "different columns compared incorrectly") + self.assertTrue(rs1 < rs2, "different columns compared incorrectly") --- ../python3/src/zope/rdb/tests/test_gadflyrootdirective.py (original) +++ ../python3/src/zope/rdb/tests/test_gadflyrootdirective.py (refactored) @@ -30,7 +30,7 @@ self.assertEqual(getGadflyRoot(), 'gadfly') self.context = xmlconfig.file("gadflyroot.zcml", zope.rdb.tests) - self.assert_( + self.assertTrue( os.path.join('zope', 'rdb', 'tests', 'test', 'dir') in getGadflyRoot() ) --- ../python3/src/zope/rdb/tests/test_gadflyadapter.py (original) +++ ../python3/src/zope/rdb/tests/test_gadflyadapter.py (refactored) @@ -193,14 +193,14 @@ operation = "INSERT INTO table(v1, v2) VALUES (?, ?)" parameters = [(1, 2), (3, 4)] self.cursor.executemany(operation, parameters) - self.failUnlessEqual([(operation, parameters)], + self.assertEqual([(operation, parameters)], self.cursor.operations) def testExecutemanyUpdate(self): operation = "UPDATE table SET value=0 WHERE id=?" parameters = [(1,), (2,)] self.cursor.executemany(operation, parameters) - self.failUnlessEqual([ + self.assertEqual([ (operation, parameters[0]), (operation, parameters[1]), ], self.cursor.operations) @@ -209,7 +209,7 @@ operation = "DELETE FROM table WHERE id=?" parameters = [(1,), (2,)] self.cursor.executemany(operation, parameters) - self.failUnlessEqual([ + self.assertEqual([ (operation, parameters[0]), (operation, parameters[1]), ], self.cursor.operations) --- ../python3/src/zope/rdb/interfaces.py (original) +++ ../python3/src/zope/rdb/interfaces.py (refactored) @@ -63,7 +63,7 @@ encoding = TextLine( title=_("Database encoding"), description=_("Encoding of the database content"), - default=u"utf-8", + default="utf-8", required=False ) @@ -280,7 +280,7 @@ "dbi://user:passwd@host:port/dbname;param1=value...\n" "\n" "All values should be properly URL-encoded."), - default=u"dbi://dbname", + default="dbi://dbname", required=True) def connect(): --- ../python3/src/zope/rdb/gadflyzcml.py (original) +++ ../python3/src/zope/rdb/gadflyzcml.py (refactored) @@ -24,9 +24,9 @@ """This directive creates a globale connection to an RDBMS.""" path = Path( - title=u"Path of Gadfly Root", - description=u"Specifies the path of the gadfly root relative to the" - u"packge.", + title="Path of Gadfly Root", + description="Specifies the path of the gadfly root relative to the" + "packge.", required=True) --- ../python3/src/zope/rdb/gadflyda.py (original) +++ ../python3/src/zope/rdb/gadflyda.py (refactored) @@ -15,7 +15,7 @@ $Id: gadflyda.py 66859 2006-04-11 17:32:49Z jinty $ """ -import gadfly +from . import gadfly import os from zope.rdb import ZopeDatabaseAdapter, RefactoringTool: No changes to ../python3/src/zope/rdb/gadfly/sqlwhere.py RefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/sqlsem.py parseDSN @@ -88,7 +88,7 @@ try: self._v_connection = GadflyAdapterConnection( self._connection_factory(), self) - except gadfly.error, error: + except gadfly.error as error: raise DatabaseException(str(error)) _gadflyRoot = 'gadfly' --- ../python3/src/zope/rdb/gadfly/sqlsem.py (original) +++ ../python3/src/zope/rdb/gadfly/sqlsem.py (refactored) @@ -20,7 +20,7 @@ try: import kjbuckets except ImportError: - import kjbuckets0 + from . import kjbuckets0 kjbuckets = kjbuckets0 Tuple = kjbuckets.kjDict @@ -78,7 +78,7 @@ rbindings[b] = b self.eqs = eqs = eqs + kjbuckets.kjGraph(rbindings) witness = witness.remap(eqs) - known = kjbuckets.kjSet(witness.keys()) & rbindings + known = kjbuckets.kjSet(list(witness.keys())) & rbindings batts = tuple(known.items()) if not batts: atts = () @@ -184,7 +184,7 @@ tindex0 = {} test = tindex.has_key test0 = tindex0.has_key - for i in xrange(len(subseq)): + for i in range(len(subseq)): subst = subseq[i] #print "substs is", subst its = subst.dump(batts) @@ -217,7 +217,7 @@ #print "hash subseq", relname subseqindex = {} test = subseqindex.has_key - for i in xrange(len(subseq)): + for i in range(len(subseq)): subst = subseq[i] its = subst.dump(batts) #print "items1", subseq, batts, its @@ -250,7 +250,7 @@ #print "hash tuples", relname tindex = {} test = tindex.has_key - for i in xrange(len(tuples)): + for i in range(len(tuples)): t = tuples[i] if rassns: t = (t + rassns).Clean() @@ -301,13 +301,13 @@ ### other special cases here... if name == "list": # list case: map deserialize across desc - return map(deserialize, desc) + return list(map(deserialize, desc)) # all other cases are classes of sqlsem - import sqlsem + from . import sqlsem klass = getattr(sqlsem, name) (args1, args2) = desc args1 = tuple(map(deserialize, args1)) - ob = apply(klass, args1) + ob = klass(*args1) ob.demarshal(args2) return ob @@ -336,8 +336,8 @@ #print #print sys.exc_type, sys.exc_value #print ob.__class__ - raise ValueError, "couldn't serialize %s %s" % ( - tt, ob.__class__) + raise ValueError("couldn't serialize %s %s" % ( + tt, ob.__class__)) # assume base type otherwise return ob @@ -370,7 +370,7 @@ """bindings are name>simpletuple associations.""" self.eqs = Graph() self.assns = Tuple() - for (name, simpletuple) in bindings.items(): + for (name, simpletuple) in list(bindings.items()): self.bind(name, simpletuple) def initargs(self): @@ -378,7 +378,7 @@ def marshaldata(self): #print "btp marshaldata", self - return (self.eqs.items(), self.assns.items(), self.clean, self.closed) + return (list(self.eqs.items()), list(self.assns.items()), self.clean, self.closed) def demarshal(self, args): (eitems, aitems, self.clean, self.closed) = args @@ -390,24 +390,24 @@ result = BoundTuple() e2 = result.eqs a2 = result.assns - for ((a,b), (c,d)) in self.eqs.items(): + for ((a,b), (c,d)) in list(self.eqs.items()): if a is None: try: a = dict[b] except KeyError: - raise NameError, `b`+": ambiguous or unknown attribute" + raise NameError(repr(b)+": ambiguous or unknown attribute") if c is None: try: c = dict[d] except KeyError: - raise NameError, `d`+": ambiguous or unknown attribute" + raise NameError(repr(d)+": ambiguous or unknown attribute") e2[(a,b)] = (c,d) - for ((a,b), v) in self.assns.items(): + for ((a,b), v) in list(self.assns.items()): if a is None: try: a = dict[b] except KeyError: - raise NameError, `b`+": ambiguous or unknown attribute" + raise NameError(repr(b)+": ambiguous or unknown attribute") a2[(a,b)] = v result.closed = self.closed result.clean = self.clean @@ -442,13 +442,13 @@ pinned = kjSet() has_index = kjSet() needed = kjSet(allrels) - akeys = assns.keys() + akeys = list(assns.keys()) for (r,a) in akeys: pinned[r]=r # pinned if some value known known_map = kjGraph(akeys) - for r in known_map.keys(): + for r in list(known_map.keys()): rknown = known_map.neighbors(r) - if db.has_key(r): + if r in db: rel = db[r] index = rel.choose_index(rknown) if index is not None: @@ -456,7 +456,7 @@ if pinned: pinned = pinned & needed if has_index: has_index = has_index & needed related = kjGraph() - for ( (r1, a1), (r2, a2) ) in eqs.items(): + for ( (r1, a1), (r2, a2) ) in list(eqs.items()): related[r1]=r2 # related if equated to other related[r2]=r1 # redundant if closed. if related: related = needed * related * needed @@ -476,11 +476,11 @@ while pinned or related or has_index: order.append(choice) chosen[choice] = 1 - if pinned.has_key(choice): + if choice in pinned: del pinned[choice] - if related.has_key(choice): + if choice in related: del related[choice] - if has_index.has_key(choice): + if choice in has_index: del has_index[choice] nexts = related * chosen if nexts: @@ -493,7 +493,7 @@ # otherwise one that relates to something... choice = related.choose_key() others = kjSet(allrels) - chosen - if others: order = order + others.items() + if others: order = order + list(others.items()) return order def domain(self): @@ -503,9 +503,9 @@ def __repr__(self): from string import join result = [] - for ( (name, att), value) in self.assns.items(): - result.append( "%s.%s=%s" % (name, att, `value`) ) - for ( (name, att), (name2, att2) ) in self.eqs.items(): + for ( (name, att), value) in list(self.assns.items()): + result.append( "%s.%s=%s" % (name, att, repr(value)) ) + for ( (name, att), (name2, att2) ) in list(self.eqs.items()): result.append( "%s.%s=%s.%s" % (name, att, name2, att2) ) if self.clean: if not result: return "TRUE" @@ -518,7 +518,7 @@ """add equalities to self, only if not closed. equalities should be seq of ( (name, att), (name, att) ) """ - if self.closed: raise ValueError, "cannot add equalities! Closed!" + if self.closed: raise ValueError("cannot add equalities! Closed!") e = self.eqs for (a, b) in equalities: e[a] = b @@ -533,7 +533,7 @@ self.eqs = neweqs = (neweqs + ~neweqs).tclosure() # sym, trans closure self.closed = 1 # add trivial equalities to self - for x in self.assns.keys(): + for x in list(self.assns.keys()): if not neweqs.member(x,x): neweqs[x] = x newassns = self.assns.remap(neweqs) @@ -628,7 +628,7 @@ return NontrivialEqPred(self, other) def attribute(self): - return (None, `self`) + return (None, repr(self)) def le(self, other): """predicate self<=other""" @@ -680,7 +680,7 @@ from types import IntType tt = type result = self.thing.value(contexts) - for i in xrange(len(contexts)): + for i in range(len(contexts)): if tt(contexts[i]) is not IntType: result[i] = -result[i] return result @@ -701,7 +701,7 @@ def __init__(self, expr, distinct=0): self.distinct = distinct if expr.contains_aggregate: - raise ValueError, `expr`+": aggregate in aggregate "+self.name + raise ValueError(repr(expr)+": aggregate in aggregate "+self.name) self.thing = expr name = "Average" @@ -718,16 +718,16 @@ def value(self, contexts): if not contexts: return [] # ??? test = contexts[0] - if not test.has_key(None): + if None not in test: return [self.all_value(contexts)] else: return self.agg_value(contexts) def dvalues(self, values): d = {} - for i in xrange(len(values)): + for i in range(len(values)): d[values[i]] = 1 - return d.keys() + return list(d.keys()) def all_value(self, contexts): thing = self.thing @@ -740,16 +740,16 @@ D = {} from types import IntType tt = type - for i in xrange(len(contexts)): + for i in range(len(contexts)): if tt(contexts[i]) is not IntType: D[i] = values[i] - return D.values() + return list(D.values()) def agg_value(self, contexts): from types import IntType tt = type result = list(contexts) - for i in xrange(len(contexts)): + for i in range(len(contexts)): context = contexts[i] if tt(context) is not IntType: result[i] = self.all_value( context[None] ) @@ -774,7 +774,7 @@ name = "Median" def op(self, values): if not values: - raise ValueError, "Median of empty set" + raise ValueError("Median of empty set") values = list(values) values.sort() lvals = len(values) @@ -826,10 +826,10 @@ attribute None > list of subtuple""" lexprs = len(exprlist) if lexprs<1: - raise ValueError, "aggregate on no expressions?" + raise ValueError("aggregate on no expressions?") lassns = len(assignments) pairs = list(exprlist) - for i in xrange(lexprs): + for i in range(lexprs): expr = exprlist[i] attributes = [expr.attribute()]*lassns values = expr.value(assignments) @@ -837,26 +837,26 @@ #for x in pairs: #print "pairs", x if lexprs>1: - newassnpairs = apply(map, (None,)+tuple(pairs)) + newassnpairs = list(map(*(None,)+tuple(pairs))) else: newassnpairs = pairs[0] #for x in newassnpairs: #print "newassnpairs", x - xassns = range(lassns) + xassns = list(range(lassns)) dict = {} test = dict.has_key - for i in xrange(lassns): + for i in range(lassns): thesepairs = newassnpairs[i] thissubassn = assignments[i] if test(thesepairs): dict[thesepairs].append(thissubassn) else: dict[thesepairs] = [thissubassn] - items = dict.items() + items = list(dict.items()) result = list(items) kjDict = kjbuckets.kjDict if lexprs>1: - for i in xrange(len(items)): + for i in range(len(items)): (pairs, subassns) = items[i] #print "pairs", pairs #print "subassns", subassns @@ -864,7 +864,7 @@ D[None] = subassns result[i] = D else: - for i in xrange(len(items)): + for i in range(len(items)): (pair, subassns) = items[i] #print "pair", pair #print "subassns", subassns @@ -886,18 +886,18 @@ result = self.thing.value(contexts) allwrap = None allnowrap = None - for i in xrange(len(contexts)): + for i in range(len(contexts)): if tt(contexts[i]) is not IntType: resulti = result[i] # currently assume only value needing wrapping is string if tt(resulti) is StringType: if allnowrap is not None: - raise ValueError, "(%s, %s) cannot order desc" % (allnowrap, resulti) + raise ValueError("(%s, %s) cannot order desc" % (allnowrap, resulti)) allwrap = resulti result[i] = descOb(resulti) else: if allwrap is not None: - raise ValueError, "(%s, %s) cannot order desc" % (allwrap, resulti) + raise ValueError("(%s, %s) cannot order desc" % (allwrap, resulti)) allnowrap = resulti result[i] = -resulti return result @@ -926,7 +926,7 @@ tt = type name = self.name result = list(simpletuples) - for i in xrange(len(result)): + for i in range(len(result)): ri = result[i] if tt(ri) is not IntType: result[i] = ri[name] @@ -946,7 +946,7 @@ def relbind(self, dict, db): from types import IntType if type(self.thing)!=IntType: - raise ValueError, `self.thing`+": not a numbered column" + raise ValueError(repr(self.thing)+": not a numbered column") return self def orderbind(self, order): return SimpleColumn( order[self.thing-1][0] ) @@ -959,7 +959,7 @@ if exp.attribute()==expratt: return SimpleColumn(att) else: - raise NameError, `self`+": invalid ordering specification" + raise NameError(repr(self)+": invalid ordering specification") def __repr__(self): return "" % (self.thing,) @@ -1002,13 +1002,13 @@ def relbind_sequence(order_list, dict, db): result = list(order_list) - for i in xrange(len(order_list)): + for i in range(len(order_list)): result[i] = result[i].relbind(dict,db) return result def orderbind_sequence(order_list, order): result = list(order_list) - for i in xrange(len(order_list)): + for i in range(len(order_list)): result[i] = result[i].orderbind(order) return result @@ -1016,21 +1016,21 @@ lorder_list = len(order_list) ltuples = len(tuples) if lorder_list<1: - raise ValueError, "order on empty list?" + raise ValueError("order on empty list?") order_map = list(order_list) - for i in xrange(lorder_list): + for i in range(lorder_list): order_map[i] = order_list[i].value(tuples) if len(order_map)>1: - order_vector = apply(map, (None,)+tuple(order_map) ) + order_vector = list(map(*(None,)+tuple(order_map))) else: order_vector = order_map[0] #G = kjbuckets.kjGraph() - pairs = map(None, range(ltuples), tuples) + pairs = map(None, list(range(ltuples)), tuples) ppairs = map(None, order_vector, pairs) G = kjbuckets.kjGraph(ppairs) #for i in xrange(ltuples): # G[ order_vector[i] ] = (i, tuples[i]) - Gkeys = G.keys() + Gkeys = list(G.keys()) Gkeys.sort() result = list(tuples) index = 0 @@ -1041,8 +1041,7 @@ result[index]=y index = index+1 if index!=ltuples: - raise ValueError, \ - "TUPLE LOST IN ORDERING COMPUTATION! (%s,%s)" % (ltuples, index) + raise ValueError("TUPLE LOST IN ORDERING COMPUTATION! (%s,%s)" % (ltuples, index)) return result class BoundAddition(BoundExpression): @@ -1053,7 +1052,7 @@ tt = type lvs = self.left.value(contexts) rvs = self.right.value(contexts) - for i in xrange(len(contexts)): + for i in range(len(contexts)): if tt(contexts[i]) is not IntType: lvs[i] = lvs[i] + rvs[i] return lvs @@ -1066,7 +1065,7 @@ tt = type lvs = self.left.value(contexts) rvs = self.right.value(contexts) - for i in xrange(len(contexts)): + for i in range(len(contexts)): if tt(contexts[i]) is not IntType: lvs[i] = lvs[i] - rvs[i] return lvs @@ -1080,7 +1079,7 @@ lvs = self.left.value(contexts) rvs = self.right.value(contexts) #print lvs - for i in xrange(len(contexts)): + for i in range(len(contexts)): if tt(contexts[i]) is not IntType: lvs[i] = lvs[i] * rvs[i] return lvs @@ -1093,7 +1092,7 @@ tt = type lvs = self.left.value(contexts) rvs = self.right.value(contexts) - for i in xrange(len(contexts)): + for i in range(len(contexts)): if tt(contexts[i]) is not IntType: lvs[i] = lvs[i] / rvs[i] return lvs @@ -1117,7 +1116,7 @@ try: rel = dict[name] except KeyError: - raise NameError, `name` + ": unknown or ambiguous" + raise NameError(repr(name) + ": unknown or ambiguous") return BoundAttribute(rel, name) def uncache(self): @@ -1140,7 +1139,7 @@ tt = type result = list(contexts) ra = (self.rel, self.name) - for i in xrange(len(result)): + for i in range(len(result)): if tt(result[i]) is not IntType: result[i] = contexts[i][ra] return result @@ -1217,10 +1216,10 @@ def attribute(self): """invent a pair to identify a constant""" - return ('unbound', `self`) + return ('unbound', repr(self)) def __repr__(self): - return "" % (`self.value0`, id(self)) + return "" % (repr(self.value0), id(self)) class TupleCollector: """Translate a sequence of assignments to simple tuples. @@ -1239,14 +1238,14 @@ return () def marshaldata(self): - exps = map(serialize, self.exporder) + exps = list(map(serialize, self.exporder)) return (self.attorder, exps, self.contains_aggregate, self.contains_nonaggregate) def demarshal(self, args): (self.attorder, exps, self.contains_aggregate, self.contains_nonaggregate) = args - exporder = self.exporder = map(deserialize, exps) + exporder = self.exporder = list(map(deserialize, exps)) self.order = map(None, self.attorder, exporder) def uncache(self): @@ -1256,7 +1255,7 @@ def domain(self): all=[] for e in self.exporder: - all = all+e.domain().items() + all = all+list(e.domain().items()) return kjbuckets.kjSet(all) def __repr__(self): @@ -1285,12 +1284,12 @@ for exp in self.exporder: values.append(exp.value(assnlist)) if len(values)>1: - valtups = apply(map, (None,) + tuple(values) ) + valtups = list(map(*(None,) + tuple(values))) else: valtups = values[0] kjUndump = kjbuckets.kjUndump undumper = tuple(self.attorder) - for i in xrange(len(valtups)): + for i in range(len(valtups)): test = assnlist[i] if tt(test) is IntType or test is None: valtups[i] = 0 # null/false @@ -1307,7 +1306,7 @@ attorder = self.attorder exporder = self.exporder known = {} - for i in xrange(len(order)): + for i in range(len(order)): (att, exp) = order[i] #print exp exp = exp.relbind(dict, db) @@ -1315,19 +1314,19 @@ # choose a name for this column #print exp (rname, aname) = exp.attribute() - if known.has_key(aname): + if aname in known: both = rname+"."+aname att = both count = 0 - while known.has_key(att): + while att in known: # crank away! count = count+1 - att = both+"."+`count` + att = both+"."+repr(count) else: att = aname else: - if known.has_key(att): - raise NameError, `att`+" ambiguous in select list" + if att in known: + raise NameError(repr(att)+" ambiguous in select list") order[i] = (att, exp) exporder[i] = exp attorder[i] = att @@ -1424,11 +1423,11 @@ assns = c.assns eqs = c.eqs eqsinteresting = 0 - for (a,b) in eqs.items(): + for (a,b) in list(eqs.items()): if a!=b: eqsinteresting = 1 result = assignments[:] - for i in xrange(lbt): + for i in range(lbt): this = assignments[i] #print "comparing", self, "to", this if type(this) is IntType: continue @@ -1501,7 +1500,7 @@ members.remove(m) members = members + m.members #print "before", members - members = self.members = kjbuckets.kjSet(members).items() + members = self.members = list(kjbuckets.kjSet(members).items()) #print members for m in members[:]: if m.false: members.remove(m) @@ -1535,15 +1534,15 @@ m.uncache() def domain(self): - all = BTPredicate.domain(self).items() + all = list(BTPredicate.domain(self).items()) for x in self.members: - all = all + x.domain().items() + all = all + list(x.domain().items()) return kjbuckets.kjSet(all) def __repr__(self): c = self.constraints m = self.members - mr = map(repr, m) + mr = list(map(repr, m)) from string import join mr.sort() mr = join(mr, " | ") @@ -1557,7 +1556,7 @@ return None if completely true, or simpler form or self, if no simplification is possible.""" ms = self.members - for i in xrange(len(ms)): + for i in range(len(ms)): ms[i] = ms[i].detrivialize() # now suck out subordinate ors someor = None @@ -1576,9 +1575,9 @@ if m is None: allfalse=0; break # true member allfalse = allfalse & m.false if allfalse: return ~BTPredicate() # boundary case - ms[:] = filter(None, ms) + ms[:] = [_f for _f in ms if _f] if not ms: return None # all true. - ms[:] = kjbuckets.kjSet(ms).items() + ms[:] = list(kjbuckets.kjSet(ms).items()) if len(ms)==1: return ms[0] # or of 1 return self @@ -1594,7 +1593,7 @@ alt1 = members[0](current) # determine questionables questionables = current[:] - rng = xrange(len(current)) + rng = range(len(current)) from types import IntType tt = type for i in rng: @@ -1631,7 +1630,7 @@ def __and__(self, other): """push "and" down""" newmembers = self.members[:] - for i in xrange(len(newmembers)): + for i in range(len(newmembers)): newmembers[i] = newmembers[i] & other return BTor_pred(newmembers) @@ -1700,7 +1699,7 @@ if thing.__class__ == BTor_pred: # translate to and_not members = thing.members[:] - for i in xrange(len(members)): + for i in range(len(members)): members[i] = ~members[i] result = BTand_pred(members) return result.detrivialize() @@ -1710,7 +1709,7 @@ c = thing.constraints # precondition if c is not None: members.append(BTPredicate(c)) - for i in xrange(len(members)): + for i in range(len(members)): members[i] = ~members[i] result = BTor_pred(members) return result.detrivialize() @@ -1724,7 +1723,7 @@ tt = type current = BTPredicate.__call__(self, boundtuples, toplevel) omit = self.negated(current) - for i in xrange(len(current)): + for i in range(len(current)): if tt(omit[i]) is not IntType: current[i]=0 return current @@ -1760,7 +1759,7 @@ def __init__(self, members, precondition=None, *othermembers): #print "BTand_pred", (members, precondition) members = list(members) + list(othermembers) - members = self.members = kjbuckets.kjSet(members).items() + members = self.members = list(kjbuckets.kjSet(members).items()) self.constraints = precondition # common constraints if members: # common constraints are those in any member @@ -1768,7 +1767,7 @@ constraints = precondition else: constraints = BoundTuple() - for i in xrange(len(members)): + for i in range(len(members)): m = members[i] mc = m.constraints if mc: @@ -1777,7 +1776,7 @@ if constraints is None: break if m.__class__==BTPredicate: members[i] = None # subsumed above - members = self.members = filter(None, members) + members = self.members = [_f for _f in members if _f] for m in members: if m.contains_aggregate: self.contains_aggregate=1 @@ -1803,15 +1802,15 @@ m.uncache() def domain(self): - all = BTPredicate.domain(self).items() + all = list(BTPredicate.domain(self).items()) for x in self.members: - all = all + x.domain().items() + all = all + list(x.domain().items()) return kjbuckets.kjSet(all) def __repr__(self): m = self.members c = self.constraints - r = map(repr, m) + r = list(map(repr, m)) if self.false: r.insert(0, "FALSE") from string import join r = join(r, " AND ") @@ -1847,16 +1846,16 @@ #print "or detected, returning" #print result return result - for i in xrange(len(ms)): + for i in range(len(ms)): ms[i] = ms[i].detrivialize() - ms[:] = filter(None, ms) + ms[:] = [_f for _f in ms if _f] if not ms: #print "returning boundary case of condition" if c is None: return None else: return BTPredicate(c).detrivialize() - ms[:] = kjbuckets.kjSet(ms).items() + ms[:] = list(kjbuckets.kjSet(ms).items()) if len(ms)==1 and c is None: #print "and of 1, returning" #print ms[0] @@ -1968,7 +1967,7 @@ lv = self.left.value(assigns) rv = self.right.value(assigns) result = assigns[:] - for i in xrange(len(assigns)): + for i in range(len(assigns)): t = assigns[i] if type(t) is not IntType and lv[i]!=rv[i]: result[i] = 0 @@ -2034,7 +2033,7 @@ upv = self.upper.value(assigns) midv = self.middle.value(assigns) result = assigns[:] - for i in xrange(len(assigns)): + for i in range(len(assigns)): t = assigns[i] if tt(t) is not IntType: midvi = midv[i] @@ -2091,7 +2090,7 @@ else: return [0] * len(result) kjDict = kjbuckets.kjDict - for i in xrange(len(assigns)): + for i in range(len(assigns)): #print "exists uncached" assignsi = assigns[i] if tt(assignsi) is IntType: continue @@ -2143,9 +2142,8 @@ # test that subquery is single column and determine att sl = subq.select_list atts = sl.attorder - if len(atts)<>1: - raise ValueError, \ - "Quantified predicate requires unit select list: %s" % atts + if len(atts)!=1: + raise ValueError("Quantified predicate requires unit select list: %s" % atts) self.att = atts[0] return self @@ -2172,7 +2170,7 @@ tt = type from types import IntType result = assigns[:] - for i in xrange(len(assigns)): + for i in range(len(assigns)): assignsi = assigns[i] if tt(assignsi) is IntType: continue thisval = exprvals[i] @@ -2221,7 +2219,7 @@ for l in self.lits: d0 = l.domain() if d0: - d = d + d0.items() + d = d + list(d0.items()) d0 = self.expr.domain() if d: kjSet = kjbuckets.kjSet @@ -2264,7 +2262,7 @@ expr = self.expr exprvals = expr.value(assigns) result = assigns[:] - for i in xrange(len(assigns)): + for i in range(len(assigns)): assignsi = assigns[i] if tt(assignsi) is IntType: continue thisval = exprvals[i] @@ -2357,7 +2355,7 @@ def dump_single_column(assigns, att): """dump single column assignment""" result = assigns[:] - for i in xrange(len(result)): + for i in range(len(result)): result[i] = result[i][att] return result @@ -2369,7 +2367,7 @@ lv = self.left.value(assigns) rv = self.right.value(assigns) result = assigns[:] - for i in xrange(len(assigns)): + for i in range(len(assigns)): t = assigns[i] if tt(t) is not IntType and lv[i]>=rv[i]: result[i] = 0 @@ -2390,7 +2388,7 @@ lv = self.left.value(assigns) rv = self.right.value(assigns) result = assigns[:] - for i in xrange(len(assigns)): + for i in range(len(assigns)): t = assigns[i] if tt(t) is not IntType and lv[i]>rv[i]: result[i] = 0 @@ -2423,9 +2421,8 @@ # test that subquery is single column and determine att sl = subq.select_list atts = sl.attorder - if len(atts)<>1: - raise ValueError, \ - "Quantified predicate requires unit select list: %s" % atts + if len(atts)!=1: + raise ValueError("Quantified predicate requires unit select list: %s" % atts) self.att = atts[0] return self @@ -2442,9 +2439,8 @@ self.cached = 1 seval = subq.eval().rows() lse = len(seval) - if lse<>1: - raise ValueError, \ - "const subquery expression must return 1 result: got %s" % lse + if lse!=1: + raise ValueError("const subquery expression must return 1 result: got %s" % lse) self.cached_value = cached_value = seval[0][att] #print "const subq cached", cached_value return [cached_value] * len(contexts) @@ -2452,7 +2448,7 @@ tt = type result = contexts[:] kjDict = kjbuckets.kjDict - for i in xrange(len(contexts)): + for i in range(len(contexts)): contextsi = contexts[i] if tt(contextsi) is not IntType: testbtup = BoundTuple() @@ -2460,9 +2456,8 @@ #print "subq exp", testbtup seval = subq.eval(outerboundtuple=testbtup).rows() lse = len(seval) - if lse<>1: - raise ValueError, \ - "dynamic subquery expression must return 1 result: got %s" % lse + if lse!=1: + raise ValueError("dynamic subquery expression must return 1 result: got %s" % lse) result[i] = seval[0][att] #print "nonconst subq uncached", result[i], contextsi return result @@ -2484,29 +2479,29 @@ from types import ListType, TupleType if not dynamic: if ndynamic>0: - raise ValueError, `ndynamic`+" dynamic parameters unbound" + raise ValueError(repr(ndynamic)+" dynamic parameters unbound") return [kjbuckets.kjDict()] ldyn = len(dynamic) - undumper = map(None, [0]*ndynamic, range(ndynamic)) + undumper = map(None, [0]*ndynamic, list(range(ndynamic))) undumper = tuple(undumper) tdyn = type(dynamic) if tdyn is TupleType: ldyn = len(dynamic) if len(dynamic)!=ndynamic: - raise ValueError, "%s,%s: wrong number of dynamics" % (ldyn,ndynamic) + raise ValueError("%s,%s: wrong number of dynamics" % (ldyn,ndynamic)) dynamic = [dynamic] elif tdyn is not ListType: - raise TypeError, "dynamic parameters must be list or tuple" + raise TypeError("dynamic parameters must be list or tuple") else: - lens = map(len, dynamic) + lens = list(map(len, dynamic)) ndynamic = max(lens) if ndynamic!=min(lens): - raise ValueError, "dynamic parameters of inconsistent lengths" - undumper = map(None, [0]*ndynamic, range(ndynamic)) + raise ValueError("dynamic parameters of inconsistent lengths") + undumper = map(None, [0]*ndynamic, list(range(ndynamic))) undumper = tuple(undumper) result = list(dynamic) kjUndump = kjbuckets.kjUndump - for i in xrange(len(dynamic)): + for i in range(len(dynamic)): dyn = dynamic[i] ldyn = len(dyn) #print undumper, dyn @@ -2550,7 +2545,7 @@ #raise ValueError, "aggregates/nonaggregates don't mix without grouping" self.all_aggregate = 1 if where_pred and where_pred.contains_aggregate: - raise ValueError, "aggregate in WHERE" + raise ValueError("aggregate in WHERE") self.query_plan = None def initargs(self): @@ -2571,10 +2566,10 @@ def marshaldata(self): order_by = self.order_by if order_by: - order_by = map(serialize, order_by) + order_by = list(map(serialize, order_by)) group_list = self.group_list if group_list: - group_list = map(serialize, group_list) + group_list = list(map(serialize, group_list)) #print "marshaldata" #print order_by #print group_list @@ -2583,9 +2578,9 @@ def demarshal(self, data): (order_by, group_list) = data if order_by: - order_by = map(deserialize, order_by) + order_by = list(map(deserialize, order_by)) if group_list: - group_list = map(deserialize, group_list) + group_list = list(map(deserialize, group_list)) #print "demarshal" #print order_by #print group_list @@ -2595,7 +2590,7 @@ def unbound(self): result = self.unbound_set if result is None: - raise ValueError, "binding not available" + raise ValueError("binding not available") return result def uncache(self): @@ -2626,16 +2621,16 @@ (attbindings, relbindings, ambiguous, ambiguousatts) = test if outerbindings: # bind in outerbindings where unambiguous - for (a,r) in outerbindings.items(): - if ((not attbindings.has_key(a)) - and (not ambiguousatts.has_key(a)) ): + for (a,r) in list(outerbindings.items()): + if ((a not in attbindings) + and (a not in ambiguousatts) ): attbindings[a] = r # fix "*" select list if sl=="*": sl = TupleCollector() - for (a,r) in attbindings.items(): + for (a,r) in list(attbindings.items()): sl.addbinding(None, BoundAttribute(r,a)) - for (dotted, (r,a)) in ambiguous.items(): + for (dotted, (r,a)) in list(ambiguous.items()): sl.addbinding(dotted, BoundAttribute(r,a)) sl = sl.relbind(attbindings, db) wp = wp.relbind(attbindings, db) @@ -2674,13 +2669,13 @@ eqs = kjbuckets.kjGraph(bt.eqs) witness = kjbuckets.kjDict() # set all known and unbound atts as witnessed - for att in bt.assns.keys(): + for att in list(bt.assns.keys()): witness[att] = 1 #print self, "self.unbound_set", self.unbound_set - for att in self.unbound_set.items(): + for att in list(self.unbound_set.items()): witness[att] = 1 relbindings = self.relbindings - allrels = relbindings.keys() + allrels = list(relbindings.keys()) #print relbindings allrels = bt.relorder(relbindings, allrels) #print allrels @@ -2707,19 +2702,19 @@ gl = self.group_list hc = self.having_cond us = self.union_select - all = sl.domain().items() + all = list(sl.domain().items()) if wp is not None: - all = all + wp.domain().items() + all = all + list(wp.domain().items()) # ignore group_list ??? if hc is not None: - all = all + hc.domain().items() + all = all + list(hc.domain().items()) kjSet = kjbuckets.kjSet kjGraph = kjbuckets.kjGraph alldomain = kjSet(all) rel_atts = self.rel_atts = kjGraph(all) allnames = kjSet() #print "relbindings", relbindings.keys() - for name in relbindings.keys(): + for name in list(relbindings.keys()): rel = relbindings[name] for att in rel.attributes(): allnames[ (name, att) ] = 1 @@ -2730,12 +2725,12 @@ thoseatts = us.attributes() if myatts!=thoseatts: if len(myatts)!=len(thoseatts): - raise IndexError, "outer %s, inner %s: union select lists lengths differ"\ - % (len(myatts), len(thoseatts)) + raise IndexError("outer %s, inner %s: union select lists lengths differ"\ + % (len(myatts), len(thoseatts))) for p in map(None, myatts, thoseatts): (x,y)=p if x!=y: - raise NameError, "%s union names don't match" % (p,) + raise NameError("%s union names don't match" % (p,)) self.unbound_set = alldomain - allnames def attributes(self): @@ -2747,7 +2742,7 @@ exclusive. dynamic is only pertinent to top levels, outerboundtuple to subqueries""" #print "select eval", dynamic, outerboundtuple - from gfdb0 import Relation0 + from .gfdb0 import Relation0 # only uncache if outerboundtuple is None (not subquery) # ??? if outerboundtuple is None: @@ -2771,7 +2766,7 @@ elif ndynamic: dyn = dynamic_binding(ndynamic, dynamic) if len(dyn)!=1: - raise ValueError, "only one dynamic subst for selection allowed" + raise ValueError("only one dynamic subst for selection allowed") dyn = dyn[0] assn1 = assn1 + dyn #print "dynamic", bt @@ -2781,9 +2776,9 @@ #print "unbound", unbound_set #print unbound_set #print self.rel_atts - for pair in unbound_set.items(): - if not assn1.has_key(pair): - raise KeyError, `pair`+": unbound in selection" + for pair in list(unbound_set.items()): + if pair not in assn1: + raise KeyError(repr(pair)+": unbound in selection") assn1 = (unbound_set * assn1) + assn0 #print "assn1 now", assn1 substseq = [assn1] @@ -2823,7 +2818,7 @@ tups = union_select.eval(tups, dynamic, outerboundtuple) # apply DISTINCT if appropriate if self.alldistinct=="DISTINCT": - tups = kjbuckets.kjSet(tups).items() + tups = list(kjbuckets.kjSet(tups).items()) # apply ordering if pRefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/sqlmod.py resent ob = self.order_by if ob: @@ -2876,7 +2871,7 @@ rows = r.rows() allrows = rows + assns if self.alldistinct=="DISTINCT": - allrows = kjbuckets.kjSet(allrows).items() + allrows = list(kjbuckets.kjSet(allrows).items()) return allrows def __repr__(self): @@ -2887,7 +2882,7 @@ r = self.selection.eval(dyn, outer) rows = r.rows() kjSet = kjbuckets.kjSet - allrows = (kjSet(assns) & kjSet(rows)).items() + allrows = list((kjSet(assns) & kjSet(rows)).items()) return allrows op = "INTERSECT" def __repr__(self): @@ -2898,7 +2893,7 @@ r = self.selection.eval(dyn, outer) rows = r.rows() kjSet = kjbuckets.kjSet - allrows = (kjSet(assns) - kjSet(rows)).items() + allrows = list((kjSet(assns) - kjSet(rows)).items()) return allrows op = "EXCEPT" @@ -2920,7 +2915,7 @@ def ndynamic(self): return self.parameter_index # update/delete/insert statements -import sqlmod +from . import sqlmod CreateTable = sqlmod.CreateTable CreateIndex = sqlmod.CreateIndex DropIndex = sqlmod.DropIndex @@ -2935,7 +2930,7 @@ DropView = sqlmod.DropView # update storage structures from gfdb0 -import gfdb0 +from . import gfdb0 Add_Tuples = gfdb0.Add_Tuples Erase_Tuples = gfdb0.Erase_Tuples Reset_Tuples = gfdb0.Reset_Tuples --- ../python3/src/zope/rdb/gadfly/sqlmod.py (original) +++ ../python3/src/zope/rdb/gadfly/sqlmod.py (refactored) @@ -1,6 +1,6 @@ """Database modification statement semantics""" -import sqlsem +from . import sqlsem # ordering of ddef storage is important so, eg, index defs # follow table defs. @@ -55,23 +55,23 @@ return (self.name, []) def marshaldata(self): - from sqlsem import serialize - return map(serialize, self.colelts) + from .sqlsem import serialize + return list(map(serialize, self.colelts)) def demarshal(self, args): - from sqlsem import deserialize - self.colelts = map(deserialize, args) + from .sqlsem import deserialize + self.colelts = list(map(deserialize, args)) def __repr__(self): from string import join elts = list(self.colelts) - elts = map(repr, elts) + elts = list(map(repr, elts)) return CTFMT % (self.name, join(elts, ",\n ")) def relbind(self, db): """check that table doesn't already exist""" if db.has_relation(self.name): - raise NameError, "cannot create %s, exists" % (self.name,) + raise NameError("cannot create %s, exists" % (self.name,)) self.indb = db return self @@ -80,16 +80,16 @@ # datatypes currently happily ignored :) db = self.indb if db is None: - raise ValueError, "unbound or executed" + raise ValueError("unbound or executed") self.indb = None name = self.name if db.has_relation(self.name): - raise NameError, "relation %s exists, cannot create" % (self.name,) + raise NameError("relation %s exists, cannot create" % (self.name,)) db.touched = 1 attnames = [] for x in self.colelts: attnames.append(x.colid) - from gfdb0 import Relation0 + from .gfdb0 import Relation0 r = Relation0(attnames) # must store if new (unset for reloads) r.touched = 1 @@ -123,7 +123,7 @@ self.indb = db name = self.name if db.has_datadef(name): - raise NameError, "(view) datadef %s exists" % name + raise NameError("(view) datadef %s exists" % name) # don't bind the selection yet return self @@ -132,12 +132,12 @@ db = self.indb name = self.name if db is None: - raise ValueError, "create view %s unbound or executed" % name + raise ValueError("create view %s unbound or executed" % name) self.indb = None if db.has_relation(name): - raise ValueError, "create view %s, name exists" % name + raise ValueError("create view %s, name exists" % name) db.touched = 1 - from gfdb0 import View + from .gfdb0 import View v = View(self.name, self.namelist, self.selection, db) db[name] = v db.add_datadef(name, self) @@ -187,22 +187,22 @@ name = self.name self.indb = db if db.has_datadef(name): - raise NameError, `name`+": data def exists" + raise NameError(repr(name)+": data def exists") try: self.target = db.get_for_update(self.tablename) #db[self.tablename] except: - raise NameError, `self.tablename`+": no such relation" - return self - - def eval(self, dyn=None): - from gfdb0 import Index + raise NameError(repr(self.tablename)+": no such relation") + return self + + def eval(self, dyn=None): + from .gfdb0 import Index db = self.indb if db is None: - raise ValueError, "create index unbound or executed" + raise ValueError("create index unbound or executed") self.indb = None rel = self.target if rel is None: - raise ValueError, "create index not bound to relation" + raise ValueError("create index not bound to relation") db.touched = 1 self.the_index = the_index = Index(self.name, self.atts, unique=self.unique) rel.add_index(the_index) @@ -227,14 +227,14 @@ def relbind(self, db): self.indb = db if not db.has_datadef(self.name): - raise NameError, `self.name`+": no such index" + raise NameError(repr(self.name)+": no such index") return self def eval(self, dyn=None): db = self.indb self.indb=None if db is None: - raise ValueError, "drop index executed or unbound" + raise ValueError("drop index executed or unbound") db.touched = 1 indexname = self.name createindex = db.datadefs[indexname] @@ -260,16 +260,16 @@ self.indb = db name = self.name if not db.has_relation(name): - raise NameError, `self.name` + ": cannot delete, no such table/view" + raise NameError(repr(self.name) + ": cannot delete, no such table/view") self.check_kind(name, db) return self def check_kind(self, name, db): if db[name].is_view: - raise ValueError, "%s is VIEW, can't DROP TABLE" % name + raise ValueError("%s is VIEW, can't DROP TABLE" % name) def eval(self, dyn): db = self.indb if db is None: - raise ValueError, "unbound or executed" + raise ValueError("unbound or executed") db.touched = 1 self.indb = None self.relbind(db) @@ -288,7 +288,7 @@ return "DROP VIEW %s" % self.name def check_kind(self, name, db): if not db[name].is_view: - raise ValueError, "%s is TABLE, can't DROP VIEW" % name + raise ValueError("%s is TABLE, can't DROP VIEW" % name) COLDEFFMT = "%s %s %s %s" @@ -316,10 +316,10 @@ """factored out shared op between Update and Delete.""" if dyn: #print "dyn", dyn - from sqlsem import dynamic_binding + from .sqlsem import dynamic_binding dynbind = dynamic_binding(len(dyn), dyn) if len(dynbind)>1: - raise ValueError, "only one dynamic binding allowed for UPDATE" + raise ValueError("only one dynamic binding allowed for UPDATE") dynbind1 = dynbind = dynbind[0] if eqs is not None: dynbind1 = dynbind.remap(eqs) @@ -341,7 +341,7 @@ # get tuple set, try to use an index index = None if rassns is not None: - known = rassns.keys() + known = list(rassns.keys()) index = target.choose_index(known) if index is None: (tuples, seqnums) = target.rows(1) @@ -350,7 +350,7 @@ (tuples, seqnums) = index.matches(rassns) ltuples = len(tuples) buffer = [0] * ltuples - rtups = range(ltuples) + rtups = list(range(ltuples)) for i in rtups: tup = tuples[i] #print tup @@ -403,7 +403,7 @@ # check that atts of assns are atts of target #print dir(assns) resultatts = assns.attorder - from sqlsem import kjbuckets + from .sqlsem import kjbuckets kjSet = kjbuckets.kjSet kjGraph = kjbuckets.kjGraph resultatts = kjSet(resultatts) @@ -411,10 +411,10 @@ self.preserved = allatts - resultatts huh = resultatts - allatts if huh: - raise NameError, "%s lacks %s attributes" % (name, huh.items()) + raise NameError("%s lacks %s attributes" % (name, list(huh.items()))) # compute projection - assnsatts = kjGraph(assns.domain().items()).neighbors(name) - condatts = kjGraph(cond.domain().items()).neighbors(name) + assnsatts = kjGraph(list(assns.domain().items())).neighbors(name) + condatts = kjGraph(list(cond.domain().items())).neighbors(name) condatts = condatts+assnsatts #print "condatts", condatts translate = kjbuckets.kjDict() @@ -482,7 +482,7 @@ target.reset_tuples(newtups, newseqs) log = indb.log if log is not None and not log.is_scratch: - from sqlsem import Reset_Tuples + from .sqlsem import Reset_Tuples op = Reset_Tuples(self.name) op.set_data(newtups, newseqs, target) log.log(op) @@ -516,8 +516,8 @@ else: self.eqs = cassns = None # compute projection/rename - from sqlsem import kjbuckets - condatts = kjbuckets.kjGraph(cond.domain().items()).neighbors(name) + from .sqlsem import kjbuckets + condatts = kjbuckets.kjGraph(list(cond.domain().items())).neighbors(name) translate = kjbuckets.kjDict() for att in condatts: translate[(name, att)] = att @@ -564,7 +564,7 @@ target.erase_tuples(newseqs) log = indb.log if log is not None and not log.is_scratch: - from sqlsem import Erase_Tuples + from .sqlsem import Erase_Tuples op = Erase_Tuples(self.name) op.set_data(newseqs, target) log.log(op) @@ -595,7 +595,7 @@ # determine target relation target = self.target = db.get_for_update(name) targetatts = target.attributes() - from sqlsem import kjbuckets + from .sqlsem import kjbuckets kjSet = kjbuckets.kjSet targetset = kjSet(targetatts) # check or set colid bindings @@ -606,21 +606,21 @@ ### for now all attributes must be in colset cdiff = colset-targetset if cdiff: - raise NameError, "%s: no such attributes in %s" % (cdiff.items(), name) + raise NameError("%s: no such attributes in %s" % (list(cdiff.items()), name)) cdiff = targetset-colset ### temporary!!! if cdiff: - raise NameError, "%s: not set in insert on %s" % (cdiff.items(), name) + raise NameError("%s: not set in insert on %s" % (list(cdiff.items()), name)) # bind the insertspec insertspec = self.insertspec self.insertspec = insertspec = insertspec.relbind(db) # create a collector for result - from sqlsem import TupleCollector + from .sqlsem import TupleCollector collector = self.collector = TupleCollector() # get ordered list of expressions to eval on bound attributes of insertspec resultexps = insertspec.resultexps() if len(resultexps)!=len(colset): - raise ValueError, "result and colset of differing length %s:%s" % (colset,resultexps) + raise ValueError("result and colset of differing length %s:%s" % (colset,resultexps)) pRefactoringTool: No changes to ../python3/src/zope/rdb/gadfly/sqlgtest.py RefactoringTool: No changes to ../python3/src/zope/rdb/gadfly/sqlgram.py RefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/sqlgen.py RefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/sqlbind.py airs = map(None, colids, resultexps) for (col,exp) in pairs: collector.addbinding(col, exp) @@ -641,7 +641,7 @@ #target.regenerate_indices() log = indb.log if log is not None and not log.is_scratch: - from sqlsem import Add_Tuples + from .sqlsem import Add_Tuples op = Add_Tuples(self.name) op.set_data(resulttups, target) log.log(op) @@ -658,7 +658,7 @@ return (self.list,) def __repr__(self): - return "VALUES " +` tuple(self.list) ` + return "VALUES " +repr( tuple(self.list)) def resultexps(self): return self.list @@ -666,7 +666,7 @@ def relbind(self, db): l = self.list bindings = {} - for i in xrange(len(self.list)): + for i in range(len(self.list)): li = l[i] l[i] = li.relbind(bindings, db) # do nothing with domain, for now @@ -675,11 +675,11 @@ def eval(self, dyn=None): if dyn: - from sqlsem import dynamic_binding + from .sqlsem import dynamic_binding dynbt = dynamic_binding(len(dyn), dyn) else: # dummy value to prevent triviality - from sqlsem import kjbuckets + from .sqlsem import kjbuckets dynbt = [kjbuckets.kjDict(Insert_dummy_arg)] #print "bindings", dynbt.assns return dynbt # ?? @@ -701,7 +701,7 @@ atts = self.subsel.attributes() # bind each as "result.name" exps = [] - from sqlsem import BoundAttribute + from .sqlsem import BoundAttribute for a in atts: exps.append( BoundAttribute("result", a) ) return exps # temp @@ -718,13 +718,13 @@ subsel.uncache() rel = subsel.eval(dyn) tups = rel.rows() - from sqlsem import BoundTuple ### temp - from sqlsem import kjbuckets + from .sqlsem import BoundTuple ### temp + from .sqlsem import kjbuckets kjDict = kjbuckets.kjDict - for i in xrange(len(tups)): + for i in range(len(tups)): tupsi = tups[i] new = kjDict() - for k in tupsi.keys(): + for k in list(tupsi.keys()): new[ ("result", k) ] = tupsi[k] tups[i] = new return tups --- ../python3/src/zope/rdb/gadfly/sqlgen.py (original) +++ ../python3/src/zope/rdb/gadfly/sqlgen.py (refactored) @@ -40,8 +40,8 @@ Grammar.Addterm("numeric_literal", numlitre, numlitfn) def BuildSQL(filename=MARSHALFILE): - import kjParseBuild - from sqlgram import sqlrules, nonterms, keywords, puncts + from . import kjParseBuild + from .sqlgram import sqlrules, nonterms, keywords, puncts SQLG = kjParseBuild.NullCGrammar() SQLG.SetCaseSensitivity(0) DeclareTerminals(SQLG) @@ -51,13 +51,13 @@ SQLG.comments([commentre]) # should add comments SQLG.Declarerules(sqlrules) - print "working..." + print("working...") SQLG.Compile() - print "testing" - from sqlgtest import test + print("testing") + from .sqlgtest import test for x in test: - print SQLG.DoParse1(x) - print "dumping to", filename + print(SQLG.DoParse1(x)) + print("dumping to", filename) outfile = open(filename, "wb") SQLG.MarshalDump(outfile) outfile.close() @@ -65,7 +65,7 @@ def reloadSQLG(filename=MARSHALFILE): """does not bind any interpretation functions.""" - import kjParser + from . import kjParser infile = open(filename, "rb") SQLG = kjParser.UnMarshalGram(infile) infile.close() @@ -73,5 +73,5 @@ return SQLG def getSQL(): - from sqlwhere import filename + from .sqlwhere import filename return reloadSQLG(filename) --- ../python3/src/zope/rdb/gadfly/sqlbind.py (original) +++ ../python3/src/zope/rdb/gadfly/sqlbind.py (refactored) @@ -49,13 +49,13 @@ # drop view statement stuff def dropview(l, c): [drop, view, name] = l - from sqlsem import DropView + from .sqlsem import DropView return DropView(name) # create view statement stuff def createview(l, c): [create, view, name, namelist, as_, selection] = l - from sqlsem import CreateView + from .sqlsem import CreateView return CreateView(name, namelist, selection) optnamelist0 = returnNone @@ -64,18 +64,18 @@ # drop index statement stuff def dropindex(l, c): [drop, index, name] = l - from sqlsem import DropIndex + from .sqlsem import DropIndex return DropIndex(name) # create index statement stuff def createindex(l, c): [create, index, name, on, table, op, namelist, cp] = l - from sqlsem import CreateIndex + from .sqlsem import CreateIndex return CreateIndex(name, table, namelist) def createuniqueindex(l, c): [create, unique, index, name, on, table, op, namelist, cp] = l - from sqlsem import CreateIndex + from .sqlsem import CreateIndex return CreateIndex(name, table, namelist, unique=1) names1 = stat1 @@ -85,7 +85,7 @@ def update(l, c): [upd, name, set, assns, condition] = l - from sqlsem import UpdateOp + from .sqlsem import UpdateOp return UpdateOp(name, assns, condition) def assn(l, c): @@ -94,7 +94,7 @@ def assn1(l, c): [ (col, exp) ] = l - from sqlsem import TupleCollector + from .sqlsem import TupleCollector result = TupleCollector() result.addbinding(col, exp) return result @@ -108,21 +108,21 @@ def deletefrom(l, c): [delete, fromkw, name, where] = l - from sqlsem import DeleteOp + from .sqlsem import DeleteOp return DeleteOp(name, where) # drop table stuff def droptable(l, c): [drop, table, name] = l - from sqlsem import DropTable + from .sqlsem import DropTable return DropTable(name) # create table statement stuff def createtable(list, context): [create, table, name, p1, colelts, p2] = list - from sqlsem import CreateTable + from .sqlsem import CreateTable return CreateTable(name, colelts) colelts1 = stat1 @@ -137,7 +137,7 @@ def coldef(l, c): [colid, datatype, default, constraints] = l - from sqlsem import ColumnDef + from .sqlsem import ColumnDef return ColumnDef(colid, datatype, default, constraints) optdef0 = returnNone @@ -149,7 +149,7 @@ def insert1(l, c): [insert, into, name, optcolids, insert_spec] = l - from sqlsem import InsertOp + from .sqlsem import InsertOp return InsertOp(name, optcolids, insert_spec) optcolids0 = returnNone @@ -158,11 +158,11 @@ colidsn = listcommathing def insert_values(l, c): - from sqlsem import InsertValues + from .sqlsem import InsertValues return InsertValues(l[2]) def insert_query(l, c): - from sqlsem import InsertSubSelect + from .sqlsem import InsertSubSelect return InsertSubSelect(l[0]) litlist1 = stat1 @@ -200,7 +200,7 @@ def subselect(list, context): [select, alldistinct, selectlist, fromkw, trlist, optwhere, optgroup, opthaving, optunion] = list - from sqlsem import Selector + from .sqlsem import Selector sel = Selector( alldistinct, selectlist, @@ -223,7 +223,7 @@ return "DISTINCT" def where0(list, context): - from sqlsem import BTPredicate + from .sqlsem import BTPredicate return BTPredicate() # true where1 = elt1 @@ -244,19 +244,19 @@ def union1(l, c): [union, alldistinct, selection] = l - from sqlsem import Union + from .sqlsem import Union return Union(alldistinct, selection) def except1(l, c): [union, selection] = l alldistinct = "DISTINCT" - from sqlsem import Except + from .sqlsem import Except return Except(alldistinct, selection) def intersect1(l, c): [union, selection] = l alldistinct = "DISTINCT" - from sqlsem import Intersect + from .sqlsem import Intersect return Intersect(alldistinct, selection) order0 = returnNone @@ -266,15 +266,15 @@ sortspecn = listcommathing def sortint(l, c): - from sqlsem import PositionedSort + from .sqlsem import PositionedSort [num, ord] = l from types import IntType if type(num)!=IntType or num<=0: - raise ValueError, `num`+': col position not positive int' + raise ValueError(repr(num)+': col position not positive int') return PositionedSort(num, ord) def sortcol(l, c): - from sqlsem import NamedSort + from .sqlsem import NamedSort [name, ord] = l return NamedSort(name, ord) @@ -323,11 +323,11 @@ def columnname2(list, context): [table, ignore, col] = list - from sqlsem import BoundAttribute + from .sqlsem import BoundAttribute return BoundAttribute(table, col) def dynamic(list, context): - from sqlsem import BoundAttribute + from .sqlsem import BoundAttribute # return a new dynamic parameter int = context.param() return BoundAttribute(0, int) @@ -335,13 +335,13 @@ # expression stuff def literal(list, context): [lit] = list - from sqlsem import Constant + from .sqlsem import Constant return Constant(lit) def stringstring(l, c): """two strings in sequence = apostrophe""" [l1, l2] = l - from sqlsem import Constant + from .sqlsem import Constant value = "%s'%s" % (l1.value0, l2) return Constant(value) @@ -380,7 +380,7 @@ primaryset = elt0 def countstar(l, c): - from sqlsem import Count + from .sqlsem import Count return Count("*") def distinctset(l, c): @@ -396,7 +396,7 @@ allcount = allset def set(agg, exp, distinct): - import sqlsem + from . import sqlsem if agg=="AVG": return sqlsem.Average(exp, distinct) if agg=="COUNT": @@ -409,7 +409,7 @@ return sqlsem.Sum(exp, distinct) if agg=="MEDIAN": return sqlsem.Median(exp, distinct) - raise NameError, `agg`+": unknown aggregate" + raise NameError(repr(agg)+": unknown aggregate") average = count = maximum = minimum = summation = median = elt0 @@ -439,12 +439,12 @@ def predbetween(list, context): [e1, between, e2, andkw, e3] = list - from sqlsem import BetweenPredicate + from .sqlsem import BetweenPredicate return BetweenPredicate(e1, e2, e3) def prednotbetween(list, context): [e1, notkw, between, e2, andkw, e3] = list - from sqlsem import BetweenPredicate + from .sqlsem import BetweenPredicate return ~BetweenPredicate(e1, e2, e3) predicate1 = elt0 @@ -455,7 +455,7 @@ predexists = elt0 def exists(l, c): [ex, paren1, subquery, paren2] = l - from sqlsem import ExistsPred + from .sqlsem import ExistsPred return ExistsPred(subquery) def notbf(list, context): @@ -468,7 +468,7 @@ def predqeq(list, context): [exp, eq, allany, p1, subq, p2] = list - from sqlsem import QuantEQ, QuantNE + from .sqlsem import QuantEQ, QuantNE if allany=="ANY": return QuantEQ(exp, subq) else: @@ -476,7 +476,7 @@ def predqne(list, context): [exp, lt, gt, allany, p1, subq, p2] = list - from sqlsem import QuantEQ, QuantNE + from .sqlsem import QuantEQ, QuantNE if allany=="ANY": return QuantNE(exp, subq) else: @@ -484,7 +484,7 @@ def predqlt(list, context): [exp, lt, allany, p1, subq, p2] = list - from sqlsem import QuantLT, QuantGE + from .sqlsem import QuantLT, QuantGE if allany=="ANY": return QuantLT(exp, subq) else: @@ -492,7 +492,7 @@ def predqgt(list, context): [exp, gt, allany, p1, subq, p2] = list - from sqlsem import QuantGT, QuantLE + from .sqlsem import QuantGT, QuantLE if allany=="ANY": return QuantGT(exp, subq) else: @@ -500,7 +500,7 @@ def predqle(list, context): [exp, less, eq, allany, p1, subq, p2] = list - from sqlsem import QuantGT, QuantLE + from .sqlsem import QuantGT, QuantLE if allany=="ANY": return QuantLE(exp, subq) else: @@ -508,7 +508,7 @@ def predqge(list, context): [exp, gt, eq, allany, p1, subq, p2] = list - from sqlsem import QuantGE, QuantLT + from .sqlsem import QuantGE, QuantLT if aRefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/remotetest.py RefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/relalg.py llany=="ANY": return QuantGE(exp, subq) else: @@ -517,27 +517,27 @@ # subquery expression def subqexpr(list, context): [p1, subq, p2] = list - from sqlsem import SubQueryExpression + from .sqlsem import SubQueryExpression return SubQueryExpression(subq) def predin(list, context): [exp, inkw, p1, subq, p2] = list - from sqlsem import InPredicate + from .sqlsem import InPredicate return InPredicate(exp, subq) def prednotin(list, context): [exp, notkw, inkw, p1, subq, p2] = list - from sqlsem import InPredicate + from .sqlsem import InPredicate return ~InPredicate(exp, subq) def predinlits(list, context): [exp, inkw, p1, lits, p2] = list - from sqlsem import InLits + from .sqlsem import InLits return InLits(exp, lits) def prednotinlits(list, context): [exp, notkw, inkw, p1, lits, p2] = list - from sqlsem import InLits + from .sqlsem import InLits return ~InLits(exp, lits) @@ -568,7 +568,7 @@ def select1(list, context): [ (exp, name) ] = list - from sqlsem import TupleCollector + from .sqlsem import TupleCollector result = TupleCollector() result.addbinding(name, exp) return result @@ -599,7 +599,7 @@ def __init__(self, name): self.name = name def __call__(self, list, context): - print "punt:", self.name, list + print("punt:", self.name, list) return list class tracer: @@ -608,16 +608,16 @@ self.fn = fn def __call__(self, list, context): - print self.name, list + print(self.name, list) return self.fn(list, context) def BindRules(sqlg): - for name in sqlg.RuleNameToIndex.keys(): - if VARS.has_key(name): + for name in list(sqlg.RuleNameToIndex.keys()): + if name in VARS: #print "binding", name sqlg.Bind(name, VARS[name]) # nondebug #sqlg.Bind(name, tracer(name, VARS[name]) ) # debug else: - print "unbound", name + print("unbound", name) sqlg.Bind(name, punter(name)) return sqlg --- ../python3/src/zope/rdb/gadfly/remotetest.py (original) +++ ../python3/src/zope/rdb/gadfly/remotetest.py (refactored) @@ -1,13 +1,13 @@ """Demonstration of the Remote View protocol for adding specially implemented Views in an application.""" -from gadfly import gadfly +from .gadfly import gadfly # create the database g = gadfly() g.startup("dbtest", "dbtest") # assume directory "dbtest" exists # define a remote view class -import gfintrospect +from . import gfintrospect class myTable(gfintrospect.RemoteView): @@ -54,31 +54,31 @@ # NOT list of tuples of values! g.add_remote_view("test2", myTable(["x"], [1,6,7])) -print g.database +print(g.database) c = g.cursor() c.execute("select * from test") -print "test::" -print c.pp() -print +print("test::") +print(c.pp()) +print() c.execute("select * from test2") -print "test2::" -print c.pp() -print +print("test2::") +print(c.pp()) +print() c.execute("select * from test, test2 where x=a") -print "join" -print c.pp() -print +print("join") +print(c.pp()) +print() g.add_remote_view("test3", myTable(["z", "w"], [(2,3), (7,8), (4,6)])) c.execute("select * from test3") -print "test3::" -print c.pp() -print +print("test3::") +print(c.pp()) +print() c.execute( "select * from test, test2, test3 where x=a and z=b and w=c") -print "join 2::" -print c.pp() -print +print("join 2::") +print(c.pp()) +print() --- ../python3/src/zope/rdb/gadfly/relalg.py (original) +++ ../python3/src/zope/rdb/gadfly/relalg.py (refactored) @@ -117,7 +117,7 @@ try: from kjbuckets import * except ImportError: - from kjbuckets0 import * + from .kjbuckets0 import * class relation: @@ -127,15 +127,14 @@ names = self.names = tuple(names) nameset = self.nameset = kjSet(names) for r in rows: - if nameset != kjSet(r.keys()): - raise ValueError, \ - "bad names: "+`(names, r.items())` + if nameset != kjSet(list(r.keys())): + raise ValueError("bad names: "+repr((names, list(r.items())))) self.rows = kjSet(rows) def __repr__(self): from string import join names = self.names - rows = self.rows.items() + rows = list(self.rows.items()) if not rows: nns = join(names) replist = [nns, "="*len(nns), " ----"] @@ -153,17 +152,17 @@ if nnames==1: replist = maxrep(replist) else: - transpose = apply(map, tuple([None] + replist)) - adjusted = map(maxrep, transpose) - replist = apply(map, tuple([None] + adjusted)) - replist = map(join, replist) + transpose = list(map(*tuple([None] + replist))) + adjusted = list(map(maxrep, transpose)) + replist = list(map(*tuple([None] + adjusted))) + replist = list(map(join, replist)) replist.insert(1, "=" * len(replist[0])) #print replist return join(replist, "\n") def maxrep(list): - list = map(str, list) - maxlen = max( map(len, list) ) + list = list(map(str, list)) + maxlen = max( list(map(len, list)) ) for i in range(len(list)): item = list[i] litem = len(item) @@ -179,11 +178,11 @@ def statementexpr(l, c): from string import split, join - print - print " --- expression result ---" - print + print() + print(" --- expression result ---") + print() data = str(l[0]) - print " "+ join(split(data, "\n"), "\n ") + print(" "+ join(split(data, "\n"), "\n ")) def assignment1(l, c): [name, eq, val] = l @@ -195,31 +194,30 @@ def check_compat(v1, v2): names1, names2 = v1.names, v2.names if names1 != names2: - raise ValueError, \ - "operands not union compatible "+`(names1, names2)` + raise ValueError("operands not union compatible "+repr((names1, names2))) return names1, v1.rows, v2.rows def union(l, c): [v1, U, v2] = l names1, r1, r2 = check_compat(v1, v2) - return relation(names1, (r1+r2).items()) + return relation(names1, list((r1+r2).items())) rterm = elt0 def minus(l, c): [v1, m, v2] = l names1, r1, r2 = check_compat(v1, v2) - return relation(names1, (r1-r2).items()) + return relation(names1, list((r1-r2).items())) def intersect(l, c): [v1, i, v2] = l names1, r1, r2 = check_compat(v1, v2) - return relation(names1, (r1&r2).items()) + return relation(names1, list((r1&r2).items())) def join(l, c): [v1, j, v2] = l n1, n2 = v1.names, v2.names - r1, r2 = v1.rows.items(), v2.rows.items() + r1, r2 = list(v1.rows.items()), list(v2.rows.items()) n1s, n2s = kjSet(n1), kjSet(n2) common = tuple((n1s&n2s).items()) result = kjSet() @@ -235,7 +233,7 @@ for a in r1: for b in r2: result[a+b] = 1 - return relation( (n1s+n2s).items(), result.items() ) + return relation( list((n1s+n2s).items()), list(result.items()) ) rfactor = elt0 @@ -243,9 +241,9 @@ [p, b1, names, b2, val] = l proj = kjSet(names) result = kjSet() - for row in val.rows.items(): + for row in list(val.rows.items()): result[ proj * row ] = 1 - return relation( names, result.items()) + return relation( names, list(result.items())) def emptylist(l, c): return [] @@ -274,7 +272,7 @@ def filter(self, val): v1 = self.c1.filter(val) v2 = self.c2.filter(val) - return relation(v1.names, (v1.rows+v2.rows).items()) + return relation(v1.names, list((v1.rows+v2.rows).items())) condfactor = elt0 @@ -282,7 +280,7 @@ def filter(self, val): v1 = self.c1.filter(val) v2 = self.c2.filter(val) - return relation(v1.names, (v1.rows&v2.rows).items()) + return relation(v1.names, list((v1.rows&v2.rows).items())) factorprime = elt0 @@ -291,7 +289,7 @@ [n, self.c1] = l def filter(self, val): v1 = self.c1.filter(val) - return relation(v1.names, (val.rows-v1.rows).items()) + return relation(v1.names, list((val.rows-v1.rows).items())) def elt1(l, c): return l[1] @@ -302,14 +300,14 @@ def __init__(self, l, c): [self.e1, eq, self.e2] = l def filter(self, val): - rows = val.rows.items() + rows = list(val.rows.items()) e1v = self.e1.value(rows) e2v = self.e2.value(rows) result = kjSet() for (r, v1, v2) in map(None, rows, e1v, e2v): if v1==v2: result[r] = 1 - return relation(val.names, result.items()) + return relation(val.names, list(result.items())) class expname: def __init__(self, l, c): @@ -317,7 +315,7 @@ def value(self, rows): name = self.name r = list(rows) - for i in xrange(len(r)): + for i in range(len(r)): r[i] = r[i][name] return r @@ -328,7 +326,7 @@ def rename(l, c): [ren, b1, names, b2, to, b3, names2, b4, val] = l if len(names)!=len(names2): - raise ValueError, "names lengths must match"+`(names1, names2)` + raise ValueError("names lengths must match"+repr((names1, names2))) remap = kjDict(map(None, names2, names)) oldnames = kjSet(val.names) addnames = kjSet(names2) @@ -337,12 +335,12 @@ remap = remap + keepnames if not remnames.subset(oldnames): #print remnames, oldnames - raise ValueError, "old names not present"+`(names, val.names)` + raise ValueError("old names not present"+repr((names, val.names))) newnames = keepnames+addnames - rows = val.rows.items() + rows = list(val.rows.items()) for i in range(len(rows)): rows[i] = remap*rows[i] - return relation(newnames.items(), rows) + return relation(list(newnames.items()), rows) def named(l, c): [name] = l @@ -352,11 +350,11 @@ [b1, names, b2, p1, rows, p2] = l names = tuple(names) ln = len(names) - for i in xrange(len(rows)): + for i in range(len(rows)): this = rows[i] lt = len(this) if lt!=ln: - raise ValueError, "names, vals don't match"+`(names,this)` + raise ValueError("names, vals don't match"+repr((names,this))) if len(this)==1: this = this[0] else: @@ -401,7 +399,7 @@ def __init__(self, name): self.name = name def __call__(self, list, context): - print "punt:", self.name, list + print("punt:", self.name, list) return list class tracer: @@ -410,19 +408,19 @@ self.fn = fn def __call__(self, list, context): - print "tracing", self.name, list + print("tracing", self.name, list) test = self.fn(list, context) - print self.name, "returns", test + print(self.name, "returns", test) return test def BindRules(sqlg): - for name in sqlg.RuleNameToIndex.keys(): - if VARS.has_key(name): + for name in list(sqlg.RuleNameToIndex.keys()): + if name in VARS: #print "binding", name sqlg.Bind(name, VARS[name]) # nondebug #sqlg.Bind(name, tracer(name, VARS[name]) ) # debug else: - print "unbound", name + print("unbound", name) sqlg.Bind(name, punter(name)) return sqlg @@ -456,7 +454,7 @@ Grammar.Addterm("number", numlitre, numlitfn) def Buildrelalg(filename=MARSHALFILE): - import kjParseBuild + from . import kjParseBuild SQLG = kjParseBuild.NullCGrammar() #SQLG.SetCaseSensitivity(0) DeclareTerminals(SQLG) @@ -466,17 +464,17 @@ # should add comments SQLG.comments([RACOMMENTREGEX]) SQLG.Declarerules(relalg_rules) - print "working..." + print("working...") SQLG.Compile() filename = INSTALLDIR+"/"+filename - print "dumping to", filename + print("dumping to", filename) outfile = open(filename, "wb") SQLG.MarshalDump(outfile) outfile.close() return SQLG def reloadrelalg(RefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/pygram.py filename=MARSHALFILE): - import kjParser + from . import kjParser filename = INSTALLDIR+"/"+filename infile = open(filename, "rb") SQLG = kjParser.UnMarshalGram(infile) @@ -496,12 +494,12 @@ commands = split(data, ";") for c in commands: if not strip(c): continue - print " COMMAND:" + print(" COMMAND:") data = str(c) pdata = " "+join(split(c, "\n"), "\n ") - print pdata + print(pdata) test = ragram.DoParse1(c, context) - print + print() # c:\python\python relalg.py ratest.txt @@ -513,7 +511,7 @@ if len(argv)>1: command = argv[1] if command=="make": - print "building relational algebra grammar" + print("building relational algebra grammar") Buildrelalg() done = 1 else: @@ -521,4 +519,4 @@ done = 1 finally: if not done: - print __doc__ + print(__doc__) --- ../python3/src/zope/rdb/gadfly/pygram.py (original) +++ ../python3/src/zope/rdb/gadfly/pygram.py (refactored) @@ -376,13 +376,13 @@ """ import kjParser, string, re -from kjParser import KEYFLAG, ENDOFFILETERM +from .kjParser import KEYFLAG, ENDOFFILETERM alphanumunder = string.letters+string.digits+"_" alpha = string.letters + "_" # components that are part of a identifier (cannot be next to kw). -id_letters = map(None, alphanumunder) +id_letters = list(alphanumunder) # terminator re for names nametermre = "[^" + alphanumunder + "]" @@ -433,10 +433,10 @@ # NOTE: newline is treated same as a punctuation # NOTE: "' ARE NOT PUNCTS punct = "~!#%^&*()-+=|{}<>,.;:/[]{}\n`" -punctlist = map(None, punct) +punctlist = list(punct) kwmap = {} -for x in char2kw + punct2 + char3kw + map(None, punct): +for x in char2kw + punct2 + char3kw + list(punct): # everything parses as length 1 to the outer world. kwmap[x] = (((KEYFLAG, x), x), 1) @@ -466,7 +466,7 @@ self.atdedent = 0 ### handle multiple dedents correctly!!! ### translate tabs to 8 spaces... - from kjParser import TERMFLAG + from .kjParser import TERMFLAG self.NAMEflag = (TERMFLAG, "NAME") self.STRINGflag = (TERMFLAG, "STRING") self.NEWLINEflag = (TERMFLAG, "NEWLINE") @@ -527,14 +527,14 @@ self.lastresult = newlineresult if StartPosition!=0: self.laststring = None - raise ValueError, "python lexical parsing must start at zero" + raise ValueError("python lexical parsing must start at zero") lastindex = self.lastindex lastresult = None elif lastindex == StartPosition: #print "returning lastresult ", lastresult return lastresult elif lastindex != StartPosition-1: - raise ValueError, "python lexer can't skip tokens" + raise ValueError("python lexer can't skip tokens") #print "parsing", StartPosition, lastresult # do newline counting here! @@ -701,7 +701,7 @@ # parse a number... skip = numterm.search(String, realindex) if skip<=realindex: - raise parseerror, "number length<1 (!)" + raise parseerror("number length<1 (!)") thenumber = String[realindex:skip] self.realindex = skip ### note don't interpret number here!! @@ -719,7 +719,7 @@ #print "keyword 2", result return result first3 = String[realindex: realindex+3] - if char3kwdict.has_key(first3): + if first3 in char3kwdict: the_kw = char3kwdict[first3] the_end = realindex+len(the_kw) if ((the_endsanity: - raise parseerror, "failed to terminate single quotes" + raise parseerror("failed to terminate single quotes") if String[last-1:last]=="\\": # are we at the end of an odd number of backslashes? (yuck!) bplace = last-1 @@ -797,7 +797,7 @@ return result #print (String[realindex-20:realindex-1], String[realindex], # String[realindex+1:realindex+20]) - raise parseerror, "invalid first: " + `first` + raise parseerror("invalid first: " + repr(first)) # use a modified lexstringwalker class pylexstringwalker(kjParser.LexStringWalker): @@ -823,9 +823,9 @@ return (ParseResult[1], Context) #return kjParser.Grammar.DoParse(pyg, String, Context, DoReductions) except: ### for testing!! - t, v = sys.exc_type, sys.exc_value + t, v = sys.exc_info()[0], sys.exc_info()[1] v = ("near line", pyg.LexD.lineno, v) - raise t, v + raise t(v) buildinfo = """ Please edit the ARCHIVE parameter of this module (%s) @@ -836,7 +836,7 @@ def GrammarBuild(): global pyg - import kjParseBuild + from . import kjParseBuild pyg = kjParseBuild.NullCGrammar() pyg.DoParse = hackDoParse # override lexical dict here @@ -846,26 +846,26 @@ pyg.punct("~!#%^&*()-+=|{}'`<>,.;:/[]{}") pyg.Nonterms(nonterms) pyg.Declarerules(pyrules) - print buildinfo - print "compiling... this may take a while..." + print(buildinfo) + print("compiling... this may take a while...") pyg.Compile() - print "dumping" + print("dumping") outfile = open(marshalfilename, "wb") pyg.MarshalDump(outfile) outfile.close() - print "self testing the grammar" + print("self testing the grammar") test(pyg) - print "\n\ndone with regeneration" + print("\n\ndone with regeneration") return pyg def unMarshalpygram(): global pyg - import kjParser - print "loading" + from . import kjParser + print("loading") try: infile = open(marshalfilename, "rb") except IOError: - print marshalfilename, "not found, attempting creation" + print(marshalfilename, "not found, attempting creation") pyg = GrammarBuild() else: pyg = kjParser.UnMarshalGram(infile) @@ -876,7 +876,7 @@ DeclareTerminals(pyg) # BindRules(pyg) if dotest: - print "self testing the grammar" + print("self testing the grammar") test(pyg) return pyg @@ -982,8 +982,8 @@ now = time() x = grammar.DoParse1(teststring, context) elapsed = time()-now - print x - print elapsed + print(x) + print(elapsed) return x regen = 0 --- ../python3/src/zope/rdb/gadfly/kjpylint.py (original) +++ ../python3/src/zope/rdb/gadfly/kjpylint.py (refactored) @@ -77,7 +77,7 @@ pyg = context = None #import pygram -from pygram import newlineresult +from .pygram import newlineresult # reduction rules: # only need to consider @@ -380,10 +380,10 @@ #result.append(x) (ignore global sets in local context) # scan for locals for (ln, ri, op, name) in var_accesses: - if op == "set" and not locals.has_key(name): - if globals.has_key(name): + if op == "set" and name not in locals: + if name in globals: context.complain( - "Warning: set of global %s in local context %s" % (`name`, `sname`)) + "Warning: set of global %s in local context %s" % (repr(name), repr(sname))) result.append( (ln, ri, op, name) ) pass # ignore global set in local context else: @@ -391,7 +391,7 @@ # scan for use before assign, etc. for x in var_accesses: (ln, ri, op, name) = x - if locals.has_key(name): + if name in locals: if op in ["ref", "qref"]: set = locals[name] set[1] = set[1] + 1 @@ -399,17 +399,17 @@ if (ln <= assnln): context.complain( "(%s) local %s ref at %s before assign at %s" % ( - sname, `name`, ln, `assnln`)) + sname, repr(name), ln, repr(assnln))) elif op not in ("global", "set"): # ignore global sets in local context. result.append(x) # scan for no use if not unused_ok: - for (name, set) in locals.items(): + for (name, set) in list(locals.items()): [where, count] = set if count<1: context.complain( - "(%s) %s defined before %s not used" % (sname, `name`, where)) + "(%s) %s defined before %s not used" % (sname, repr(name), where)) return result ### note, need to make special case for qualified names @@ -436,7 +436,7 @@ def trailerlistn(list, context): #print "trailerlistn", list result = list[0] + list[1][0] - for i in xrange(len(result)): + for i in range(len(result)): (a, b, op, d) = result[i] result[i] = (a, b, "qref", d) return (result, 1) @@ -475,7 +475,7 @@ # first test def BindRules(pyg): - for name in pyg.RuleNameToIndex.keys(): + for name in list(pyg.RuleNameToIndex.keys()): pyg.Bind(name, default_reduction) pyg.Bind("all1", all1) pyg.Bind("testlambda1", testlambda1) @@ -523,7 +523,7 @@ self.deferred = [] self.LexD = lexd def complain(self, str): - print str + print(str) def defer_globals(self, globals): self.deferred[0:0] = globals def when_done(self, list): @@ -531,18 +531,18 @@ globals = analyse_scope("", stuff, self) seen = {} for (ln, ri, op, name) in globals: - if not seen.has_key(name) and op!="set": + if name not in seen and op!="set": seen[name] = name self.complain( - "%s: (%s) %s not defined in module?" % (ln, op, `name`)) + "%s: (%s) %s not defined in module?" % (ln, op, repr(name))) self.deferred = [] # reset state. def patch_globals(self): # patch in global names - import __builtin__ + import builtins names = dir(__builtin__) list = names[:] list2 = names[:] - for i in xrange(len(list)): + for i in range(len(list)): list[i] = (-2, -900, "set", names[i]) list2[i] = (-1, -900, "qref", names[i]) return list + list2 @@ -564,18 +564,18 @@ try: file = sys.argv[1] except IndexError: - print "required input file missing, defaulting to test string" + print("required input file missing, defaulting to test string") data = teststring else: data = open(file).read() - print "setup" + print("setup") (pyg, context) = setup() - print "now parsing" + print("now parsing") lint(data, pyg, context) def setup(): global pyg, context - import pygram + from . import pygram pyg = pygram.unMarshalpygram() BindRules(pyg) context = globalContext(pyg.LexD) @@ -589,12 +589,12 @@ def lintdir(directory_name): """lint all fRefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/kjbuckets0.py iles recursively in directory""" from find import find - print "\n\nrecursively linting %s\n\n" % directory_name + print("\n\nrecursively linting %s\n\n" % directory_name) (pyg, context) = setup() python_files = find("*.py", directory_name) for x in python_files: - print "\n\n [ %s ]\n\n" % x + print("\n\n [ %s ]\n\n" % x) lint( open(x).read(), pyg, context ) - print "\014" + print("\014") if __name__=="__main__": go() --- ../python3/src/zope/rdb/gadfly/kjbuckets0.py (original) +++ ../python3/src/zope/rdb/gadfly/kjbuckets0.py (refactored) @@ -1,3 +1,4 @@ +from functools import reduce # kjbuckets in pure python @@ -26,7 +27,7 @@ #print args if args: if len(args)>1: - raise ValueError, "only 1 or 0 argument supported" + raise ValueError("only 1 or 0 argument supported") from types import IntType, ListType, TupleType arg = args[0] targ = type(arg) @@ -43,24 +44,24 @@ aclass = arg.__class__ if aclass is kjGraph: aktl = arg.key_to_list - for k in aktl.keys(): + for k in list(aktl.keys()): key_to_list[k] = aktl[k][:] return if aclass is kjDict or aclass is kjSet: adict = arg.dict - for k in adict.keys(): + for k in list(adict.keys()): key_to_list[k] = [ adict[k] ] return - raise ValueError, "arg for kjGraph must be tuple, list, or kjTable" + raise ValueError("arg for kjGraph must be tuple, list, or kjTable") def __repr__(self): - return "%s(%s)" % (self.__class__.__name__, self.items()) + return "%s(%s)" % (self.__class__.__name__, list(self.items())) def _setitems(self, thing): #print "kjGraph._setitem", thing #print "setitems", thing if self.hashed is not None: - raise ValueError, "table has been hashed, it is immutable" + raise ValueError("table has been hashed, it is immutable") try: for (k,v) in thing: #print k,v, "going" @@ -80,13 +81,13 @@ if kjtabletest(thing): self._setitems(thing._pairs()) self.dirty = thing.dirty - else: raise ValueError, "cannot setitems with %s" % type(thing) + else: raise ValueError("cannot setitems with %s" % type(thing)) except unhashable: - raise TypeError, "unhashable type" + raise TypeError("unhashable type") def __setitem__(self, item, value): ktl = self.key_to_list - if ktl.has_key(item): + if item in ktl: l = ktl[item] if value not in l: l.append(value) @@ -101,10 +102,10 @@ del self.key_to_list[item] def choose_key(self): - return self.key_to_list.keys()[0] + return list(self.key_to_list.keys())[0] def _pairs(self, justtot=0): - myitems = self.key_to_list.items() + myitems = list(self.key_to_list.items()) tot = 0 for (k, v) in myitems: tot = tot + len(v) @@ -119,8 +120,8 @@ return result def __len__(self): - v = self.key_to_list.values() - lv = map(len, v) + v = list(self.key_to_list.values()) + lv = list(map(len, v)) from operator import add return reduce(add, lv, 0) @@ -128,9 +129,9 @@ return self._pairs() def values(self): - v = self.key_to_list.values() + v = list(self.key_to_list.values()) from operator import add - tot = reduce(add, map(len, v), 0) + tot = reduce(add, list(map(len, v)), 0) result = [None] * tot count = 0 for l in v: @@ -140,11 +141,11 @@ return result def keys(self): - return self.key_to_list.keys() + return list(self.key_to_list.keys()) def member(self, k, v): ktl = self.key_to_list - if ktl.has_key(k): + if k in ktl: return v in ktl[k] return 0 @@ -152,7 +153,7 @@ def add(self, k, v): ktl = self.key_to_list - if ktl.has_key(k): + if k in ktl: l = ktl[k] if v not in l: l.append(v) @@ -162,7 +163,7 @@ def delete_arc(self, k, v): self.dirty = 1 if self.hashed is not None: - raise ValueError, "table has been hashed, it is immutable" + raise ValueError("table has been hashed, it is immutable") try: l = self.key_to_list[k] i = l.index(v) @@ -170,10 +171,10 @@ if not l: del self.key_to_list[k] except: - raise KeyError, "not in table"# % (k,v) + raise KeyError("not in table")# % (k,v) def has_key(self, k): - return self.key_to_list.has_key(k) + return k in self.key_to_list def subset(self, other): oc = other.__class__ @@ -181,7 +182,7 @@ oktl = other.key_to_list sktl = self.key_to_list otest = oktl.has_key - for k in sktl.keys(): + for k in list(sktl.keys()): if otest(k): l = sktl[k] ol = oktl[k] @@ -195,7 +196,7 @@ sktl = self.key_to_list odict = other.dict otest = odict.has_key - for k in sktl.keys(): + for k in list(sktl.keys()): if otest(k): l = sktl[k] ov = odict[k] @@ -225,11 +226,11 @@ newhorizon = [] for n in horizon: for n2 in self.neighbors(n): - if not d.has_key(n2): + if n2 not in d: newhorizon.append(n2) d[n2] = 1 horizon = newhorizon - return kjSet(d.keys()) + return kjSet(list(d.keys())) def items(self): return self._pairs() @@ -246,11 +247,11 @@ try: raise self except (kjSet, kjDict): - raise ValueError, "tclosure only defined on graphs" + raise ValueError("tclosure only defined on graphs") except kjGraph: pass except: - raise ValueError, "tclosure only defined on graphs" + raise ValueError("tclosure only defined on graphs") result = kjGraph(self) result.dirty = self.dirty addit = result.add @@ -259,7 +260,7 @@ more = result*result if more.subset(result): return result - for (x,y) in more.items(): + for (x,y) in list(more.items()): addit(x,y) def Clean(self): @@ -277,7 +278,7 @@ return kjDict(X*self).Clean() def dump(self, seq): - result = map(None, seq) + result = list(seq) for i in range(len(result)): result[i] = self[result[i]] if len(seq) == 1: @@ -289,7 +290,7 @@ if self.hashed is not None: return self.hashed items = self._pairs() - for i in xrange(len(items)): + for i in range(len(items)): (a,b) = items[i] try: b = hash(b) @@ -313,7 +314,7 @@ oi.sort() return cmp(si, oi) - def __nonzero__(self): + def __bool__(self): if self.key_to_list: return 1 return 0 @@ -325,7 +326,7 @@ oc = other.__class__ if oc is kjGraph: oktl = other.key_to_list - for k in oktl.keys(): + for k in list(oktl.keys()): l = oktl[k] if rtest(k): rl = rktl[k] @@ -336,7 +337,7 @@ rktl[k] = l[:] elif oc is kjSet or oc is kjDict: odict = other.dict - for k in odict.keys(): + for k in list(odict.keys()): ov = odict[k] if rtest(k): rl = rktl[k] @@ -345,7 +346,7 @@ else: rktl[k] = [ov] else: - raise ValueError, "kjGraph adds only with kjTable" + raise ValueError("kjGraph adds only with kjTable") return result __or__ = __add__ @@ -358,7 +359,7 @@ if oc is kjGraph: oktl = other.key_to_list otest = oktl.has_key - for k in sktl.keys(): + for k in list(sktl.keys()): l = sktl[k][:] if otest(k): ol = oktl[k] @@ -372,7 +373,7 @@ elif oc is kjSet or oc is kjDict: odict = other.dict otest = odict.has_key - for k in sktl.keys(): + for k in list(sktl.keys()): l = sktl[k][:] if otest(k): ov = odict[k] @@ -381,7 +382,7 @@ if l: rktl[k] = l else: - raise ValueError, "kjGraph diffs only with kjTable" + raise ValueError("kjGraph diffs only with kjTable") return result def __mul__(self, other): @@ -392,7 +393,7 @@ if oc is kjGraph: oktl = other.key_to_list otest = other.has_key - for sk in sktl.keys(): + for sk in list(sktl.keys()): sklist = [] for sv in sktl[sk]: if otest(sv): @@ -402,7 +403,7 @@ elif oc is kjSet or oc is kjDict: odict = other.dict otest = odict.has_key - for sk in sktl.keys(): + for sk in list(sktl.keys()): sklist=[] for sv in sktl[sk]: if otest(sv): @@ -410,13 +411,13 @@ if sklist: rktl[sk] = sklist else: - raise ValueError, "kjGraph composes only with kjTable" + raise ValueError("kjGraph composes only with kjTable") return result def __invert__(self): result = self.__class__() pairs = self._pairs() - for i in xrange(len(pairs)): + for i in range(len(pairs)): (k,v) = pairs[i] pairs[i] = (v,k) result._setitems(pairs) @@ -431,7 +432,7 @@ rktl = result.key_to_list oktl = other.key_to_list otest = oktl.has_key - for k in self.keys(): + for k in list(self.keys()): if otest(k): l = sktl[k] ol = oktl[k] @@ -446,14 +447,14 @@ rdict = result.dict odict = other.dict stest = sktl.has_key - for k in odict.keys(): + for k in list(odict.keys()): if stest(k): v = odict[k] l = sktl[k] if v in l: rdict[k] = v else: - raise ValueError, "kjGraph intersects only with kjTable" + raise ValueError("kjGraph intersects only with kjTable") result.dirty = self.dirty or other.dirty return result @@ -484,7 +485,7 @@ argc = arg0.__class__ if argc is kjGraph: ktl = arg0.key_to_list - for k in ktl.keys(): + for k in list(ktl.keys()): l = ktl[k] if len(l)>1: self.dirty=1 for v in l: @@ -492,19 +493,19 @@ return if argc is kjSet or argc is kjDict: adict = arg0.dict - for (k,v) in adict.items(): + for (k,v) in list(adict.items()): dict[k]=v return - raise ValueError, "kjDict initializes only from list, tuple, kjTable, or int" + raise ValueError("kjDict initializes only from list, tuple, kjTable, or int") def _setitems(self, thing): #print "kjDict._setitem", thing if self.hashed is not None: - raise KeyError, "table hashed, cannot modify" + raise KeyError("table hashed, cannot modify") dict = self.dict try: for (k,v) in thing: - if dict.has_key(k) and dict[k]!=v: + if k in dict and dict[k]!=v: self.dirty = 1 dict[k] = v except: @@ -517,15 +518,15 @@ else: sdict = self.dict result = [None] * ld - for i in xrange(ld): + for i in range(ld): result[i] = sdict[ dumper[i] ] return tuple(result) def __setitem__(self, item, value): if self.hashed is not None: - raise ValueError, "table has been hashed, it is immutable" + raise ValueError("table has been hashed, it is immutable") d = self.dict - if d.has_key(item): + if item in d: if d[item]!=value: self.dirty = 1 self.dict[item]=value @@ -535,28 +536,28 @@ def __delitem__(self, item): if self.hashed is not None: - raise ValueError, "table has been hashed, it is immutable" + raise ValueError("table has been hashed, it is immutable") self.dirty = 1 del self.dict[item] def choose_key(self): - return self.dict.keys()[0] + return list(self.dict.keys())[0] def __len__(self): return len(self.dict) def _pairs(self, justtot=0): if justtot: return len(self.dict) - return self.dict.items() + return list(self.dict.items()) def values(self): - return self.dict.values() + return list(self.dict.values()) def keys(self): - return self.dict.keys() + return list(self.dict.keys()) def items(self): - return self.dict.items() + return list(self.dict.items()) def remap(self, X): if X.__class__ is kjGraph: @@ -567,7 +568,7 @@ inself = selfd.has_key inresult = resultd.has_key ktl = X.key_to_list - for k in ktl.keys(): + for k in list(ktl.keys()): for v in ktl[k]: if inself(v): map = selfd[v] @@ -602,10 +603,10 @@ rdict = result.dict rtest = result.has_key sdict = s.dict - for k in sdict.keys(): + for k in list(sdict.keys()): rdict[k] = sdict[k] odict = o.dict - for k in odict.keys(): + for k in list(odict.keys()): if rtest(k): if rdict[k]!=odict[k]: result.dirty=1 @@ -615,7 +616,7 @@ if oc is kjGraph: return kjGraph.__add__(o,s) else: - raise ValueError, "kjDict unions only with kjTable" + raise ValueError("kjDict unions only with kjTable") __or__ = __add__ @@ -628,7 +629,7 @@ odict = o.dict sdict = s.dict stest = sdict.has_key - for k in odict.keys(): + for k in list(odict.keys()): v = odict[k] if stest(k) and sdict[k]==v: rdict[k] = v @@ -646,7 +647,7 @@ if oc is kjDict: odict = o.dict otest = odict.has_key - for k in sdict.keys(): + for k in list(sdict.keys()): v = sdict[k] if otest(k): if odict[k]!=v: @@ -657,7 +658,7 @@ if oc is kjGraph: oktl = o.key_to_list otest = oktl.has_key - for k in sdict.keys(): + for k in list(sdict.keys()): v = sdict[k] if otest(k): if v not in oktl[k]: @@ -665,7 +666,7 @@ else: rdict[k] = v return result - raise ValueError, "kjDict only diffs with kjGraph, kjDict" + raise ValueError("kjDict only diffs with kjGraph, kjDict") def __mul__(s,o): oc = o.__class__ @@ -676,7 +677,7 @@ rdict = result.dict odict = o.dict otest = odict.has_key - for k in sdict.keys(): + for k in list(sdict.keys()): kv = sdict[k] if otest(kv): rdict[k] = odict[kv] @@ -684,7 +685,7 @@ elif oc is kjGraph: return kjGraph(s) * o else: - raise ValueError, "kjDict only composes with kjTable" + raise ValueError("kjDict only composes with kjTable") def member(self, k, v): d = self.dict @@ -699,10 +700,10 @@ if self.dict[k] == v: del self.dict[k] else: - raise KeyError, "pair not in table" + raise KeyError("pair not in table") def has_key(self, k): - return self.dict.has_key(k) + return k in self.dict def neighbors(self, k): try: @@ -715,26 +716,26 @@ try: while 1: next = d[k] - if result.has_key(next): break + if next in result: break result[next] = 1 k = next except KeyError: pass - return kjSet(result.keys()) + return kjSet(list(result.keys())) def __invert__(self): result = kjDict() dr = result.dict drtest = dr.has_key ds = self.dict - for (a,b) in ds.items(): + for (a,b) in list(ds.items()): if drtest(b): result.dirty=1 dr[b]=a result.dirty = self.dirty or result.dirty return result - def __nonzero__(self): + def __bool__(self): if self.dict: return 1 return 0 @@ -744,7 +745,7 @@ if oc is kjDict or oc is kjSet: odict = o.dict otest = odict.has_key - for k in sdict.keys(): + for k in list(sdict.keys()): v = sdict[k] if otest(k): if odict[k]!=v: @@ -754,7 +755,7 @@ elif oc is kjGraph: oktl = o.key_to_list otest = oktl.has_key - for k in sdict.keys(): + for k in list(sdict.keys()): v = sdict[k] if otest(k): if v not in oktl[k]: @@ -762,14 +763,14 @@ else: return 0 else: - raise ValueError, "kjDict subset test only for kjTable" + raise ValueError("kjDict subset test only for kjTable") return 1 def add(s, k, v): if s.hashed is not None: - raise ValueError, "table has been hashed, immutable" + raise ValueError("table has been hashed, immutable") sdict = s.dict - if sdict.has_key(k): + if k in sdict: if sdict[k]!=v: s.dirty = 1 sdict[k] = v @@ -785,7 +786,7 @@ largs = len(args) if largs<1: return if largs>1: - raise ValueError, "at most one argument supported" + raise ValueError("at most one argument supported") from types import IntType, TupleType, ListType arg0 = args[0] targ0 = type(arg0) @@ -796,11 +797,11 @@ return argc = arg0.__class__ if argc is kjDict or argc is kjSet: - stuff = arg0.dict.keys() + stuff = list(arg0.dict.keys()) elif argc is kjGraph: - stuff = arg0.key_to_list.keys() - else: - raise ValueError, "kjSet from kjTable, int, list, tuple only" + stuff = list(arg0.key_to_list.keys()) + else: + raise ValueError("kjSet from kjTable, int, list, tuple only") for x in stuff: dict[x] = x @@ -810,9 +811,9 @@ result = kjSet() result.dirty = s.dirty or o.dirty rdict = result.dict - for x in s.dict.keys(): + for x in list(s.dict.keys()): rdict[x]=x - for x in o.dict.keys(): + for x in list(o.dict.keys()): rdict[x]=x return result elif oc is kjDict: @@ -828,7 +829,7 @@ result.dirty = s.dirty or o.dirty rdict = result.dict otest = o.dict.has_key - for x in s.dict.keys(): + for x in list(s.dict.keys()): if not otest(x): rdict[x] = x return result @@ -843,19 +844,19 @@ rdict = result.dict odict = o.dict otest = odict.has_key - for x in s.dict.keys(): + for x in list(s.dict.keys()): if otest(x) and odict[x]==x: rdict[x] = x return result elif oc is kjGraph: return kjGraph.__and__(o,s) - raise ValueError, "kjSet only intersects with kjTable" + raise ValueError("kjSet only intersects with kjTable") # illegal methods values = keys = remap = None def __repr__(self): - return "kjSet(%s)" % self.items() + return "kjSet(%s)" % list(self.items()) def _setelts(self, items): #print "kjSet.setelts", items @@ -863,12 +864,12 @@ items = items._pairs() except: items = list(items) - for i in xrange(len(items)): + for i in range(len(items)): items[i] = (items[i], items[i]) self._setitems(items) else: items = list(items) - for i in xrange(len(items)): + for i in range(len(items)): items[i] = (items[i][0], items[i][0]) self._setitems(items) # hack! @@ -879,7 +880,7 @@ def _pairs(self, justtot=0): if justtot: return kjDict._pairs(self, justtot=1) pairs = kjDict.keys(self) - for i in xrange(len(pairs)): + for i in range(len(pairs)): pairs[i] = (pairs[i], pairs[i]) return pairs @@ -893,19 +894,19 @@ #reachable = neighbors def __getitem__(self, item): - test = self.dict.has_key(item) + test = item in self.dict if test: return 1 - raise KeyError, "item not in set" + raise KeyError("item not in set") def __setitem__(self, item, ignore): d = self.dict if self.hashed: - raise ValueError, "table hashed, immutable" + raise ValueError("table hashed, immutable") d[item] = item def add(self, elt): if self.hashed: - raise ValueError, "table hashed, immutable" + raise ValueError("table hashed, immutable") self.dict[elt] = elt def __mul__(s,o): @@ -933,7 +934,7 @@ except kjGraph: return t1.__class__ except: - raise ValueError, "cannot coerce, not kjtable" + raise ValueError("cannot coerce, not kjtable") def less_general(t1,t2): try: @@ -950,7 +951,7 @@ except kjGraph: return t2.__class__ except: - raise ValueError, "cannot coerce, not kjtable" + raise ValueError("cannot coerce, not kjtable") def kjUndump(t1, t2): result = kjDict() @@ -960,7 +961,7 @@ rdict[t1[0]] = t2 else: # tightly bound to implementation - for i in xrange(lt1): + for i in range(lt1): rdict[t1[i]] = t2[i] return result @@ -968,7 +969,7 @@ def test(): global S, D, G G = kjGraph() - r3 = range(3) + r3 = list(range(3)) r = map(None, r3, r3) for i in range(3): G[i] = i+1 @@ -977,24 +978,24 @@ G[0]=10 S = kjSet(G) S[-1] = 5 - print "%s.remap(%s) = %s" % (D, G, D.remap(G)) - print "init test" + print("%s.remap(%s) = %s" % (D, G, D.remap(G))) + print("init test") for X in (S, D, G, r, tuple(r), 1): - print "ARG", X RefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/kjSet.py + print("ARG", X) for C in (kjGraph, kjSet, kjDict): - print "AS", C + print("AS", C) T = C(X) T2 = C() - print X, T, T2 + print(X, T, T2) ALL = (S, D, G) for X in ALL: - print "X=", X - print "key", X.choose_key() - print "len", len(X) - print "items", X.items() - print X, "Clean before", X.Clean() + print("X=", X) + print("key", X.choose_key()) + print("len", len(X)) + print("items", list(X.items())) + print(X, "Clean before", X.Clean()) del X[2] - print X, "Clean after", X.Clean() + print(X, "Clean after", X.Clean()) if not X.subset(X): raise Exception("trivial subset fails: " + X) if not X==X: @@ -1008,38 +1009,38 @@ raise Exception("huh 2? " + S) S.add(999) del S[1] - if not S.has_key(999): + if 999 not in S: raise Exception("huh 3? " + S) else: - print "values", X.values() - print "keys", X.keys() - print X, "inverted", ~X + print("values", list(X.values())) + print("keys", list(X.keys())) + print(X, "inverted", ~X) if not X.member(0,1): raise Exception("member test fails (0,1): " + X) - print "adding to", X + print("adding to", X) X.add(999,888) - print "added", X + print("added", X) X.delete_arc(999,888) - print "deleted", X + print("deleted", X) if X.member(999,888): raise Exception("member test fails (999,888): " + X) - if X.has_key(999): + if 999 in X: raise Exception("has_key fails 999: " + X) - if not X.has_key(0): + if 0 not in X: raise Exception("has_key fails 0: " + X) for Y in ALL: - print "Y", Y + print("Y", Y) if (X!=S and Y!=S): - print "diff", X, Y - print "%s-%s=%s" % (X,Y,X-Y) + print("diff", X, Y) + print("%s-%s=%s" % (X,Y,X-Y)) elif X==S: D = kjSet(Y) - print "diff", X, D - print "%s-%s=%s" % (X,D,X-D) - print "%s+%s=%s" % (X,Y,X+Y) - print "%s&%s=%s" % (X,Y,X&Y) - print "%s*%s=%s" % (X,Y,X*Y) + print("diff", X, D) + print("%s-%s=%s" % (X,D,X-D)) + print("%s+%s=%s" % (X,Y,X+Y)) + print("%s&%s=%s" % (X,Y,X&Y)) + print("%s*%s=%s" % (X,Y,X*Y)) x,y = cmp(X,Y), cmp(Y,X) if x!=-y: raise Exception("bad cmp! " + X + ", " + Y) - print "cmp(X,Y), -cmp(Y,X)", x,-y - print "X.subset(Y)", X.subset(Y) + print("cmp(X,Y), -cmp(Y,X)", x,-y) + print("X.subset(Y)", X.subset(Y)) --- ../python3/src/zope/rdb/gadfly/kjSet.py (original) +++ ../python3/src/zope/rdb/gadfly/kjSet.py (refactored) @@ -20,25 +20,25 @@ return 0 def get_elts(Set): - return Set.keys() + return list(Set.keys()) def member(Elt,Set): - return Set.has_key(Elt) + return Elt in Set # in place mutators: # returns if no change otherwise 1 def addMember(Elt,Set): change = 0 - if not Set.has_key(Elt): + if Elt not in Set: Set[Elt] = 1 change = 1 return change def Augment(Set, OtherSet): change = 0 - for Elt in OtherSet.keys(): - if not Set.has_key(Elt): + for Elt in list(OtherSet.keys()): + if Elt not in Set: Set[Elt] = 1 change = 1 return change @@ -46,8 +46,8 @@ def Mask(Set, OtherSet): change = 0 - for Elt in OtherSet.keys(): - if Set.has_key(Elt): + for Elt in list(OtherSet.keys()): + if Elt in Set: del Set[Elt] change = 1 return change @@ -56,15 +56RefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/kjParser.py ,15 @@ def Intersection(Set1, Set2): Result = {} - for Elt in Set1.keys(): - if Set2.has_key(Elt): + for Elt in list(Set1.keys()): + if Elt in Set2: Result[Elt] = 1 return Result def Difference(Set1, Set2): Result = {} - for Elt in Set1.keys(): - if not Set2.has_key(Elt): + for Elt in list(Set1.keys()): + if Elt not in Set2: Result[Elt] = 1 return Result @@ -76,8 +76,8 @@ def Subset(Set1,Set2): Result = 1 - for Elt in Set1.keys(): - if not Set2.has_key(Elt): + for Elt in list(Set1.keys()): + if Elt not in Set2: Result = 0 return Result # nonlocal return Result @@ -99,7 +99,7 @@ def GetPairs(Graph): result = [] - Sources = Graph.keys() + Sources = list(Graph.keys()) for S in Sources: Dests = get_elts( Graph[S] ) ThesePairs = [None] * len(Dests) @@ -111,7 +111,7 @@ def AddArc(Graph, Source, Dest): change = 0 - if Graph.has_key(Source): + if Source in Graph: Adjacent = Graph[Source] if not member(Dest,Adjacent): addMember(Dest,Adjacent) @@ -122,19 +122,19 @@ return change def Neighbors(Graph,Source): - if Graph.has_key(Source): + if Source in Graph: return get_elts(Graph[Source]) else: return [] def HasArc(Graph, Source, Dest): result = 0 - if Graph.has_key(Source) and member(Dest, Graph[Source]): + if Source in Graph and member(Dest, Graph[Source]): result = 1 return result def Sources(Graph): - return Graph.keys() + return list(Graph.keys()) # when G1, G2 and G3 are different graphs this results in # G1 = G1 U ( G2 o G3 ) @@ -204,7 +204,7 @@ cursor = oldlen B[OLD] = START if B[cursor] != None: - raise IndexError, "can't insert?" + raise IndexError("can't insert?") # add the elt B[cursor] = (elt,) B[NEW] = cursor @@ -223,7 +223,7 @@ if cursor>=blen: cursor = START if cursor == B[OLD]: break # wrapped if B[cursor] == None: - raise IndexError, "delete from empty grabbag(?)" + raise IndexError("delete from empty grabbag(?)") # test to see if bag is empty (position cursor2 at nonempty slot) cursor2 = cursor+1 if cursor2>=blen: cursor2 = START @@ -241,8 +241,8 @@ def BGtest(n): B = NewBG() - rn = range(n) - rn2 = range(n-2) + rn = list(range(n)) + rn2 = list(range(n-2)) for i in rn: for j in rn: B = BGadd( (i,j), B) @@ -250,5 +250,5 @@ x = BGgetdel(B) for j in rn2: y = BGgetdel(B) - print (i, x, y) + print((i, x, y)) return B --- ../python3/src/zope/rdb/gadfly/kjParser.py (original) +++ ../python3/src/zope/rdb/gadfly/kjParser.py (refactored) @@ -11,7 +11,7 @@ # Setting case sensitivity for keywords MUST happen BEFORE # declaration of keywords. -import kjSet +from . import kjSet import string import re import string @@ -80,7 +80,7 @@ end = Pos+Offset if start<0: start = 0 if end>len(Str): end = len(Str) - L.append(`Str[start:Pos]`+"*"+`Str[Pos:end]`) + L.append(repr(Str[start:Pos])+"*"+repr(Str[Pos:end])) from string import join return join(L, "\n") @@ -163,11 +163,11 @@ self.regexprlist = [] def Dump(self): - print "comments = ", self.commentstrings - print "punctuations = ", self.punctuationlist - print "keywordmap =" + print("comments = ", self.commentstrings) + print("punctuations = ", self.punctuationlist) + print("keywordmap =") self.keywordmap.Dump() - print "regexprlist =", self.regexprlist + print("regexprlist =", self.regexprlist) def __getitem__(self,key): # try to match string to a keyword @@ -190,7 +190,7 @@ # NONLOCAL RETURN return (Flag, value) #endfor - raise LexTokenError, "no match for string: " + `key` + raise LexTokenError("no match for string: " + repr(key)) #enddef __getitem__ # LD.keyword("this") will make a new keyword "this" if not found @@ -199,7 +199,7 @@ # upcase the string, if needed if self.keywordmap.caseInsensitive: str = string.upper(str) - if not self.keywordmap.has_key(str): + if str not in self.keywordmap: # redundancy for to avoid excess construction during parsing token = (KEYFLAG,str) self.keywordmap[str] = (token,str) @@ -224,7 +224,7 @@ return token #endfor # error if no exit by now - raise UnkTermError, "no such terminal" + raise UnkTermError("no such terminal") def __setitem__(self,key,value): if type(key) == type(''): @@ -252,9 +252,9 @@ # register a string as a punctuation def punctuation(self,Instring): if type(Instring) != type("") or len(Instring)!=1: - raise BadPunctError, "punctuation must be string of length 1" + raise BadPunctError("punctuation must be string of length 1") if Instring in string.whitespace: - raise BadPunctError, "punctuation may not be whitespace" + raise BadPunctError("punctuation may not be whitespace") self.punctuationlist = self.punctuationlist + Instring return self.keyword(Instring) @@ -295,7 +295,7 @@ if offset != -1: if offset<1: info = DumpStringWindow(String,StartPosition) - raise LexTokenError, "zero length comment "+info + raise LexTokenError("zero length comment "+info) commentfound = 1 StartPosition = StartPosition + offset totalOffset = totalOffset + offset @@ -316,7 +316,7 @@ return ((Flag, value) , offset + totalOffset) if not (commentfound or whitespacefound): info = DumpStringWindow(String,StartPosition) - raise LexTokenError, "Lexical parse failure "+info + raise LexTokenError("Lexical parse failure "+info) #endwhile #enddef #endclass LexDictionary @@ -359,7 +359,7 @@ if fl[1]==str: return fl else: - raise UnkTermError, "no such terminal" + raise UnkTermError("no such terminal") __setitem__ = Dump @@ -368,9 +368,9 @@ def punctuation(self, Instring): if type(Instring) != type("") or len(Instring)!=1: - raise BadPunctError, "punctuation must be string of length 1" + raise BadPunctError("punctuation must be string of length 1") if Instring in string.whitespace: - raise BadPunctError, "punctuation may not be whitespace" + raise BadPunctError("punctuation may not be whitespace") self.punctuationlist = self.punctuationlist + Instring return self.keyword(Instring) @@ -405,8 +405,7 @@ if skip>0: if skip==0: info = DumpStringWindow(String, StartPosition) - raise LexTokenError, \ - "zero length whitespace or comment "+info + raise LexTokenError("zero length whitespace or comment "+info) StartPosition = StartPosition + skip totalOffset = totalOffset + skip continue @@ -434,7 +433,7 @@ return result # error if we get here info = DumpStringWindow(String, StartPosition) - raise LexTokenError, "Lexical token not found "+info + raise LexTokenError("Lexical token not found "+info) def isCaseSensitive(self): return not self.keywordmap.caseInsensitive @@ -469,28 +468,28 @@ def Dump(self): if self.caseInsensitive: - print " case insensitive" - else: - print " case sensitive" - keys = self.KeyDict.keys() - print " keyDict has ", len(keys), " elts" + print(" case insensitive") + else: + print(" case sensitive") + keys = list(self.KeyDict.keys()) + print(" keyDict has ", len(keys), " elts") for key in keys: - print " ", key," maps to ",self.KeyDict[key] - firstchars = self.FirstcharDict.keys() - print " firstcharDict has ", len(firstchars), " elts" + print(" ", key," maps to ",self.KeyDict[key]) + firstchars = list(self.FirstcharDict.keys()) + print(" firstcharDict has ", len(firstchars), " elts") for char in firstchars: - print " ", char," maps to ",self.FirstcharDict[char] + print(" ", char," maps to ",self.FirstcharDict[char]) # set item assumes value has correct case already, if case sensitive def __setitem__(self, key, value): if len(key)<1: - raise LexTokenError, "Keyword of length 0" + raise LexTokenError("Keyword of length 0") if self.caseInsensitive: KEY = string.upper(key) else: KEY = key firstchar = KEY[0:1] - if self.FirstcharDict.has_key(firstchar): + if firstchar in self.FirstcharDict: self.FirstcharDict[firstchar] = \ self.FirstcharDict[firstchar] + [(KEY, value)] else: @@ -509,7 +508,7 @@ caseins = self.caseInsensitive if caseins: First = string.upper(First) - if fcd.has_key(First): + if First in fcd: Keylist = fcd[First] else: return 0 @@ -543,7 +542,7 @@ def has_key(self,key): if self.caseInsensitive: key = string.upper(key) - return self.KeyDict.has_key(key) + return key in self.KeyDict #endclass KeywordDict: # LexStringWalker walks through a string looking for @@ -575,10 +574,10 @@ self.PastEOF = 1 return Token - def next(self): + def __next__(self): if self.Done: data = self.DUMP() - raise LexTokenError, "no next past end of file "+data + raise LexTokenError("no next past end of file "+data) elif self.PastEOF: self.Done=1 elif self.NextPosition > self.Position: @@ -587,7 +586,7 @@ dummy = self.getmember() if self.NextPosition <= self.Position: data = self.DUMP() - raise LexTokenError, "Lexical walker not advancing "+data + raise LexTokenError("Lexical walker not advancing "+data) self.Position = self.NextPosition #endclass LexStringWalker @@ -725,11 +724,11 @@ #Stack.Push( ThingToPush ) # move to next token, next state - Stream.next() + next(Stream) # error if end of stream if not Stream.more(): # optimized Stream.PastEOF (?) data = Stream.DUMP() - raise EOFError, 'end of stream during parse '+data + raise EOFError('end of stream during parse '+data) current = nextState tokenVal = Stream.getmember() @@ -776,7 +775,7 @@ flag = %s map = %s """ % (flag, FSM.map(current,token)) data = data + s - raise FlowError, 'unexpected else '+data + raise FlowError('unexpected else '+data) #enddef DoOneReduction # compute the state to goto after a reduction is performed @@ -809,21 +808,21 @@ # make this parse error nicer (add diagnostic methods?) L = [""] L.append("*******************************") - L.append("current state = "+`State`) + L.append("current state = "+repr(State)) L.append("expects: ") expects = "" for (flag,name) in self.FSM.Expects(State): if flag in (TERMFLAG, KEYFLAG): - expects = expects + `name`+ ", " + expects = expects + repr(name)+ ", " L.append(expects) - L.append(`rest`) - L.append("current token = " + `Token`) + L.append(repr(rest)) + L.append("current token = " + repr(Token)) #print "Stack =", #self.StackDump(5) #print from string import join data = self.LexStream.DUMP() + join(L, "\n") - raise SyntaxError, 'unexpected token sequence.' + data + raise SyntaxError('unexpected token sequence.' + data) def StackDump(self, N): Stack = self.Stack @@ -833,7 +832,7 @@ else: Start = 1 for i in range(Start,Topkey+1): - print " :: ", Stack[i], + print(" :: ", Stack[i], end=' ') # execute parsing until done: def GO(self): @@ -871,8 +870,8 @@ # for rules def DefaultReductFun( RuleResultsList, Context ): if WARNONDEFAULTS: - print "warn: default reduction." - print " ", RuleResultsList + print("warn: default reduction.") + print(" ", RuleResultsList) return RuleResultsList class ParseRule: @@ -882,18 +881,18 @@ #print BodyList # check some of the arguments (very limited!) if len(goalNonTerm) != 2 or goalNonTerm[0] != NONTERMFLAG: - raise TypeError, "goal of rule must be nonterminal" + raise TypeError("goal of rule must be nonterminal") for m in BodyList: #print m if len(m) != 2: - raise TypeError, "invalid body form for rule" + raise TypeError("invalid body form for rule") self.Nonterm = goalNonTerm self.Body = BodyList self.ReductFun = ReductFunction # for dumping/reconstruction: LOSES THE INTERPRETATION FUNCTION! def __repr__(self): - return THISMODULE + ".ParseRule" + `self.components()` + return THISMODULE + ".ParseRule" + repr(self.components()) # marshal-able components of a rule def components(self): @@ -928,9 +927,9 @@ # the names from rule and stack must match (?) if SEname != REname: - print SEname, REname - print self - raise ReductError, " token names don't match" + print(SEname, REname) + print(self) + raise ReductError(" token names don't match") # store the values for the reduction BodyResults[Bindex] = SEvalue @@ -943,7 +942,7 @@ reduct = self.ReductFun(BodyResults, Context) if WARNONDEFAULTS and self.ReductFun is DefaultReductFun: # should check whether name is defined before this... - print " default used on ", self.Name + print(" default used on ", self.Name) #Reduction( self.ReductFun, BodyResults, BodyNames ) return (Stack, reduct) #enddef ParseRule.reduce @@ -956,7 +955,7 @@ def PrintDefaultBindings(rulelist): for r in rulelist: if r.ReductFun is DefaultReductFun: - print r.Name + print(r.Name) # the FSM class # @@ -995,18 +994,18 @@ # ForbiddenMark is for filtering out maps to an error state def DUMP(self, DumpMapData=1, DumpStateData=1, ForbiddenMark={}): - print "root nonterminal is ", self.root_nonTerminal - print "start at ", self.initial_state - print "end at ", self.successful_final_state - print "number of states: ", self.maxState + print("root nonterminal is ", self.root_nonTerminal) + print("start at ", self.initial_state) + print("end at ", self.successful_final_state) + print("number of states: ", self.maxState) if DumpStateData: - print + print() for State in range(0,self.maxState+1): Data = self.States[State] - print State, ": ", Data + print(State, ": ", Data) if DumpMapData: - print - for key in self.StateTokenMap.keys(): + print() + for key in list(self.StateTokenMap.keys()): map = self.StateTokenMap[key] if map[0][0] == MOVETOFLAG: ToStateData = self.States[map[0][1]] @@ -1015,13 +1014,13 @@ else: Mark = ToStateData[1] if Mark != ForbiddenMark: - print key, " > ", map, " = ", ToStateData + print(key, " > ", map, " = ", ToStateData) else: - print key, " > reduction to rule number ", map[0][1] + print(key, " > reduction to rule number ", map[0][1]) # what tokens does a state expect? def Expects(self, State): - keys = self.StateTokenMap.keys() + keys = list(self.StateTokenMap.keys()) Tokens = kjSet.NewSet( [] ) for (state1,token) in keys: if State == state1: @@ -1033,7 +1032,7 @@ # returns the number of the new state def NewState(self, kind, AdditionalInfo = []): if not kind in (TRANSFLAG,TERMFLAG,REDUCEFLAG): - raise TypeError, "unknown state kind" + raise TypeError("unknown state kind") available = self.maxState+1 self.States[available] = [kind] + AdditionalInfo @@ -1045,23 +1044,22 @@ # no nondeterminism is allowed. def SetReduction(self, fromState, TokenRep, Rulenum): key = (fromState, TokenRep) - if not self.StateTokenMap.has_key(key): + if key not in self.StateTokenMap: self.StateTokenMap[ key ] = ((REDUCEFLAG, Rulenum),) else: - raise ReductError, "attempt to set ambiguous reduction" + raise ReductError("attempt to set ambiguous reduction") # Install a "shift" or "goto transition in the FSM: # supports nondeterminism by storing a sequence of possible transitions # def SetMap(self, fromState, TokenRep, toState): key = (fromState, TokenRep) - if self.StateTokenMap.has_key(key): + if key in self.StateTokenMap: Old = self.StateTokenMap[key] if Old[0][0] != MOVETOFLAG: # if the old value was not an integer, not a "normal state": # complain: - raise NondetError, \ - "attempt to make inappropriate transition ambiguous" + raise NondetError("attempt to make inappropriate transition ambiguous") self.StateTokenMap[ key ] = Old + ((MOVETOFLAG,toState),) else: self.StateTokenMap[ key ] = ((MOVETOFLAG,toState),) @@ -1090,7 +1088,7 @@ except KeyError: return (NOMATCHFLAG, 0) else: - raise FlowError, "unexpected else (2)" + raise FlowError("unexpected else (2)") #enddef map #endclass FSMachine @@ -1123,7 +1121,7 @@ # look for default bindings def PrintDefaults(self): - print "Default bindings on:" + print("Default bindings on:") PrintDefaultBindings(self.RuleL) # setting case sensitivity: must happen before keyword installation @@ -1162,7 +1160,7 @@ def AddNameDict(self, RuleNameDict): self.RuleNameToIndex = RuleNameDict # add a Name attribute to the rules of the rule list - for ruleName in RuleNameDict.keys(): + for ruleName in list(RuleNameDict.keys()): index = RuleNameDict[ ruleName ] self.RuleL[ index ].Name = ruleName @@ -1230,9 +1228,9 @@ self.Gram = Grammar BigList = marshal.load(file) if type(BigList) != type([]): - raise FlowError, "bad type for unmarshalled list" + raise FlowError("bad type for unmarshalled list") if len(BigList) != 9: - raise FlowError, "unmarshalled list of wrong size" + raise FlowError("unmarshalled list of wrong size") self.tokens = BigList[0] self.punct = BigList[1] self.comments = BigList[2] @@ -1263,7 +1261,7 @@ if kind == KEYFLAG:RefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/kjParseBuild.py tokens[tokenindex] = LexD.keyword(name) elif not kind in [TERMFLAG, NONTERMFLAG]: - raise FlowError, "unknown token type" + raise FlowError("unknown token type") # not needed self.tokens = tokens @@ -1276,7 +1274,7 @@ RuleList = [None] * nRules for index in range(nRules): (Name, Components) = RuleTuples[index] - rule = apply(ParseRule, Components) + rule = ParseRule(*Components) rule.Name = Name RuleList[index] = rule NameIndex[Name] = index --- ../python3/src/zope/rdb/gadfly/kjParseBuild.py (original) +++ ../python3/src/zope/rdb/gadfly/kjParseBuild.py (refactored) @@ -12,11 +12,11 @@ # compiled representation if available. import string -import kjSet -import kjParser +from . import kjSet +from . import kjParser # import some constants -from kjParser import \ +from .kjParser import \ TERMFLAG, NOMATCHFLAG, MOVETOFLAG, REDUCEFLAG, TRANSFLAG, KEYFLAG, \ NONTERMFLAG, TERMFLAG, EOFFLAG, ENDOFFILETOKEN @@ -58,10 +58,10 @@ kjSet.AddArc( EGraph, State, State ) # add possible transition on epsilon (ONLY ONE SUPPORTED!) key = (State, Epsilon) - if self.StateTokenMap.has_key(key): + if key in self.StateTokenMap: keymap = self.StateTokenMap[key] if keymap[0][0] != MOVETOFLAG: - raise TypeError, "unexpected map type in StateTokenMap" + raise TypeError("unexpected map type in StateTokenMap") for (Flag,ToState) in keymap: kjSet.AddArc( EGraph, State, ToState ) #endfor @@ -87,7 +87,7 @@ # compute set of all known tokens EXCEPT EPSILON Tokens = kjSet.NewSet( [] ) - for (State, Token) in self.StateTokenMap.keys(): + for (State, Token) in list(self.StateTokenMap.keys()): if Token != Epsilon: kjSet.addMember(Token, Tokens) # tranform it into a list @@ -109,10 +109,10 @@ # if MState has a transition on Token, include # EMap for the destination state key = (MState, Token) - if self.StateTokenMap.has_key(key): + if key in self.StateTokenMap: DStateTup = self.StateTokenMap[key] if DStateTup[0][0] != MOVETOFLAG: - raise TypeError, "unknown map type" + raise TypeError("unknown map type") for (DFlag, DState) in DStateTup: for EDState in EMap[DState]: kjSet.addMember(EDState, UTrans) @@ -219,7 +219,7 @@ # if so, process next token in rule Processindex = 1 else: - raise TokenError, "unknown token type in rule body" + raise TokenError("unknown token type in rule body") #endif Bodyindex = Bodyindex + 1 #endwhile Processindex @@ -305,14 +305,14 @@ #print "epsilon", Token, FToken done = 0 else: - raise TokenError, "unknown token type in rule body" + raise TokenError("unknown token type in rule body") #endif not Last # finally, check whether next iteration has epsilon tail if not kjSet.HasArc(self.First, Token, NULLTOKEN): EpsilonTail = 0 else: - raise TokenError, "unknown token type in rule body" + raise TokenError("unknown token type in rule body") BodyIndex = BodyIndex - 1 Last = 0 # no longer at the last token of the rule @@ -325,20 +325,20 @@ def DumpFirstFollow(self): First = self.First Follow = self.Follow - print "First:" - for key in First.keys(): + print("First:") + for key in list(First.keys()): name = key[1] - print name," :: ", - for (flag2,name2) in First[key].keys(): - print name2,", ", - print - print "Follow:" - for key in Follow.keys(): + print(name," :: ", end=' ') + for (flag2,name2) in list(First[key].keys()): + print(name2,", ", end=' ') + print() + print("Follow:") + for key in list(Follow.keys()): name = key[1] - print name," :: ", - for (flag2,name2) in Follow[key].keys(): - print name2,", ", - print + print(name," :: ", end=' ') + for (flag2,name2) in list(Follow[key].keys()): + print(name2,", ", end=' ') + print() # computing the "first" of the tail of a rule followed by an # optional terminal @@ -367,7 +367,7 @@ kjSet.addMember(RToken, Result) Nullprefix = 0 else: - raise TokenError, "unknown token type in rule body" + raise TokenError("unknown token type in rule body") ThisIndex = ThisIndex + 1 #endwhile # add the optional token if given and Nullprefix still set @@ -443,7 +443,7 @@ NFA.SetMap( ThisState, NULLTOKEN, NextState ) # fix the NFA.States entry if GoodStartingPlace == None: - raise NotSLRError, "No derivation for root nonterminal." + raise NotSLRError("No derivation for root nonterminal.") NFA.States[ NFA.initial_state ] = \ [ 'transient', GoodStartingPlace ] @@ -454,15 +454,15 @@ def ItemDump(self, item): (ruleindex, position) = item Rule = self.Rules[ruleindex] - print Rule.Nonterm[1],' >> ', + print(Rule.Nonterm[1],' >> ', end=' ') for bindex in range(0, len(Rule.Body)): if position == bindex: - print " (*) ", - print Rule.Body[bindex][1], + print(" (*) ", end=' ') + print(Rule.Body[bindex][1], end=' ') if position == len(Rule.Body): - print " (*) " + print(" (*) ") else: - print + print() # utility function -- returns true if an item is a final item def SLRItemIsFinal(self, item): @@ -476,16 +476,16 @@ # dump the NFA def DumpSLRNFA(self): NFA = self.SLRNFA - print "root: ", NFA.root_nonTerminal - for key in NFA.StateTokenMap.keys(): + print("root: ", NFA.root_nonTerminal) + for key in list(NFA.StateTokenMap.keys()): map = NFA.StateTokenMap[key] (fromstate, token) = key fromitem = NFA.States[ fromstate ][1] self.ItemDump(fromitem) - print " on ", token[1], " maps " + print(" on ", token[1], " maps ") for Tostate in map: Toitem = NFA.States[Tostate][1] - print " ", + print(" ", end=' ') self.ItemDump(Toitem) # compute DFA for ruleset by computing the E-closure of the @@ -495,19 +495,19 @@ def DumpDFAsets(self): DFA = self.DFA - print "root: ", DFA.root_nonTerminal + print("root: ", DFA.root_nonTerminal) for State in range(1, len(DFA.States) ): self.DumpItemSet(State) def DumpItemSet(self,State): DFA = self.DFA NFA = self.SLRNFA - print - print "STATE ", State, " *******" + print() + print("STATE ", State, " *******") fromNFAindices = kjSet.get_elts(DFA.States[State][1]) for NFAindex in fromNFAindices: item = NFA.States[NFAindex][1] - print " ", NFAindex, ": ", + print(" ", NFAindex, ": ", end=' ') self.ItemDump(item) # this function completes the computation of an SLR DFA @@ -544,13 +544,13 @@ Following = kjSet.Neighbors( self.Follow, Head ) for Token in Following: key = (State, Token) - if not ToDo.has_key(key): + if key not in ToDo: ToDo[ key ] = item else: # it might be okay if the items are identical? item2 = ToDo[key] if item != item2: - print "reduce/reduce conflict on ",key + print("reduce/reduce conflict on ",key) self.ItemDump(item) self.ItemDump(item2) Error = " apparent reduce/reduce conflict" @@ -562,7 +562,7 @@ # for each (State,Token) pair which indicates a reduction # record the reduction UNLESS the map is already set for the pair - for key in ToDo.keys(): + for key in list(ToDo.keys()): (State,Token) = key item = ToDo[key] (rulenum, dotpos) = item @@ -570,14 +570,14 @@ if ExistingMap[0] == NOMATCHFLAG: DFA.SetReduction( State, Token, rulenum ) else: - print "apparent shift/reduce conflict" - print "reduction: ", key, ": " + print("apparent shift/reduce conflict") + print("reduction: ", key, ": ") self.ItemDump(item) - print "existing map ", ExistingMap + print("existing map ", ExistingMap) Error = " apparent shift/reduce conflict" #endfor if Error and ABORTONERROR: - raise NotSLRError, Error + raise NotSLRError(Error) #enddef SLRfixDFA() # do complete SLR DFA creation starting after initialization @@ -611,21 +611,21 @@ # [ nontermtoken, keyword COLKEY, RuleList ] def RootReduction(list, ObjectGram): if len(list) != 3 or list[1] != COLKEY: - raise FlowError, "unexpected metagrammar root reduction" + raise FlowError("unexpected metagrammar root reduction") return (list[0], list[2]) # NullRuleList should receive list of form # [] def NullRuleList(list, ObjectGram): if list != []: - raise FlowError, "unexpected null RuleList form" + raise FlowError("unexpected null RuleList form") return [] # FullRuleList should receive list of form # [ Rule, RuleList ] def FullRuleList(list, ObjectGram): if type(list) != type([]) or len(list)!=2: - raise FlowError, "unexpected full RuleList form" + raise FlowError("unexpected full RuleList form") NewRule = list[0] OldRules = list[1] return [NewRule] + OldRules @@ -644,7 +644,7 @@ list[0] != RSKEY or \ list[2] != COLKEY or \ list[4] != LTKEY: - raise FlowError, "unexpected meta rule reduction form" + raise FlowError("unexpected meta rule reduction form") ruleName = list[1] ruleNonterm = list[3] ruleBody = list[5] @@ -655,7 +655,7 @@ if flag == KEYFLAG: ruleBody[i] = (KEYFLAG, string.upper(name)) elif not flag in (TERMFLAG, NONTERMFLAG): - raise FlowError, "unexpected rule body member" + raise FlowError("unexpected rule body member") rule = kjParser.ParseRule( ruleNonterm, ruleBody ) rule.Name = ruleName return rule @@ -672,19 +672,19 @@ def InterpNonTerm(list, ObjectGram): #print list if type(list)!=type([]) or len(list)!=1: - raise FlowError, "unexpected rulename form" + raise FlowError("unexpected rulename form") Name = list[0] # determine whether this is a valid nonterminal - if not ObjectGram.NonTermDict.has_key(Name): + if Name not in ObjectGram.NonTermDict: #print Name - raise TokenError, "LHS of Rule must be nonterminal: "+Name + raise TokenError("LHS of Rule must be nonterminal: "+Name) return ObjectGram.NonTermDict[Name] # NullBody should receive [] def NullBody(list, ObjectGram): #print list if list != []: - raise FlowError, "unexpected null Body form" + raise FlowError("unexpected null Body form") return [] # FullBody should receive @@ -698,18 +698,18 @@ def FullBody(list,ObjectGram): #print list if type(list)!=type([]) or len(list)!=2: - raise FlowError, "unexpected body form" + raise FlowError("unexpected body form") Name = list[0] # Does the Name rep a nonterm, keyword or term # of the object grammar (in that order). - if ObjectGram.NonTermDict.has_key(Name): + if Name in ObjectGram.NonTermDict: kind = NONTERMFLAG - elif ObjectGram.LexD.keywordmap.has_key(Name): + elif Name in ObjectGram.LexD.keywordmap: kind = KEYFLAG - elif ObjectGram.TermDict.has_key(Name): + elif Name in ObjectGram.TermDict: kind = TERMFLAG else: - raise TokenError, "Rule body contains unregistered string: "+Name + raise TokenError("Rule body contains unregistered string: "+Name) restOfBody = list[1] return [(kind, Name)] + restOfBody @@ -905,7 +905,7 @@ def MakeTokenArchives(self): # make a list of all tokens and # initialize token > int dictionary - keys = self.Gram.DFA.StateTokenMap.keys() + keys = list(self.Gram.DFA.StateTokenMap.keys()) tokenToInt = {} tokenSet = kjSet.NewSet([]) for k in keys: @@ -969,10 +969,10 @@ Tofile.write("\n\n"+IND+"# declaration of lexical dictionary.\n") Tofile.write(IND+"# EXCEPT FOR TERMINALS\n") Tofile.write(IND+VarName+".LexD.punctuationlist = ") - Tofile.write(`LexD.punctuationlist`+"\n") + Tofile.write(repr(LexD.punctuationlist)+"\n") Tofile.write(IND+"# now comment patterns\n") for comment in LexD.commentstrings: - Tofile.write(IND+VarName+".LexD.comment("+`comment`+")\n") + Tofile.write(IND+VarName+".LexD.comment("+repr(comment)+")\n") Tofile.write(IND+"# now define tokens\n") for i in range(0,len(tokens)): tok = tokens[i] @@ -980,16 +980,16 @@ if kind == TERMFLAG: # put warning at end! # nonterminal not installed in lexical dictionary here! - Tofile.write(IND+VarName+".IndexToToken["+`i`+"] = ") - Tofile.write(PMODULE+".termrep("+`name`+")\n") + Tofile.write(IND+VarName+".IndexToToken["+repr(i)+"] = ") + Tofile.write(PMODULE+".termrep("+repr(name)+")\n") elif kind == KEYFLAG: - Tofile.write(IND+VarName+".IndexToToken["+`i`+"] = ") - Tofile.write(VarName+".LexD.keyword("+`name`+")\n") + Tofile.write(IND+VarName+".IndexToToken["+repr(i)+"] = ") + Tofile.write(VarName+".LexD.keyword("+repr(name)+")\n") elif kind == NONTERMFLAG: - Tofile.write(IND+VarName+".IndexToToken["+`i`+"] = ") - Tofile.write(PMODULE+".nonterminal("+`name`+")\n") + Tofile.write(IND+VarName+".IndexToToken["+repr(i)+"] = ") + Tofile.write(PMODULE+".nonterminal("+repr(name)+")\n") else: - raise FlowError, "unknown token type" + raise FlowError("unknown token type") #enddef PutLex def PutRules(self): @@ -1001,21 +1001,21 @@ Tofile.write("\n\n"+IND+"# declaration of rule list with names.\n") Tofile.write(IND+"# EXCEPT FOR INTERP FUNCTIONS\n") nrules = len(Rules) - Tofile.write(IND+VarName+".RuleL = [None] * "+`nrules`+"\n") + Tofile.write(IND+VarName+".RuleL = [None] * "+repr(nrules)+"\n") fRefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/idl.py or i in range(0,nrules): # put warning at end: # rule reduction function not initialized here! rule = Rules[i] name = rule.Name - Tofile.write(IND+"rule = "+`rule`+"\n") - Tofile.write(IND+"name = "+`name`+"\n") + Tofile.write(IND+"rule = "+repr(rule)+"\n") + Tofile.write(IND+"name = "+repr(name)+"\n") Tofile.write(IND+"rule.Name = name\n") - Tofile.write(IND+VarName+".RuleL["+`i`+"] = rule\n") - Tofile.write(IND+VarName+".RuleNameToIndex[name] = "+`i`+"\n") + Tofile.write(IND+VarName+".RuleL["+repr(i)+"] = rule\n") + Tofile.write(IND+VarName+".RuleNameToIndex[name] = "+repr(i)+"\n") Tofile.write("\n\n"+IND+"# DFA root nonterminal.\n") Tofile.write(IND+VarName+".DFA.root_nonTerminal =") - Tofile.write(`Root`+"\n") + Tofile.write(repr(Root)+"\n") #enddef PutRules def PutTransitions(self): @@ -1029,28 +1029,28 @@ Tofile.write("\n\n"+IND+"# DFA state declarations.\n") for state in range(1, maxState+1): - Tofile.write(IND+VarName+".DFA.States["+`state`+"] = ") - Tofile.write('['+`TRANSFLAG`+']\n') - Tofile.write(IND+VarName+".DFA.maxState = "+`maxState`+"\n") + Tofile.write(IND+VarName+".DFA.States["+repr(state)+"] = ") + Tofile.write('['+repr(TRANSFLAG)+']\n') + Tofile.write(IND+VarName+".DFA.maxState = "+repr(maxState)+"\n") Tofile.write("\n\n"+IND+"# DFA transition declarations.\n") for key in keys: (fromState, TokenRep) = key TokenIndex = tokenToInt[TokenRep] - TokenArg = VarName+".IndexToToken["+`TokenIndex`+"]" + TokenArg = VarName+".IndexToToken["+repr(TokenIndex)+"]" TMap = StateTokenMap[key] TMaptype = TMap[0][0] if TMaptype == REDUCEFLAG: # reduction rulenum = TMap[0][1] - Args = "("+`fromState`+","+TokenArg+","+`rulenum`+")" + Args = "("+repr(fromState)+","+TokenArg+","+repr(rulenum)+")" Tofile.write(IND+VarName+".DFA.SetReduction"+Args+"\n") elif TMaptype == MOVETOFLAG: # MoveTo - Args = "("+`fromState`+","+TokenArg+","+`TMap[0][1]`+")" + Args = "("+repr(fromState)+","+TokenArg+","+repr(TMap[0][1])+")" Tofile.write(IND+VarName+".DFA.SetMap"+Args+"\n") else: - raise FlowError, "unexpected else (2)" + raise FlowError("unexpected else (2)") #enddef def Cleanup(self): @@ -1073,7 +1073,7 @@ Tofile.write(IND+"# You must bind the following rule names \n") Tofile.write(IND+"# to reduction interpretation functions \n") for R in RuleL: - Tofile.write(IND+"# "+VarName+".Bind("+`R.Name`+", ??function??)\n") + Tofile.write(IND+"# "+VarName+".Bind("+repr(R.Name)+", ??function??)\n") Tofile.write(IND+"#(last rule)\n") Tofile.write("\n\n"+IND+"# WARNINGS ****************************** \n") @@ -1084,7 +1084,7 @@ (kind, name) = tok if kind == TERMFLAG and tok != ENDOFFILETOKEN: Tofile.write(IND+"# "+VarName+\ - ".Addterm("+`name`+", ??regularExp??, ??function??)\n") + ".Addterm("+repr(name)+", ??regularExp??, ??function??)\n") warningPrinted = 1 if not warningPrinted: Tofile.write(IND+"# ***NONE** \n") @@ -1160,7 +1160,7 @@ moveToDict[nmoveTos] = (fromState, TokenIndex, ToState) nmoveTos = nmoveTos + 1 else: - raise FlowError, "unexpected else" + raise FlowError("unexpected else") #endfor # translate dicts to lists reducts = [None] * nreducts --- ../python3/src/zope/rdb/gadfly/idl.py (original) +++ ../python3/src/zope/rdb/gadfly/idl.py (refactored) @@ -412,7 +RefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/gftest.py 412,7 @@ ## we need to override LexDictionary to recognize :: as a SINGLE punctuation. ## (not possible using standard kjParsing, requires a special override) -import kjParser +from . import kjParser class myLexDictionary(kjParser.LexDictionary): def __init__(self): kjParser.LexDictionary.__init__(self) @@ -430,7 +430,7 @@ # default bind all rules def GrammarBuild(): - import kjParseBuild + from . import kjParseBuild idl = kjParseBuild.NullCGrammar() idl.LexD = myLexDictionary() #idl.SetCaseSensitivity(0) # grammar is not case sensitive for keywords @@ -440,7 +440,7 @@ idl.Nonterms(nonterms) #idl.comments([LISPCOMMENTREGEX]) idl.Declarerules(idlgramstring) - print "now compiling" + print("now compiling") idl.Compile() return idl --- ../python3/src/zope/rdb/gadfly/gftest.py (original) +++ ../python3/src/zope/rdb/gadfly/gftest.py (refactored) @@ -7,15 +7,15 @@ """ def test(directory): - print "testing" - from gadfly import gadfly + print("testing") + from .gadfly import gadfly connect = gadfly() connect.startup("test", directory) curs = connect.cursor() - print - print "TABLE CREATES" + print() + print("TABLE CREATES") for x in table_creates: - print x + print(x) curs.execute(x) curs.execute("create table empty (nothing varchar)") C = """ @@ -24,19 +24,19 @@ hours INTEGER, rate FLOAT) """ - print C + print(C) curs.execute(C) - print + print() C = """ CREATE TABLE accesses ( page VARCHAR, hits INTEGER, month INTEGER) """ - print C + print(C) curs.execute(C) - print - print "INSERTS" + print() + print("INSERTS") C = """ INSERT INTO work(name, hours, rate) VALUES (?, ?, ?) """ @@ -49,21 +49,21 @@ ("cliff", 26, 200.00), ("carla", 9, 3.5), ] - for x in D: print x + for x in D: print(x) curs.execute(C, D) C = "create unique index wname on work(name)" - print "Unique index:", C + print("Unique index:", C) curs.execute(C) - print "trying bad insert into unique field" + print("trying bad insert into unique field") C = "insert into work(name, hours, rate) values ('sam', 0, 0)" import sys try: curs.execute(C) except: - print "exception as expected %s(%s)" %(sys.exc_type, sys.exc_value) + print("exception as expected %s(%s)" %(sys.exc_info()[0], sys.exc_info()[1])) else: raise Exception("stop! unique index permits nonunique field") - print; print "testing introspection" + print(); print("testing introspection") itests = ["select 10*4 from dual", "select * from __table_names__", #"select * from __datadefs__", # needs formatting @@ -76,16 +76,16 @@ where c.index_name = i.index_name""", ] for C in itests: - print C - print + print(C) + print() curs.execute(C) - print curs.pp() - print - print "testing complex, neg literals in insert" + print(curs.pp()) + print() + print("testing complex, neg literals in insert") curs.execute("insert into work(name, hours, rate) values ('jo', -1, 3.1e-44-1e26j)") curs.execute("select * from work") - print curs.pp() - print "deleting jo"; print + print(curs.pp()) + print("deleting jo"); print() curs.execute("delete from work where name='jo'") C = """ INSERT INTO accesses(page, month, hits) VALUES (?, ?, ?) @@ -101,93 +101,93 @@ ("people.html", 2, 12), ("people.html", 3, 665), ] - for x in D: print x + for x in D: print(x) curs.execute(C, D) for (table, stuff) in dpairs: ins = "insert into %s values (?, ?, ?)" % table if table!="frequents": for parameters in dataseq(stuff): - print "singleinsert", table, parameters + print("singleinsert", table, parameters) curs.execute(ins, parameters) else: - print - print "multiinsert", table + print() + print("multiinsert", table) parameters = dataseq(stuff) for p in parameters: - print p - print "multiinsert..." + print(p) + print("multiinsert...") curs.execute(ins, parameters) - print;print - print - print "INDICES" + print();print() + print() + print("INDICES") for ci in indices: - print ci + print(ci) curs.execute(ci) - print - print "QUERIES" + print() + print("QUERIES") for x in workqueries: - print;print - print x + print();print() + print(x) curs.execute(x) - print curs.pp() + print(curs.pp()) statement = """select name, hours from work""" curs.execute(statement) - print "Hours worked this week" - print + print("Hours worked this week") + print() for (name,hours) in curs.fetchall(): - print "worker", name, "worked", hours, "hours" - print - print "end of work report" + print("worker", name, "worked", hours, "hours") + print() + print("end of work report") #return for x in queries: - print; print - print x + print(); print() + print(x) curs.execute(x) #for x in curs.commands: # print x all = curs.fetchall() if not all: - print "empty!" + print("empty!") else: - print curs.pp() + print(curs.pp()) #for t in all: #print t #return - print - print "DYNAMIC QUERIES" + print() + print("DYNAMIC QUERIES") for (x,y) in dynamic_queries: - print; print - print x - print "dynamic=", y + print(); print() + print(x) + print("dynamic=", y) curs.execute(x, y) #for x in curs.commands: # print x all = curs.fetchall() if not all: - print "empty!" + print("empty!") else: for t in all: - print t - print "repeat test" + print(t) + print("repeat test") from time import time for x in repeats: - print "repeating", x + print("repeating", x) now = time() curs.execute(x) - print time()-now, "first time" + print(time()-now, "first time") now = time() curs.execute(x) - print time()-now, "second time" + print(time()-now, "second time") now = time() curs.execute(x) - print time()-now, "third time" - print "*** committing work" + print(time()-now, "third time") + print("*** committing work") connect.commit() connect.close() - print; print + print(); print() return connect table_creates = [ @@ -243,11 +243,11 @@ def dataseq(s): from string import split l = split(s, "\n") - result = map(split, l) + result = list(map(split, l)) from string import atoi for l in result: l[2] = atoi(l[2]) - result = map(tuple, result) + result = list(map(tuple, result)) return result indices = [ @@ -608,100 +608,100 @@ ] def rollbacktest(directory): - print "*" * 30 - print "*** recovery test ***" - print; print; print + print("*" * 30) + print("*** recovery test ***") + print(); print(); print() import sys - from gadfly import gadfly - print "*** connecting" + from .gadfly import gadfly + print("*** connecting") connect = gadfly("test", directory) cursor = connect.cursor() connect.autocheckpoint = 0 - print "*** executing updates to commit" + print("*** executing updates to commit") for x in keep_updates: - print x + print(x) cursor.execute(x) connect.verbose=1 - print "*** COMMITTING OPERATIONS (connection set to verbose)" + print("*** COMMITTING OPERATIONS (connection set to verbose)") connect.commit() - print "*** DUMP LOG" + print("*** DUMP LOG") connect.dumplog() - print; print "*** RUNNING OPS TO ROLL BACK" + print(); print("*** RUNNING OPS TO ROLL BACK") preresults = [] for s in rollback_queries: - print; print; print s + print(); print(); print(s) try: cursor.execute(s) preresults.append(cursor.fetchall()) - print cursor.pp() + print(cursor.pp()) except: - d = sys.exc_type - print "exception", d + d = sys.exc_info()[0] + print("exception", d) preresults.append(d) - print; print "*** now updating with ops to rollback" + print(); print("*** now updating with ops to rollback") for s in rollback_updates: - print; print; print s + print(); print(); print(s) cursor.execute(s) - print; print; print "*** testing noncommitted results" + print(); print(); print("*** testing noncommitted results") for dummy in (1,2): postresults = [] for s in rollback_queries: - print s + print(s) try: cursor.execute(s) postresults.append(cursor.fetchall()) - print cursor.pp() + print(cursor.pp()) except: - d = sys.exc_type - print "*** exception", d + d = sys.exc_info()[0] + print("*** exception", d) postresults.append(d) if preresults==postresults: - print "*** same results as before uncommitted updates" + print("*** same results as before uncommitted updates") else: - print "*** differing results from before uncommitted updates" + print("*** differing results from before uncommitted updates") if dummy==1: - print; print "*** ROLLING BACK!" + print(); print("*** ROLLING BACK!") connect.rollback() - print; print "*** EMULATING RECOVERY" + print(); print("*** EMULATING RECOVERY") for s in rollback_updates: - print; print; print s + print(); print(); print(s) cursor.execute(s) for dummy in (1,2): postresults = [] for s in rollback_queries: - print s + print(s) try: cursor.execute(s) postresults.append(cursor.fetchall()) - print cursor.pp() + print(cursor.pp()) except: - d = sys.exc_type - print "*** exception", d + d = sys.exc_info()[0] + print("*** exception", d) postresults.append(d) if preresults==postresults: - print "*** same results as before uncommitted updates" + print("*** same results as before uncommitted updates") else: - print "*** differing results from before uncommitted updates" + print("*** differing results from before uncommitted updates") if dummy==1: - print "*** RESTART: DUMPLOG" + print("*** RESTART: DUMPLOG") connect.dumplog() - print "*** RESTARTING (RECOVER FROM LOG, DISCARD UNCOMMITTED)" + print("*** RESTARTING (RECOVER FROM LOG, DISCARD UNCOMMITTED)") connect.restart() def retest(directory): - print "*" * 30 - print "*** reconnect test" - from gadfly import gadfly + print("*" * 30) + print("*** reconnect test") + from .gadfly import gadfly connect = gadfly("test", directory) cursor = connect.cursor() for s in updates: - print; print - print s + print(); print() + print(s) if s in trace_updates: cursor.EVAL_DUMP = 1 cursor.execute(s) cursor.EVAL_DUMP = 0 - RefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/gfstest.py print cursor.pp() + print(cursor.pp()) #print; print "CONNECTION DATA BEFORE COMMIT" #connect.DUMP_ALL() connect.commit() @@ -714,8 +714,8 @@ import sys argv = sys.argv if len(argv)<2: - print "USAGE: python " - print " please provide a directory for test database!" + print("USAGE: python ") + print(" please provide a directory for test database!") else: directory = argv[1] test(directory) --- ../python3/src/zope/rdb/gadfly/gfstest.py (original) +++ ../python3/src/zope/rdb/gadfly/gfstest.py (refactored) @@ -54,18 +54,18 @@ argv = sys.argv command = argv[1] if command=="start": - print "attempting to start the server" - from gfserve import Server - print "making a server on", PORT, DB, DBDIR, PW, STARTUP + print("attempting to start the server") + from .gfserve import Server + print("making a server on", PORT, DB, DBDIR, PW, STARTUP) S = Server(PORT, DB, DBDIR, PW, STARTUP) - print "initializing the server" + print("initializing the server") S.init() - print "starting the server", S.connection + print("starting the server", S.connection) S.start() elif command=="shutdown": dosimple("shutdown", PW) elif command=="bogusshutdown": - print "BOGUS shutdown attempt" + print("BOGUS shutdown attempt") dosimple("shutdown", "bad password") elif command=="restart": dosimple("restart", PW) @@ -76,51 +76,51 @@ elif command=="policy_test": policy_test() else: - print "unknown command", command - print __doc__ + print("unknown command", command) + print(__doc__) def policy_test(): """test the test1 and test policies""" - print "testing non-admin policies test and test1" - from gfclient import gfclient + print("testing non-admin policies test and test1") + from .gfclient import gfclient import sys machine = socket.gethostname() conn = gfclient("test", PORT, "test", machine) cursor = conn.cursor() - print "testing test policy: nan values before:" + print("testing test policy: nan values before:") cursor.execute_prepared("getnan") for x in cursor.fetchall(): - print x - print "updating nan" + print(x) + print("updating nan") cursor.execute_prepared("updatenan", ("pabst", 4)) - print "nan after" + print("nan after") cursor.execute_prepared("getnan") for x in cursor.fetchall(): - print x - print "updating nan again" + print(x) + print("updating nan again") cursor.execute_prepared("updatenan", ("rollingrock", 1)) - print "trying an illegal update" + print("trying an illegal update") try: cursor.execute("delete from frequents") except: - print "exception", sys.exc_type, sys.exc_value - print "as expected" + print("exception", sys.exc_info()[0], sys.exc_info()[1]) + print("as expected") else: raise Exception("DAMN! illegal query apparently completed!!!") - print; print "testing policy test1"; print + print(); print("testing policy test1"); print() conn = gfclient("test1", PORT, "test1", machine) cursor = conn.cursor() - print "getting norm" + print("getting norm") cursor.execute_prepared("qlike", ("norm",)) - print cursor.description - for x in cursor.fetchall(): - print x - print "trying an illegal query again" + print(cursor.description) + for x in cursor.fetchall(): + print(x) + print("trying an illegal query again") try: cursor.execute("create table test(name varchar)") except: - print "exception", sys.exc_type, sys.exc_value - print "as expected" + print("exception", sys.exc_info()[0], sys.exc_info()[1]) + print("as expected") else: raise Exception("Damn!(2) illegal query apparentlRefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/gfsocket.py y completed") @@ -132,7 +132,7 @@ test is allowed to update likes where drinker='nan' also add prepared query dumpwork to admin_policy. """ - from gfserve import Policy + from .gfserve import Policy admin_policy["dumpwork"] = "select * from work" test1 = Policy("test1", "test1", connection, queries=0) test = Policy("test", "test", connection, queries=0) @@ -148,57 +148,57 @@ return {"test": test, "test1": test1} def doqueries(): - print "executing queries and updates" - from gfclient import gfclient + print("executing queries and updates") + from .gfclient import gfclient import sys machine = socket.gethostname() conn = gfclient("admin", PORT, PW, machine) cursor = conn.cursor() for q in admin_queries: - print;print;print q;print + print();print();print(q);print() try: cursor.execute(q) except: - print "exception in execute" - print sys.exc_type - v = sys.exc_value + print("exception in execute") + print(sys.exc_info()[0]) + v = sys.exc_info()[1] from types import TupleType, ListType if type(v) in (TupleType, ListType): - for x in v: print x + for x in v: print(x) else: - print v + print(v) else: - print "executed" + print("executed") #print q - print "description" - print cursor.description - print "results" + print("description") + print(cursor.description) + print("results") try: r = cursor.fetchall() if r is None: - print "no results" + print("no results") else: for x in r: - print x + print(x) except: - print "exception in results" - print sys.exc_type, sys.exc_value - print dir(cursor) + print("exception in results") + print(sys.exc_info()[0], sys.exc_info()[1]) + print(dir(cursor)) # try dumpwork - print; print; print "dumpwork"; print + print(); print(); print("dumpwork"); print() cursor.execute_prepared("dumpwork") for x in cursor.fetchall(): - print x + print(x) # try dynamic parameters stat = """ select distinct drinker from likes l, serves s where l.beer = s.beer and s.bar=? """ - print; print stat; print "dynamic query ?=cheers" + print(); print(stat); print("dynamic query ?=cheers") cursor.execute(stat, ("cheers",)) for x in cursor.fetchall(): - print x + print(x) admin_queries = [ """select count(*) from work""", @@ -214,12 +214,12 @@ ] def dosimple(command, pw): - print "attempting remote %s (%s) for server on local machine" % (command, pw) - from gfclient import gfclient + print("attempting remote %s (%s) for server on local machine" % (command, pw)) + from .gfclient import gfclient machine = socket.gethostname() conn = gfclient("admin", PORT, pw, machine) action = getattr(conn, command) - print action() + print(action()) if __name__=="__main__": main() --- ../python3/src/zope/rdb/gadfly/gfsocket.py (original) +++ ../python3/src/zope/rdb/gadfly/gfsocket.py (refactored) @@ -12,7 +12,7 @@ def reply_exception(exception, info, socket): """send an exception back to the client""" # any error is invisible to client - from gfserve import ServerError + from .gfserve import ServerError import sys try: reply( (EXCEPTION, (exception, info)), socket) @@ -38,7 +38,7 @@ def send_len(data, socket): """send length of data as cr terminated int rep""" - info = `len(data)`+"\n" + info = repr(len(data))+"\n" socket.send(info) def send_certified_action(actorRefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/gfserve.py _name, action, arguments, password, socket): @@ -64,12 +64,12 @@ while not done: timeout = endtime - time() if timeout<0: - raise IOError, "socket time out (1)" + raise IOError("socket time out (1)") (readable, dummy, error) = select([socket], [], [socket], timeout) if error: - raise IOError, "socket in error state" + raise IOError("socket in error state") if not readable: - raise IOError, "socket time out (2)" + raise IOError("socket time out (2)") reader.poll() done = (reader.mode==READY) return reader.data @@ -82,9 +82,9 @@ return data elif indicator==EXCEPTION: # ??? - raise EXCEPTION, data + raise EXCEPTION(data) else: - raise ValueError, "unknown indicator: "+`indicator` + raise ValueError("unknown indicator: "+repr(indicator)) # packet reader modes LEN = "LEN" @@ -117,26 +117,26 @@ def __len__(self): if self.mode is LEN: - raise ValueError, "still reading length" + raise ValueError("still reading length") return self.length def get_data(self): if self.mode is not READY: - raise ValueError, "still reading" + raise ValueError("still reading") return self.data def poll(self): mode = self.mode if mode is READY: - raise ValueError, "data is ready" + raise ValueError("data is ready") if mode is ERROR: - raise ValueError, "socket error previously detected" + raise ValueError("socket error previously detected") socket = self.socket (readable, dummy, error) = select([socket], [], [socket], 0) if error: self.socket.close() self.mode = ERROR - raise ValueError, "socket is in error state" + raise ValueError("socket is in error state") if readable: if mode is LEN: self.read_len() @@ -164,18 +164,18 @@ except: self.mode = ERROR socket.close() - raise ValueError, "bad len string? "+`len_list` + raise ValueError("bad len string? "+repr(len_list)) self.received = received self.length_remaining = length self.mode = DATA limit_len = self.limit_len if limit_len and length>limit_len: - raise ValueError, "Length too big: "+`(length, limit_len)` + raise ValueError("Length too big: "+repr((length, limit_len))) return if len(len_list)>10: self.mode = ERROR socket.close() - raise ValueError, "len_list too long: "+`len_list` + raise ValueError("len_list too long: "+repr(len_list)) len_list.append(input) if not received: (readable, dummy, error) = select(\ @@ -183,7 +183,7 @@ if error: self.mode = ERROR socket.close() - raise ValueError, "socket in error state" + raise ValueError("socket in error state") if readable: received = socket.recv(10) # remember extra data received. @@ -214,7 +214,7 @@ """generate a certificate for a string, using a password""" from md5 import new if not String: - raise ValueError, "cannot generate certificate for empty string" + raise ValueError("cannot generate certificate for empty string") taggedstring = password + String return new(taggedstring).digest() --- ../python3/src/zope/rdb/gadfly/gfserve.py (original) +++ ../python3/src/zope/rdb/gadfly/gfserve.py (refactored) @@ -65,7 +65,7 @@ import socket, gadfly -from gfsocket import \ +from .gfsocket import \ reply_exception, reply_success, Packet_Reader, certify def main(): @@ -81,24 +81,24 @@ sys.stderr.write(__doc__) return [port, db, dr, pw] = argv[1:5] - print "gfserve startup port=%s db=%s, dr=%s password omitted" % ( - port, db, dr) + print("gfserve startup port=%s db=%s, dr=%s password omitted" % ( + port, db, dr)) from string import atoi port = atoi(port) startup = None if nargs>5: startup = argv[5] - print "gfserve: load startup module %s" % startup + print("gfserve: load startup module %s" % startup) S = Server(port, db, dr, pw, startup) S.init() - print "gfserve: server initialized, setting stderr=stdout" + print("gfserve: server initialized, setting stderr=stdout") sys.stderr = sys.stdout - print "gfserve: starting the server" + print("gfserve: starting the server") S.start() done = 1 finally: if not done: - print __doc__ + print(__doc__) # general error ServerError = "ServerError" @@ -176,7 +176,7 @@ def start(self): """after init, listen for commands.""" - from gfsocket import READY, ERROR, unpack_certified_data + from .gfsocket import READY, ERROR, unpack_certified_data import sys verbose = self.verbose socket = self.socket @@ -189,21 +189,20 @@ try: # main loop if self.check_loop<0: self.check_loop=5 - for i in xrange(self.check_loop): + for i in range(self.check_loop): if verbose: - print "main loop on", socket, connection + print("main loop on", socket, connection) # checkpoint loop sockets = [socket] if pending_connects: - sockets = sockets + pending_connects.keys() + sockets = sockets + list(pending_connects.keys()) # wait for availability if verbose: - print "server: waiting for connection(s)" + print("server: waiting for connection(s)") (readables, dummy, errors) = select(\ sockets, [], sockets[:], self.select_timeout) if socket in errors: - raise ServerError, \ - "listening socket in error state: aborting" + raise ServerError("listening socket in error state: aborting") # clean up error connection sockets for s in errors: del pending_connects[s] @@ -213,7 +212,7 @@ readables.remove(socket) (conn, addr) = socket.accept() if 1 or verbose: - print "connect %s" % (addr,) + print("connect %s" % (addr,)) reader = Packet_Reader(conn) pending_connects[conn] = reader # poll readable pending connections, if possible @@ -235,7 +234,7 @@ pass # AFTER DEBUG CHANGE THIS! # in blocking mode, service ready request, # commit on no error - for conn in pending_connects.keys(): + for conn in list(pending_connects.keys()): reader = pending_connects[conn] mode = reader.mode if mode == ERROR: @@ -250,58 +249,55 @@ (actor_name, cert, md) = \ unpack_certified_data(data) # find the policy for this actor - if not policies.has_key(actor_name): + if actor_name not in policies: if verbose: - print "no such policy: "+actor_name + print("no such policy: "+actor_name) reply_exception(NameError, "no such policy: "+actor_name, conn) policy = None else: if verbose: - print "executing for", actor_name + print("executing for", actor_name) policy = policies[actor_name] policy.action(cert, md, conn) except SHUTDOWN: if policy is admin_policy: - print \ - "shutdown on admin policy: terminating" + print("shutdown on admin policy: terminating") connection.close() socket.close() # NORMAL TERMINATION: return except RESTART: if policy is admin_policy: - print \ - "restart from admin policy: restarting connection" + print("restart from admin policy: restarting connection") connection.restart() except CHECKPOINT: if policy is admin_policy: - print \ - "checkpoint from admin policy: checkpointing now." + print("checkpoint from admin policy: checkpointing now.") connection.checkpoint() except: - tb = sys.exc_traceback - info = "%s %s" % (sys.exc_type, - str(sys.exc_value)) + tb = sys.exc_info()[2] + info = "%s %s" % (sys.exc_info()[0], + str(sys.exc_info()[1])) if verbose: from traceback import print_tb print_tb(tb) - print "error in executing action: "+info + print("error in executing action: "+info) reply_exception( ServerError, "exception: "+info, conn) #break # stop after first request serviced! except: # except of main while 1 try statement - tb = sys.exc_traceback - ty = sys.exc_type - va = sys.exc_value - print "UNEXPECTED EXCEPTION ON MAINLOOP" + tb = sys.exc_info()[2] + ty = sys.exc_info()[0] + va = sys.exc_info()[1] + print("UNEXPECTED EXCEPTION ON MAINLOOP") from traceback import print_tb print_tb(tb) - print "exception:", ty, va + print("exception:", ty, va) if not pending_connects: pending_connects = {} - print "server: checkpointing" + print("server: checkpointing") connection.checkpoint() def init(self): @@ -319,18 +315,18 @@ verbose = self.verbose import socket, sys if verbose: - print "initializing listener socket" + print("initializing listener socket") sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: if verbose: - print "trying to set REUSEADDR",\ + print("trying to set REUSEADDR",\ sock.getsockopt(socket.SOL_SOCKET, - socket.SO_REUSEADDR) + socket.SO_REUSEADDR)) sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) except: if verbose: - print "set of REUSEADDR failed", sys.exc_type, sys.exc_value + print("set of REUSEADDR failed", sys.exc_info()[0], sys.exc_info()[1]) pass sock.bind((self.HOST, self.port)) sock.listen(self.BACKLOG) @@ -339,7 +335,7 @@ def getconnection(self): """get the db connection""" - from gadfly import gadfly + from .gadfly import gadfly c = self.connection = gadfly(self.db, self.dr) # don't automatically checkpoint upon commit c.autocheckpoint = 0 @@ -385,7 +381,7 @@ set queries to allow general accesses (unrestricted) """ if self.verbose: - print "policy.__init__", name + print("policy.__init__", name) self.general_queries = queries self.name = name self.password = password @@ -396,23 +392,23 @@ def __setitem__(self, name, value): if self.verbose: - print "policy", self.name, ":", (name, value) + print("policy", self.name, ":", (name, value)) from types import StringType if type(name) is not StringType or type(value) is not StringType: - raise ValueError, "cursor names and contents must be strings" + raise ValueError("cursor names and contents must be strings") self.named_accesses[name] = value def execute_named(self, name, params=None): """execute a named (prepared) sql statement""" if self.verbose: - print "policy", self.name, "executes", name, params + print("policy", self.name, "executes", name, params) na = self.named_accesses pc = self.prepared_cursors con = self.connection - if not na.has_key(name): - raise PreparedNameError, "unknown access name: %s" % name + if name not in na: + raise PreparedNameError("unknown access name: %s" % name) stat = na[name] - if pc.has_key(name): + if name in pc: # get prepared query cursor = pc[name] else: @@ -423,7 +419,7 @@ def execute(self, cursor, statement, params=None): """execute a statement in a cursor""" if self.verbose: - print "policy", self.name, "executes", statement, params + print("policy", self.name, "executes", statement, params) cursor.execute(statement, params) # immediate commit! self.connection.commit() @@ -438,7 +434,7 @@ def execute_any_statement(self, statement, params=None): """execute any statement.""" if self.verbose: - print "policy", self.name, "executes", statement, params + print("policy", self.name, "executes", statement, params) con = self.connection cursor = con.cursor() return self.execute(cursor, statement, params) @@ -447,10 +443,10 @@ """perform a database/server action after checking certificate""" verbose = self.verbose if verbose: - print "policy", self.name, "action..." + print("policy", self.name, "action...") # make sure the certificate checks out if not self.certify(datastring, certificate, self.password): - raise ServerError, "password certification failure" + raise ServerError("password certification failure") # unpack the datastring from marshal import loads test = loads(datastring) @@ -462,27 +458,27 @@ action = "policy_"+action myaction = getattr(self, action) try: - data = apply(myaction, moredata+(socket,)) + data = myaction(*moredata+(socket,)) #self.reply_success(data) RefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/gfintrospect.py # pass up server level requests as exceptions - except SHUTDOWN, detail: - raise SHUTDOWN, detail - except RESTART, detail: - raise RESTART, detail - except CHECKPOINT, detail: - raise CHECKPOINT, detail + except SHUTDOWN as detail: + raise SHUTDOWN(detail) + except RESTART as detail: + raise RESTART(detail) + except CHECKPOINT as detail: + raise CHECKPOINT(detail) except: - tb = sys.exc_traceback - exceptiondata = "%s\n%s" %(sys.exc_type, - str(sys.exc_value)) + tb = sys.exc_info()[2] + exceptiondata = "%s\n%s" %(sys.exc_info()[0], + str(sys.exc_info()[1])) if verbose: from traceback import print_tb print_tb(tb) self.reply_exception(ServerError, "unexpected exception: "+exceptiondata, socket) - raise ServerError, exceptiondata + raise ServerError(exceptiondata) else: - raise ServerError, "unknown action: "+`action` + raise ServerError("unknown action: "+repr(action)) def certify(self, datastring, certificate, password): # hook for subclassing @@ -490,21 +486,21 @@ def policy_SHUTDOWN(self, socket): self.reply_success("attempting server shutdown", socket) - raise SHUTDOWN, "please shut down the server" + raise SHUTDOWN("please shut down the server") def policy_RESTART(self, socket): self.reply_success("attempting server restart", socket) - raise RESTART, "please restart the server" + raise RESTART("please restart the server") def policy_CHECKPOINT(self, socket): self.reply_success("attempting server checkpoint", socket) - raise CHECKPOINT, "please checkpoint the server" + raise CHECKPOINT("please checkpoint the server") def policy_EXECUTE_PREPARED(self, name, dyn, socket): try: result = self.execute_named(name, dyn) self.reply_success(result, socket) - except PreparedNameError, detail: + except PreparedNameError as detail: self.reply_exception(PreparedNameError, "no such prepared statement: "+name, socket) @@ -514,7 +510,7 @@ self.reply_exception(ServerError, "general statements disallowed on this policy", socket) - raise ServerError, "illegal statement attempt for: "+self.name + raise ServerError("illegal statement attempt for: "+self.name) result = self.execute_any_statement(stat, dyn) self.reply_success(result, socket) --- ../python3/src/zope/rdb/gadfly/gfintrospect.py (original) +++ ../python3/src/zope/rdb/gadfly/gfintrospect.py (refactored) @@ -2,7 +2,7 @@ View based introspection and extension views """ -import gfdb0 +from . import gfdb0 class RemoteView(gfdb0.View): @@ -47,21 +47,21 @@ def attributes(self): from string import upper - return map(upper, self.column_names) + return list(map(upper, self.column_names)) def rows(self, andseqs=0): cached_rows = self.cached_rows if cached_rows is None: tups = list(self.listing()) - from sqlsem import kjbuckets + from .sqlsem import kjbuckets undump = kjbuckets.kjUndump attributes = tuple(self.attributes()) - for i in xrange(len(tups)): + for i in range(len(tups)): tups[i] = undump(attributes, tups[i]) cached_rows = self.cached_rows = tups tups = cached_rows[:] if andseqs: - return (tups, range(len(tups))) + return (tups, list(range(len(tups)))) else: return tups @@ -91,11 +91,11 @@ self.dict = dict def listing(self)RefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/gfinstall.py RefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/gfdb0.py : - items = self.dict.items() + items = list(self.dict.items()) if self.mapstring: def mapper(item): return tuple(map(str, item)) - return map(mapper, items) + return list(map(mapper, items)) else: return items @@ -108,7 +108,7 @@ def relbind(self, db, atts): rels = db.rels dict = {} - for relname in rels.keys(): + for relname in list(rels.keys()): dict[relname] = rels[relname].is_view self.dict = dict return self @@ -123,7 +123,7 @@ def relbind(self, db, atts): rels = db.rels dict = {} - for relname in rels.keys(): + for relname in list(rels.keys()): rel = rels[relname] if not rel.is_view: index_list = rels[relname].index_list @@ -135,7 +135,7 @@ def listing(self): L = [] dict = self.dict - keys = dict.keys() + keys = list(dict.keys()) for k in keys: L.append( (k,) + dict[k] ) return L @@ -159,7 +159,7 @@ def relbind(self, db, atts): rels = db.rels pairs = [] - for relname in rels.keys(): + for relname in list(rels.keys()): for att in rels[relname].attributes(): pairs.append( (relname, att) ) self.pairs = pairs @@ -176,7 +176,7 @@ def relbind(self, db, atts): indices = db.indices pairs = [] - for iname in indices.keys(): + for iname in list(indices.keys()): for att in indices[iname].attributes(): pairs.append( (iname, att) ) self.pairs = pairs --- ../python3/src/zope/rdb/gadfly/gfinstall.py (original) +++ ../python3/src/zope/rdb/gadfly/gfinstall.py (refactored) @@ -19,7 +19,7 @@ marfile = "sql.mar" modfile = "sqlwhere.py" -print __doc__ +print(__doc__) from os import getcwd, path cwd = getcwd() @@ -36,13 +36,13 @@ #where = cwd + "/" + marfile wheremod = path.join(cwd, modfile) where = path.join(cwd, marfile) -print -print "now creating", wheremod +print() +print("now creating", wheremod) f = open(wheremod, "w") -f.write( modtemplate % (`where`,) ) +f.write( modtemplate % (repr(where),) ) f.close() -from sqlgen import BuildSQL, getSQL +from .sqlgen import BuildSQL, getSQL import sys argv = sys.argv force = 0 @@ -53,14 +53,14 @@ try: sql = getSQL() except: - print "exception", sys.exc_type, sys.exc_value - print "during load of SQL grammar structures." - print "Apparently the SQL grammar requires regeneration" + print("exception", sys.exc_info()[0], sys.exc_info()[1]) + print("during load of SQL grammar structures.") + print("Apparently the SQL grammar requires regeneration") force = 1 if force: - print "now generating parser structures (this might take a while)..." + print("now generating parser structures (this might take a while)...") #where = cwd + "/" + marfile - print "building in", where + print("building in", where) sql = BuildSQL(where) -print -print "done." +print() +print("done.") --- ../python3/src/zope/rdb/gadfly/gfdb0.py (original) +++ ../python3/src/zope/rdb/gadfly/gfdb0.py (refactored) @@ -31,7 +31,7 @@ for x in data: recursive_dump(x, p2) except: - print prefix, data + print(prefix, data) def checksum_dump(data, file): """checksum and dump marshallable data to file""" @@ -49,7 +49,7 @@ checkpair = load(file) (check, storage) = checkpair if checksum(storage)!=check: - raise StorageError, "data load checksum fails" + raise StorageError("data load checksum fails") data = loads(storage) return data @@ -99,9 +99,9 @@ if log: self.is_scratch = log.is_scratch if shadowing and not log: - raise ValueError, "shadowing db requires log" + raise ValueError("shadowing db requires log") if verbose: - print "Database0 init" + print("Database0 init") if log: log.verbose = 1 if shadowing: @@ -117,7 +117,7 @@ self.set_introspection() def set_introspection(self): - import gfintrospect + from . import gfintrospect self["dual"] = gfintrospect.DualView() self["__table_names__"] = gfintrospect.RelationsView() self["__datadefs__"] = gfintrospect.DataDefsView() @@ -150,48 +150,48 @@ #if log and not log.is_scratch: #if verbose: print "committing log" #self.log.commit(verbose) - if verbose: print "committing rels" + if verbose: print("committing rels") self.rels.commit(verbose) - if verbose: print "committing datadefs" + if verbose: print("committing datadefs") self.datadefs.commit(verbose) - if verbose: print "committing indices" + if verbose: print("committing indices") self.indices.commit(verbose) st = self.shadowing.touched if not st: if verbose: "print setting touched", self.touched self.shadowing.touched = self.touched elif verbose: - print "shadowed database is touched" + print("shadowed database is touched") elif verbose: - print "db0: commit on nonshadow instance" + print("db0: commit on nonshadow instance") def __setitem__(self, name, relation): """bind a name (uppercased) to tuples as a relation.""" from string import upper - if self.indices.has_key(name): - raise NameError, "cannot set index" + if name in self.indices: + raise NameError("cannot set index") self.rels[ upper(name) ] = relation - if self.verbose: print "db0 sets rel", name + if self.verbose: print("db0 sets rel", name) def add_index(self, name, index): - if self.rels.has_key(name): - raise NameError, `name`+": is relation" + if name in self.rels: + raise NameError(repr(name)+": is relation") self.indices[name] = index - if self.verbose: print "db0 sets index", name + if self.verbose: print("db0 sets index", name) def drop_index(self, name): - if self.verbose: print "db0 drops index", name + if self.verbose: print("db0 drops index", name) del self.indices[name] def __getitem__(self, name): - if self.verbose: print "db0 gets rel", name + if self.verbose: print("db0 gets rel", name) from string import upper return self.rels[upper(name)] def get_for_update(self, name): """note: does not imply updates, just possibility of them""" verbose = self.verbose - if verbose: print "db0 gets rel for update", name + if verbose: print("db0 gets rel for update", name) shadowing = self.shadowing gotit = 0 from string import upper @@ -214,11 +214,11 @@ test = rels[name] gotit = 1 if self.readonly: - raise ValueError, "cannot update, db is read only" + raise ValueError("cannot update, db is read only") elif test.is_view: - raise ValueError, "VIEW %s cannot be updated" % name + raise ValueError("VIEW %s cannot be updated" % name) elif shadowing and not gotit: - if verbose: print "db0: making shadow for", name + if verbose: print("db0: making shadow for", name) if test.is_shadow: return test shadow = Relation0(()) shadow = shadow.shadow(test, self.log, name, self) @@ -228,18 +228,18 @@ return test def __delitem__(self, name): - if self.verbose: print "db0 drops rel", name + if self.verbose: print("db0 drops rel", name) from string import upper del self.rels[upper(name)] def relations(self): - return self.rels.keys() + return list(self.rels.keys()) def has_relation(self, name): - return self.rels.has_key(name) + return name in self.rels def getdatadefs(self): - result = self.datadefs.values() + result = list(self.datadefs.values()) # sort to make create tables first, eg result.sort() return result @@ -247,30 +247,30 @@ def add_datadef(self, name, defn, logit=1): """only log the datadef if logit is set, else ignore redefinitions""" dd = self.datadefs - if logit and dd.has_key(name): - raise KeyError, `name`+": already defined" + if logit and name in dd: + raise KeyError(repr(name)+": already defined") if logit: self.touched = 1 dd[name] = defn def has_datadef(self, name): - return self.datadefs.has_key(name) + return name in self.datadefs def drop_datadef(self, name): - if self.verbose: print "db0 drops datadef",name + if self.verbose: print("db0 drops datadef",name) dd = self.datadefs #print dd.keys() - if not dd.has_key(name): - raise KeyError, `name`+": no such element" + if name not in dd: + raise KeyError(repr(name)+": no such element") del dd[name] def __repr__(self): l = [] from string import join - l.append("INDICES: "+`self.indices.keys()`) - for (name, ddef) in self.datadefs.items(): + l.append("INDICES: "+repr(list(self.indices.keys()))) + for (name, ddef) in list(self.datadefs.items()): l.append("data definition %s::\n%s" % (name, ddef)) - for (name, rel) in self.rels.items(): + for (name, rel) in list(self.rels.items()): l.append(name + ":") l.append(rel.irepr()) return join(l, "\n\n") @@ -292,17 +292,17 @@ for (name,alias) in fromlist: name = upper(name) alias = upper(alias) - if relseen.has_key(alias): - raise NameError, `alias` + ": bound twice in from list" + if alias in relseen: + raise NameError(repr(alias) + ": bound twice in from list") relseen[alias]=alias try: therel = rels[name] except KeyError: - raise NameError, `name` + " no such relation in DB" + raise NameError(repr(name) + " no such relation in DB") relbindings[alias] = therel for attname in therel.attributes(): - if not ambiguous_atts.has_key(attname): - if attbindings.has_key(attname): + if attname not in ambiguous_atts: + if attname in attbindings: oldrel = attbindings[attname] oldbind = (oldrel, attname) ambiguous[ "%s.%s" % oldbind] = oldbind @@ -330,7 +330,7 @@ def __init__(self, dbname, directory): """directory must exist.""" - if self.verbose: print "fs0 init:", dbname, directory + if self.verbose: print("fs0 init:", dbname, directory) self.dbname = dbname self.directory = directory self.relation_implementation = Relation0 @@ -342,30 +342,30 @@ logfile = self.logfilename() blogfile = self.backup_logfilename() verbose = self.verbose - if verbose: print "fs0 load, checking", logfile + if verbose: print("fs0 load, checking", logfile) try: testlog = open(logfile, "rb") - if verbose: print "fs0: opened", testlog + if verbose: print("fs0: opened", testlog) testlog.close() testlog = open(blogfile, "rb") testlog.close() testlog = None except: recovery_mode = self.recovery_mode = 0 - if verbose: print "recovery not needed" + if verbose: print("recovery not needed") else: recovery_mode = self.recovery_mode = 1 - if verbose: print "FS0 RECOVERY MODE LOAD!" + if verbose: print("FS0 RECOVERY MODE LOAD!") resultdb = Database0() resultdb.is_scratch = forscratch commands = self.get_initstatements() #commands = parser.DoParse1(initstatements) for command in commands: - if verbose: print "fs0 evals", command + if verbose: print("fs0 evals", command) command.relbind(resultdb) command.eval() for name in resultdb.relations(): - if verbose: print "fs0 loads rel", name + if verbose: print("fs0 loads rel", name) rel = resultdb[name] if rel.is_view: # don't need to load views @@ -373,13 +373,13 @@ rel.set_empty() try: data = self.get_relation(name) - except StorageError, detail: - raise StorageError, "load failure %s: %s" % (name, detail) + except StorageError as detail: + raise StorageError("load failure %s: %s" % (name, detail)) attsin = tuple(data.attributes()) attsout = tuple(rel.attributes()) if attsin!=attsout: - raise StorageError, "rel %s: atts %s don't match %s" % ( - name, attsin, attsout) + raise StorageError("rel %s: atts %s don't match %s" % ( + name, attsin, attsout)) rel.add_tuples( data.rows() ) # in sync! rel.touched = 0 @@ -387,7 +387,7 @@ resultdb.touched = 0 # do recovery, if needed if recovery_mode: - if verbose: print "fs0 recovering from logfile", logfile + if verbose: print("fs0 recovering from logfile", logfile) # restart the log file only if db is not scratch restart = not forscratch Log = DB_Logger(logfile, blogfile) @@ -399,7 +399,7 @@ Log.shutdown() Log = None del_file(logfile) - if verbose: print "FS0: dumping database" + if verbose: print("FS0: dumping database") self.dump(resultdb) Log = resultdb.log = DB_Logger(logfile, blogfile) Log.startup() @@ -441,8 +441,7 @@ f = open(self.relfilename(name), "rb") rel.load(f) else: - raise StorageError, \ - "fs: could not unpack backup rel file or rel file in recovery mode: "+name + raise StorageError("fs: could not unpack backup rel file or rel file in recovery mode: "+name) return rel def dbfilename(self): @@ -471,7 +470,7 @@ def get_initstatements(self): f = self.get_initstat_file("rb") if self.verbose: - print "init statement from file", f + print("init statement from file", f) try: data = checksum_undump(f) except StorageError: @@ -479,11 +478,10 @@ f = open(self.dbfilename, "rb") data = checksum_undump(f) else: - raise StorageError, \ - "could not unpack ddf backup or ddf file in recovery mode: "+self.dbname + raise StorageError("could not unpack ddf backup or ddf file in recovery mode: "+self.dbname) f.close() - from sqlsem import deserialize - stats = map(deserialize, data) + from .sqlsem import deserialize + stats = list(map(deserialize, data)) return stats def dump(self, db): @@ -492,20 +490,20 @@ # first thing: back up the log backup_file(self.logfilename(), self.backup_logfilename()) verbose = self.verbose - if verbose: print "fs0: checkpointing db" + if verbose: print("fs0: checkpointing db") if db.is_scratch or db.readonly: # don't need to do anything. - if verbose: print "fs0: scratch or readonly, returning" + if verbose: print("fs0: scratch or readonly, returning") return log = db.log if log: log.commit() if verbose: - print "DEBUG LOG TRACE" + print("DEBUG LOG TRACE") log.dump() log.shutdown() if db.touched: - if verbose: print "fs0: db touched, backing up ddf file" + if verbose: print("fs0: db touched, backing up ddf file") backup_file(self.dbfilename(), self.backup_dbfilename()) relations = db.relations() @@ -513,34 +511,34 @@ rel = db[r] #print r if rel.touched: - if verbose: print "fs0: backing up touched rel", r + if verbose: print("fs0: backing up touched rel", r) backup_file(self.relfilename(r), self.backup_relfilename(r)) for r in relations: - if verbose: print "fs0: dumping relations now" + if verbose: print("fs0: dumping relations now") self.dumprelation(r, db[r]) - if verbose: print "fs0: dumping datadefs now" + if verbose: print("fs0: dumping datadefs now") self.dumpdatadefs(db) # del of logfile signals successful commit. - if verbose: print "fs0: successful dump, deleting log file" + if verbose: print("fs0: successful dump, deleting log file") logfilename = self.logfilename() blogfilename = self.backup_logfilename() del_file(logfilename) del_file(blogfilename) if db.touched: - if verbose: print "fs0: deleting backup ddf file" + if verbose: print("fs0: deleting backup ddf file") del_file(self.backup_dbfilename()) db.touched = 0 for r in relations: rel = db[r] if rel.touched: - if verbose: print "fs0: deleting rel backup", r + if verbose: print("fs0: deleting rel backup", r) del_file(self.backup_relfilename(r)) rel.touched = 0 - if verbose: print "fs0: restarting db log" + if verbose: print("fs0: restarting db log") log = db.log = DB_Logger(logfilename, blogfilename) log.startup() - if verbose: print "fs0: dump complete" + if verbose: print("fs0: dump complete") self.recovery_mode = 0 def dumprelation(self, name, rel, force=0): @@ -549,7 +547,7 @@ if (force or rel.touched) and not rel.is_view: fn = self.relfilename(name) if self.verbose: - print "dumping touched rel", name, "to", fn + print("dumping touched rel", name, "to", fn) f = open(fn, "wb") rel.dump(f) @@ -561,8 +559,8 @@ fn = self.dbfilename() f = open(fn, "wb") datadefs = db.getdatadefs() - from sqlsem import serialize - datadefsd = map(serialize, datadefs) + from .sqlsem import serialize + datadefsd = list(map(serialize, datadefs)) #for (defn, ser) in map(None, datadefs, datadefsd): #print defn #print ser @@ -580,7 +578,7 @@ is_view = 0 # Relation0 is not a view def __init__(self, attribute_names, tuples=None, filter=None): - from sqlsem import kjbuckets + from .sqlsem import kjbuckets self.indices = kjbuckets.kjGraph() self.index_list = [] self.attribute_names = attribute_names @@ -635,7 +633,7 @@ count = 0 tt = type from types import IntType - for i in xrange(len(rows)): + for i in range(len(rows)): this = rows[i] if this is not None and tt(this) is not IntType: newrows[count] = rows[i].dump(attributes) @@ -650,9 +648,9 @@ attributes = rows[-1] self.attribute_names = attributes rows = rows[:-1] - from sqlsem import kjbuckets + from .sqlsem import kjbuckets undump = kjbuckets.kjUndump - for i in xrange(len(rows)): + for i in range(len(rows)): rows[i] = undump(attributes, rows[i]) self.set_empty() self.add_tuples(rows) @@ -678,8 +676,8 @@ # does not "touch" the relation name = index.name if verbosity: - print "rel.drop_index", index - print "...", self.indices, self.index_list + print("rel.drop_index", index) + print("...", self.indices, self.index_list) indices = self.indices for a in index.attributes(): # contorted since one index be clone of the other. @@ -693,11 +691,11 @@ def choose_index(self, attributes): """choose an index including subset of attributes or None""" - from sqlsem import kjbuckets + from .sqlsem import kjbuckets kjSet = kjbuckets.kjSet atts = kjSet(attributes) #print "choosing index", atts - indices = (atts * self.indices).values() + indices = list((atts * self.indices).values()) choice = None for index in indices: indexatts = index.attributes() @@ -731,16 +729,16 @@ list_rep.append(rlist) # compute maxen for formatting maxen = [0] * len(atts) - for i in xrange(len(atts)): + for i in range(len(atts)): for l in list_rep: maxen[i] = max(maxen[i], len(l[i])) - for i in xrange(len(atts)): + for i in range(len(atts)): mm = maxen[i] for l in list_rep: old = l[i] l[i] = old + (" " * (mm-len(old))) from string import join - for i in xrange(len(list_rep)): + for i in range(len(list_rep)): list_rep[i] = join(list_rep[i], " | ") first = list_rep[0] list_rep.insert(1, "=" * len(first)) @@ -748,7 +746,7 @@ def irepr(self): List = [self] + list(self.index_list) - List = map(str, List) + List = list(map(str, List)) from string import join return join(List, "\n") @@ -763,7 +761,7 @@ db.drop_datadef(name) db.drop_index(name) self.index_list = [] - from sqlsem import kjbuckets + from .sqlsem import kjbuckets self.indices = kjbuckets.kjGraph() def regenerate_indices(self): @@ -775,13 +773,13 @@ def add_tuples(self, tuples): if not tuples: return - tuples = filter(self.filter, tuples) + tuples = list(filter(self.filter, tuples)) oldtuples = self.tuples first = len(oldtuples) oldtuples[first:] = list(tuples) last = len(oldtuples) for index in self.index_list: - index.add_tuples(tuples, xrange(first,last)) + index.add_tuples(tuples, range(first,last)) self.touched = 1 def attributes(self): @@ -792,7 +790,7 @@ # short cut if 0 not in tups: if andseqnums: - return (tups, xrange(len(tups))) + return (tups, range(len(tups))) else: return tups tt = type @@ -800,7 +798,7 @@ result = list(self.tuples) if andseqnums: seqnums = result[:] count = 0 - for i in xrange(len(result)): + for i in range(len(result)): t = result[i] if tt(t) is not IntType: result[count] = t @@ -831,7 +829,7 @@ mytups = self.tuples for index in self.index_list: index.erase_tuples(seqnums, mytups) - for i in xrange(len(seqnums)): + for i in range(len(seqnums)): seqnum = seqnums[i] mytups[seqnum] = tups[i] for index in self.index_list: @@ -867,7 +865,7 @@ self.cached_rows = None def UNDEFINED_OP_FOR_VIEW(*args, **kw): - raise ValueError, "operation explicitly undefined for view object" + raise ValueError("operation explicitly undefined for view object") shadow = dump = load = add_index = drop_index = set_empty = \ add_tuples = erase_tuples = reset_tuples = UNDEFINED_OP_FOR_VIEW @@ -889,7 +887,7 @@ selection = self.selection = selection.relbind(db) namelist = self.namelist if namelist is not None: - from sqlsem import kjbuckets + from .sqlsem import kjbuckets target_atts = selection.attributes() if len(namelist)!=len(target_atts): raise "select list and namelist don't match in %s"%name @@ -913,7 +911,7 @@ for i in range(len(cached_rows)): cached_rows[i] = cached_rows[i].remap(translate) if andseqs: - return (cached_rows[:], range(len(cached_rows))) + return (cached_rows[:], list(range(len(cached_rows)))) else: return cached_rows[:] @@ -942,9 +940,9 @@ rdseqnums = result.dseqnums myindex = self.index mydseqnums = self.dseqnums - for k in myindex.keys(): + for k in list(myindex.keys()): rindex[k] = myindex[k][:] - for k in mydseqnums.keys(): + for k in list(mydseqnums.keys()): rdseqnums[k] = mydseqnums[k][:] return result @@ -959,7 +957,7 @@ atts = self.atts dump = tuple.dump(atts) index = self.index - if index.has_key(dump): + if dump in index: return (index[dump], self.dseqnums[dump]) else: return ((), ()) @@ -974,7 +972,7 @@ index = self.index dseqnums = self.dseqnums test = index.has_key - for i in xrange(len(tuples)): + for i in range(len(tuples)): tup = tuples[i] seqnum = seqnums[i] dump = tup.dump(atts) @@ -985,8 +983,8 @@ #print "unique", unique #print "bucket", bucket if unique and bucket: - raise StorageError, "uniqueness violation: %s %s" %( - dump, self) + raise StorageError("uniqueness violation: %s %s" %( + dump, self)) bucket.append(tup) dseqnums[dump].append(seqnum) else: @@ -1011,7 +1009,7 @@ self.shadowed = shadowing shadow = self.shadow = {} self.touched = {} - for key in shadowing.keys(): + for key in list(shadowing.keys()): shadow[key] = shadowing[key] self.value_transform = value_transform # defeats inheritance! careful! @@ -1021,7 +1019,7 @@ self.has_key = shadow.has_key def is_shadowed(self, name): - return self.touched.has_key(name) + return name in self.touched def __len__(self): return len(self.shadow) @@ -1034,21 +1032,21 @@ shadowed = self.shadowed shadow = self.shadow value_transform = self.value_transform - keys = shadowed.keys() + keys = list(shadowed.keys()) if verbose: - print "shadowdict oldkeys", keys + print("shadowdict oldkeys", keys) for k in keys: del shadowed[k] - keys = shadow.keys() + keys = list(shadow.keys()) if verbose: - print "shadowdict newkeys", keys - for k in shadow.keys(): + print("shadowdict newkeys", keys) + for k in list(shadow.keys()): value = shadow[k] if value_transform is not None: try: value = value_transform(value) except: - raise Exception("transform fails (" + sys.exc_type + ", " + sys.exc_value + ", " + k + ", " + value + ")") + raise Exception("transform fails (" + sys.exc_info()[0] + ", " + sys.exc_info()[1] + ", " + k + ", " + value + ")") shadowed[k] = value self.touched = {} @@ -1081,13 +1079,13 @@ attributes = tuple(rel.attributes()) ltuples = len(tuples) data = list(tuples) - for i in xrange(ltuples): + for i in range(ltuples): tdata = tuples[i].dump(attributes) data[i] = tdata self.data = tuple(data) def __repr__(self): from string import join - datarep = map(repr, self.data) + datarep = list(map(repr, self.data)) datarep = join(datarep, "\n ") return "add tuples to %s\n %s\n\n" % (self.to_rel, datarep) def marshaldata(self): @@ -1104,9 +1102,9 @@ rel = db[name] attributes = tuple(rel.attributes()) tuples = list(data) - from sqlsem import kjbuckets + from .sqlsem import kjbuckets undump = kjbuckets.kjUndump - for i in xrange(len(tuples)): + for i in range(len(tuples)): tuples[i] = undump(attributes, tuples[i]) rel.add_tuples(tuples) @@ -1129,14 +1127,14 @@ def set_data(self, tups, seqnums, rel): attributes = tuple(rel.attributes()) dtups = list(tups) - for i in xrange(len(dtups)): + for i in range(len(dtups)): dtups[i] = dtups[i].dump(attributes) self.data = (tuple(dtups), tuple(seqnums)) def __repr__(self): (dtups, seqnums) = self.data pairs = map(None, seqnums, dtups) from string import join - datarep = map(repr, pairs) + datarep = list(map(repr, pairs)) datarep = join(datarep, " \n") return "Reset tuples in %s\n %s\n\n" % (self.to_rel, datarep) def eval(self, dyn=None): @@ -1145,9 +1143,9 @@ tups = list(dtups) rel = db[self.to_rel] attributes = tuple(rel.attributes()) - from sqlsem import kjbuckets + from .sqlsem import kjbuckets undump = kjbuckets.kjUndump - for i in xrange(len(dtups)): + for i in range(len(dtups)): tups[i] = undump(attributes, dtups[i]) rel.reset_tuples(tups, seqnums) @@ -1182,7 +1180,7 @@ if not self.is_scratch: self.deferred.append(operation) if verbose: - print "tid logs", tid, operation + print("tid logs", tid, operation) def flush(self): verbose = self.verbose @@ -1196,25 +1194,25 @@ db_log.log(operation, tid) self.dirty = 1 elif verbose: - print "scratch log ignored", tid, operation + print("scratch log ignored", tid, operation) def commit(self, verbose=0): verbose = self.verbose or verbose tid = self.transactionid - if verbose: print "committing trans log", tid + if verbose: print("committing trans log", tid) if self.is_scratch: if verbose: - print "scratch commit ignored", tid + print("scratch commit ignored", tid) return if not self.dirty: if verbose: - print "nondirty commit", tid + print("nondirty commit", tid) return self.flush() db_log = self.db_log db_log.commit(verbose, tid) if verbose: - print "transaction is considered recoverable", tid + print("transaction is considered recoverable", tid) class DB_Logger: """quick and dirty global db logger.""" @@ -1228,14 +1226,14 @@ self.file = None self.dirty = 0 if self.verbose: - print id(self), "created DB_Logger on", self.filename + print(id(self), "created DB_Logger on", self.filename) def __repr__(self): return "DB_Logger(%s)" % self.filename def startup(self): if self.verbose: - print id(self), "preparing", self.filename + print(id(self), "preparing", self.filename) # open happens automagically #self.file = open(self.filename, "wb") self.clear() @@ -1243,7 +1241,7 @@ def shutdown(self): if self.verbose: - print id(self), "shutting down log", self.filename + print(id(self), "shutting down log", self.filename) file = self.file if file: file.close() @@ -1251,13 +1249,13 @@ def clear(self): if self.verbose: - print id(self), "clearing" + print(id(self), "clearing") self.shutdown() del_file(self.filename) def restart(self): if self.verbose: - print id(self), "restarting log file", self.filename + print(id(self), "restarting log file", self.filename) if self.file is not None: self.file.close() self.file = open(self.filename, "ab") @@ -1267,7 +1265,7 @@ def clear_log_file(self): if self.verbose: - print id(self), "clearing logfile", self.filename + print(id(self), "clearing logfile", self.filename) if self.file is not None: self.file.close() self.file = None @@ -1282,12 +1280,12 @@ self.restart() file = self.file verbose = self.verbose - from sqlsem import serialize + from .sqlsem import serialize serial = serialize(operation) data = (transactionid, serial) if verbose: - print id(self), "logging:", transactionid - print operation + print(id(self), "logging:", transactionid) + print(operation) checksum_dump(data, file) self.dirty = 1 @@ -1295,14 +1293,14 @@ """add commit, if appropriate, flush.""" verbose = self.verbose or verbose if not self.dirty and transactionid is None: - if verbose: print "commit not needed", transactionid + if verbose: print("commit not needed", transactionid) return elif verbose: - print "attempting commit", transactionid + print("attempting commit", transactionid) if transactionid is not None: self.log( COMMIT, transactionid ) - if verbose: print "committed", transactionid - if verbose: print "flushing", self.filename + if verbose: print("committed", transactionid) + if verbose: print("flushing", self.filename) self.file.flush() self.dirty = 0 @@ -1311,46 +1309,46 @@ verbose = self.verbose filename = self.filename if verbose: - print "attempting recovery from", self.filename + print("attempting recovery from", self.filename) file = self.file if file is not None: - if verbose: print "closing file" + if verbose: print("closing file") self.file.close() self.file = None if verbose: - print "opens should generate an error if no recovery needed" + print("opens should generate an error if no recovery needed") try: file = open(filename, "rb") file2 = open(self.backupname, "rb") except: if verbose: - print "no recovery needed:", filename - print sys.exc_type, sys.exc_value - sys.exc_traceback = None + print("no recovery needed:", filename) + print(sys.exc_info()[0], sys.exc_info()[1]) + sys.exc_info()[2] = None return file2.close() - if verbose: print "log found, recovering from", filename + if verbose: print("log found, recovering from", filename) records = self.read_records(file) - if verbose: print "scan for commit records" + if verbose: print("scan for commit records") commits = {} for (i, (tid, op)) in records: if op==COMMIT: - if verbose: print "transaction", tid, "commit at", i + if verbose: print("transaction", tid, "commit at", i) commits[tid] = i elif verbose:RefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/gfclient.py - print i, tid, "operation\n", op - if verbose: print commits, "commits total" - if verbose: print "applying commited operations, in order" + print(i, tid, "operation\n", op) + if verbose: print(commits, "commits total") + if verbose: print("applying commited operations, in order") committed = commits.has_key from types import StringType for (i, (tid, op)) in records: if tid is None or (committed(tid) and commits[tid]>i): if type(op) is StringType: if verbose: - print "skipping marker", tid, op + print("skipping marker", tid, op) if verbose: - print "executing for", tid, i - print op + print("executing for", tid, i) + print(op) #### Note: silently eat errors unless verbose ### (eg in case of table recreation...) ### There should be a better way to do this!!! @@ -1360,57 +1358,57 @@ op.eval() except: if verbose: - print "error", sys.exc_type, sys.exc_value - print "binding or evaluating logged operation:" - print op + print("error", sys.exc_info()[0], sys.exc_info()[1]) + print("binding or evaluating logged operation:") + print(op) elif verbose: - print "uncommitted operation", tid, i + print("uncommitted operation", tid, i) op if verbose: - print "recovery successful: clearing log file" + print("recovery successful: clearing log file") self.clear() if restart: if verbose: - print "recreating empty log file" + print("recreating empty log file") self.startup() def read_records(self, file): """return log record as (index, (tid, op)) list""" verbose = self.verbose - if verbose: print "reading log records to error" + if verbose: print("reading log records to error") import sys records = {} - from sqlsem import deserialize + from .sqlsem import deserialize count = 0 while 1: try: data = checksum_undump(file) except: if verbose: - print "record read terminated with error", len(records) - print sys.exc_type, sys.exc_value + print("record read terminated with error", len(records)) + print(sys.exc_info()[0], sys.exc_info()[1]) break (transactionid, serial) = data operation = deserialize(serial) records[count] = (transactionid, operation) if verbose: - print count, ": read for", transactionid - print operation + print(count, ": read for", transactionid) + print(operation) count = count+1 - if verbose: print len(records), "records total" - records = records.items() + if verbose: print(len(records), "records total") + records = list(records.items()) records.sort() return records def dump(self): verbose = self.verbose self.shutdown() - print "dumping log" + print("dumping log") self.verbose = 1 try: file = open(self.filename, "rb") except: - print "DUMP FAILED, cannot open", self.filename + print("DUMP FAILED, cannot open", self.filename) else: self.read_records(file) self.verbose = verbose --- ../python3/src/zope/rdb/gadfly/gfclient.py (original) +++ ../python3/src/zope/rdb/gadfly/gfclient.py (refactored) @@ -59,7 +59,7 @@ RefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/gadfly.py machine: [optional] the machine the server runs on. """ -import gfsocket +from . import gfsocket def main(): import sys @@ -73,16 +73,16 @@ machine = argv[4] else: machine = None - print action, port, admin_password, machine + print(action, port, admin_password, machine) if action not in ["shutdown", "restart", "checkpoint"]: - print "bad action", action - print + print("bad action", action) + print() return dosimple(action, port, admin_password, machine) done=1 finally: if not done: - print __doc__ + print(__doc__) def dosimple(action, port, pw, machine=None): import socket @@ -90,7 +90,7 @@ machine = socket.gethostname() conn = gfclient("admin", port, pw, machine) action = getattr(conn, action) - print action() + print(action()) # copied from gfserve # shut down the server (admin policy only) @@ -177,7 +177,7 @@ def cursor(self): """return a cursor to this policy""" if self.closed: - raise ValueError, "connection is closed" + raise ValueError("connection is closed") return gfClientCursor(self) --- ../python3/src/zope/rdb/gadfly/gadfly.py (original) +++ ../python3/src/zope/rdb/gadfly/gadfly.py (refactored) @@ -1,7 +1,7 @@ """main entry point for gadfly sql.""" -import sqlgen, sqlbind +from . import sqlgen, sqlbind sql = sqlgen.getSQL() sql = sqlbind.BindRules(sql) @@ -19,8 +19,8 @@ # checkpoint on each commit if set self.autocheckpoint = autocheckpoint if verbose: - print "initializing gadfly instance", (\ - databasename, directory, forscratch, verbose) + print("initializing gadfly instance", (\ + databasename, directory, forscratch, verbose)) self.is_scratch = forscratch self.databasename=databasename self.directory = directory @@ -32,9 +32,9 @@ self.open() def transaction_log(self): - from gfdb0 import Transaction_Logger - if self.verbose: - print "new transaction log for", self.transid + from .gfdb0 import Transaction_Logger + if self.verbose: + print("new transaction log for", self.transid) return Transaction_Logger(self.database.log, self.transid, self.is_scratch) # causes problems in 1.5? @@ -52,7 +52,7 @@ # implicit abort of active transactions! verbose = self.verbose if verbose: - print "checkpointing gadfly instance", self.databasename + print("checkpointing gadfly instance", self.databasename) db = self.database log = db.log # dump committed db to fs @@ -60,26 +60,26 @@ if fs and db and not db.is_scratch: # flush the log if log: - if verbose: print "gadfly: committing log" + if verbose: print("gadfly: committing log") log.commit() elif verbose: - print "gadfly: no log to commit" - if verbose: print "gadfly: dumping mutated db structures" + print("gadfly: no log to commit") + if verbose: print("gadfly: dumping mutated db structures") fs.dump(db) elif verbose: - print "gadfly: no checkpoint required" - if verbose: - print "gadfly: new transid, reshadowing" + print("gadfly: no checkpoint required") + if verbose: + print("gadfly: new transid, reshadowing") self.transid = self.transid+1 self.working_db.reshadow(db, self.transaction_log()) def startup(self, databasename, directory, scratch=0, verbose=0): - from gfdb0 import Database0, File_Storage0 + from .gfdb0 import Database0, File_Storage0 verbose = self.verbose if verbose: - print "gadfly: starting up new ", databasename + print("gadfly: starting up new ", databasename) if self.database: - raise error, "cannot startup, database bound" + raise error("cannot startup, database bound") self.databasename=databasename self.directory = directory db = self.database = Database0() @@ -97,7 +97,7 @@ """reload and rerun committed updates from log, discard uncommitted""" # mainly for testing recovery. if self.verbose: - print "gadfly: restarting database", self.databasename + print("gadfly: restarting database", self.databasename) self.database.clear() self.working_db.clear() self.working_db = None @@ -107,8 +107,8 @@ def open(self): """(re)load existing database""" if self.verbose: - print "gadfly: loading database", self.databasename - from gfdb0 import File_Storage0, Database0 + print("gadfly: loading database", self.databasename) + from .gfdb0 import File_Storage0, Database0 if self.directory: directory = self.directory else: @@ -132,7 +132,7 @@ """checkpoint and clear the database""" if self.closed: return if self.verbose: - print "gadfly: closing database", self.databasename + print("gadfly: closing database", self.databasename) db = self.database if not db.is_scratch: self.checkpoint() @@ -148,7 +148,7 @@ verbose = self.verbose autocheckpoint = self.autocheckpoint if self.verbose: - print "gadfly: committing", self.transid, self.databasename + print("gadfly: committing", self.transid, self.databasename) self.transid = self.transid+1 fs = self.fs db = self.database @@ -159,25 +159,25 @@ if fs and db and not db.is_scratch: if autocheckpoint: if verbose: - print "gadfly: autocheckpoint" + print("gadfly: autocheckpoint") # skips a transid? self.checkpoint() else: if verbose: - print "gadfly: no autocheckpoint" + print("gadfly: no autocheckpoint") wdb.reshadow(db, self.transaction_log()) else: if verbose: - print "gadfly: scratch db, no logging, just reshadow" + print("gadfly: scratch db, no logging, just reshadow") wdb.reshadow(db, self.transaction_log()) def rollback(self): """discard the working db, new transid, recreate working db""" verbose = self.verbose if verbose: - print "gadfly: rolling back", self.transid, self.databasename + print("gadfly: rolling back", self.transid, self.databasename) if not (self.fs or self.database): - raise error, "unbound, cannot rollback" + raise error("unbound, cannot rollback") # discard updates in working database self.working_db.clear() self.transid = self.transid+1 @@ -186,10 +186,10 @@ def cursor(self): if self.verbose: - print "gadfly: new cursor", self.databasename + print("gadfly: new cursor", self.databasename) db = self.database if db is None: - raise error, "not bound to database" + raise error("not bound to database") return GF_Cursor(self) def dumplog(self): @@ -197,21 +197,21 @@ if log: log.dump() else: - print "no log to dump" + print("no log to dump") def table_names(self): return self.working_db.relations() def DUMP_ALL(self): - print "DUMPING ALL CONNECTION DATA", self.databasename, self.directory - print - print "***** BASE DATA" - print - print self.database - print - print "***** WORKING DATA" - print - print self.working_db + print("DUMPING ALL CONNECTION DATA", self.databasename, self.directory) + print() + print("***** BASE DATA") + print() + print(self.database) + print() + print("***** WORKING DATA") + print() + print(self.working_db) class GF_Cursor: @@ -227,39 +227,39 @@ def __init__(self, gadfly_instance): verbose = self.verbose = self.verbose or gadfly_instance.verbose if verbose: - print "GF_Cursor.__init__", id(self) + print("GF_Cursor.__init__", id(self)) self.connection = gadfly_instance self.results = None self.resultlist = None self.statement = None # make a shadow of the shadow db! (in case of errors) - from gfdb0 import Database0 + from .gfdb0 import Database0 self.shadow_db = Database0() self.reshadow() self.connection = gadfly_instance def reshadow(self): if self.verbose: - print "GF_Cursor.reshadow", id(self) + print("GF_Cursor.reshadow", id(self)) db = self.connection.working_db shadow = self.shadow_db shadow.reshadow(db, db.log) if self.verbose: - print "rels", shadow.rels.keys() + print("rels", list(shadow.rels.keys())) def close(self): if self.verbose: - print "GF_Cursor.close", id(self) + print("GF_Cursor.close", id(self)) self.connection = None def reset_results(self): if self.verbose: - print "GF_Cursor.reset_results", id(self) + print("GF_Cursor.reset_results", id(self)) rs = self.results if rs is None: - raise error, "must execute first" + raise error("must execute first") if len(rs)!=1: - raise error, "cannot retrieve multiple results" + raise error("cannot retrieve multiple results") rel = rs[0] rows = rel.rows() atts = rel.attributes() @@ -267,29 +267,29 @@ resultlist = list(rows) if len(tupatts)==1: att = tupatts[0] - for i in xrange(len(resultlist)): + for i in range(len(resultlist)): resultlist[i] = (resultlist[i][att],) else: - for i in xrange(len(resultlist)): + for i in range(len(resultlist)): resultlist[i] = resultlist[i].dump(tupatts) self.resultlist = resultlist def fetchone(self): if self.verbose: - print "GF_Cursor.fetchone", id(self) + print("GF_Cursor.fetchone", id(self)) r = self.resultlist if r is None: self.reset_results() r = self.resultlist if len(r)<1: - raise error, "no more results" + raise error("no more results") result = r[0] del r[0] return result def fetchmany(self, size=None): if self.verbose: - print "GF_Cursor.fetchmany", id(self) + print("GF_Cursor.fetchmany", id(self)) r = self.resultlist if r is None: self.reset_results() @@ -302,7 +302,7 @@ def fetchall(self): if self.verbose: - print "GF_Cursor.fetchall", id(self) + print("GF_Cursor.fetchall", id(self)) return self.fetchmany() def execute(self, statement=None, params=None): @@ -310,48 +310,48 @@ success = 0 verbose = self.verbose if verbose: - print "GF_Cursor.execute", id(self) + print("GF_Cursor.execute", id(self)) if statement is None and self.statement is None: - raise error, "cannot execute, statement not bound" + raise error("cannot execute, statement not bound") if statement!=self.statement: - if verbose: print "GF_cursor: new statement: parsing" + if verbose: print("GF_cursor: new statement: parsing") # only reparse on new statement. RefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/__init__.py self.statement=statement - from sqlsem import Parse_Context + from .sqlsem import Parse_Context context = Parse_Context() cs = self.commands = sql.DoParse1(statement, context) else: - if verbose: print "GF_cursor: old statment, not parsing" + if verbose: print("GF_cursor: old statment, not parsing") cs = self.commands # always rebind! (db may have changed) - if verbose: print "GF_Cursor: binding to temp db" + if verbose: print("GF_Cursor: binding to temp db") # make a new shadow of working db # (should optimize?) self.reshadow() # get shadow of working database database = self.shadow_db if self.EVAL_DUMP: - print "***" - print "*** dumping connection parameters before eval" - print "***" - print "*** eval scratch db..." - print - print database - print - print "*** connection data" - print + print("***") + print("*** dumping connection parameters before eval") + print("***") + print("*** eval scratch db...") + print() + print(database) + print() + print("*** connection data") + print() self.connection.DUMP_ALL() - print "********** end of eval dump" - for i in xrange(len(cs)): + print("********** end of eval dump") + for i in range(len(cs)): if verbose: - print "GFCursor binding\n", cs[i] - print database.rels.keys() + print("GFCursor binding\n", cs[i]) + print(list(database.rels.keys())) cs[i] = cs[i].relbind(database) cs = self.commands self.results = results = list(cs) # only unshadow results on no error try: - for i in xrange(len(cs)): + for i in range(len(cs)): results[i] = cs[i].eval(params) success = 1 finally: @@ -359,14 +359,13 @@ # only on no error... if success: # commit updates in shadow of working db (not in real db) - if verbose: print "GFCursor: successful eval, storing results in wdb" + if verbose: print("GFCursor: successful eval, storing results in wdb") database.log.flush() # database commit does not imply transaction commit. database.commit() else: if verbose: - print \ - "GFCursor: UNSUCCESSFUL EVAL, discarding results and log entries" + print("GFCursor: UNSUCCESSFUL EVAL, discarding results and log entries") self.statement = None self.results = None self.resultlist = None @@ -382,7 +381,7 @@ else: descriptions = list(atts) fluff = (None,) * 6 - for i in xrange(len(atts)): + for i in range(len(atts)): descriptions[i] = (atts[i],) + fluff self.description = tuple(descriptions) self.resultlist = None @@ -398,5 +397,5 @@ def pp(self): """return pretty-print string rep of current results""" from string import join - stuff = map(repr, self.results) + stuff = list(map(repr, self.results)) return join(stuff, "\n\n") --- ../python3/src/zope/rdb/gadfly/__init__.py (original) +++ ../python3/src/zope/rdb/gadfly/__init__.py (refactored) @@ -1,11 +1,11 @@ # Package handling monstrocities import os -import sqlwhere +from . import sqlwhere # Stuff filename into the namespace so that you don't have to hard code # this information ahead of time. Should be portable across platforms. sqlwhere.filename = filename = __path__[0] + os.sep + 'sql.mar' # Yank the previous namespace in so that nothing breaks -RefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/SQLTESTG.py RefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/DumbLispGen.py RefactoringTool: Refactored ../python3/src/zope/rdb/gadfly/DLispShort.py from gadfly import * +from .gadfly import * --- ../python3/src/zope/rdb/gadfly/SQLTESTG.py (original) +++ ../python3/src/zope/rdb/gadfly/SQLTESTG.py (refactored) @@ -45,16 +45,16 @@ # test generation of the grammar def BuildSQLG(): - import kjParseBuild + from . import kjParseBuild SQLG = kjParseBuild.NullCGrammar() SQLG.SetCaseSensitivity(0) SQLG.Keywords(SELECTKEYWORDS) SQLG.Nonterms(SELECTNONTERMS) # no comments yet SQLG.Declarerules(SELECTRULES) - print "building" + print("building") SQLG.Compile() - print "marshaling" + print("marshaling") outfile = open( MARSHALFILE, "w") SQLG.MarshalDump(outfile) outfile.close() @@ -62,8 +62,8 @@ # load function def LoadSQLG(): - import kjParser - print "unmarshalling" + from . import kjParser + print("unmarshalling") infile = open(MARSHALFILE, "r") SQLG = kjParser.UnMarshalGram(infile) infile.close() @@ -72,7 +72,7 @@ #### for testing if REBUILD: SQLG0 = BuildSQLG() - print " rebuilt SQLG0 as compilable grammar" + print(" rebuilt SQLG0 as compilable grammar") SQLG = LoadSQLG() -print " build SQLG as reloaded grammar" +print(" build SQLG as reloaded grammar") --- ../python3/src/zope/rdb/gadfly/DumbLispGen.py (original) +++ ../python3/src/zope/rdb/gadfly/DumbLispGen.py (refactored) @@ -77,7 +77,7 @@ # Parser delivers list of form [ interpreted_value ] def EchoValue( list, Context ): if len(list)!=1: - raise TypeError, "this shouldn't happen! (1)" + raise TypeError("this shouldn't happen! (1)") return list[0] # for Varrule interpreter must try to look up the value @@ -86,12 +86,12 @@ # Parser delivers list of form [ var_name ] def VarValue( list, Context ): if len(list)!=1: - raise TypeError, "Huh? (2)" + raise TypeError("Huh? (2)") varName = list[0] - if Context.has_key(varName): + if varName in Context: return Context[varName] else: - raise NameError, "no such lisp variable in context "+varName + raise NameError("no such lisp variable in context "+varName) # for an empty tail, return the empty list # @@ -114,7 +114,7 @@ # Parser delivers list of form ["(", TailValue ] def MakeList( list, Context ): if len(list)!=2 or list[0]!="(": - raise TypeError, "Bad reduction? (3)" + raise TypeError("Bad reduction? (3)") return list[1] # For a setq, declare a new variable in the Context dictionary @@ -125,11 +125,11 @@ or list[0] != "("\ or list[1] != "setq"\ or list[4] != ")": - print list - raise TypeError, "Bad reduction? (4)" + print(list) + raise TypeError("Bad reduction? (4)") VarName = list[2] if type(VarName) != type(''): - raise TypeError, "Bad var name? (5)" + raise TypeError("Bad var name? (5)") Value = list[3] # add or set the variable in the Context dictionary Context[ VarName ] = Value @@ -156,7 +156,7 @@ # # (maybe this should be made into a generic function?) def GrammarBuild(): - import kjParseBuild + from . import kjParseBuild # initialize a Null compilable grammar to define LispG = kjParseBuild.NullCGrammar() --- ../python3/src/zope/rdb/gadfly/DLispShort.py (original) +++ ../python3/src/zope/rdb/gadfly/DLispShort.py (refactored) @@ -40,10 +40,10 @@ return list[0] def VarValue( list, Context ): varName = list[0] - if Context.has_key(varName): + if varName in Context: return Context[varName] else: - raise NameError, "no such lisp variable in context "+varName + raise NameError("no such lisp variable in context "+varName) def NilTail( list, Context ): return [] def AddToList( list, Context ): @@ -54,7 +54,7 @@ Context[ list[2] ] = list[3] return list[3] def DoPrint( list, Context ): - print list[2] + print(list[2]) return list[2] def BindRules(Grammar): Grammar.Bind( "Intrule", EchoValue ) @@ -68,7 +68,7 @@ # This function generates the grammar and dumRefactoringTool: No changes to ../python3/src/zope/rdb/browser/rdb.py RefactoringTool: Refactored ../python3/src/zope/rdb/__init__.py ps it to a file. def GrammarBuild(): - import kjParseBuild + from . import kjParseBuild LispG = kjParseBuild.NullCGrammar() LispG.SetCaseSensitivity(0) # grammar is not case sensitive for keywords DeclareTerminals(LispG) @@ -79,12 +79,12 @@ LispG.Declarerules(GRAMMARSTRING) LispG.Compile() - print "dumping as python to "+COMPILEDFILENAME + print("dumping as python to "+COMPILEDFILENAME) outfile = open(COMPILEDFILENAME, "w") LispG.Reconstruct("LispG",outfile,"GRAMMAR") outfile.close() - print "dumping as binary to "+MARSHALLEDFILENAME + print("dumping as binary to "+MARSHALLEDFILENAME) outfile = open(MARSHALLEDFILENAME, "w") LispG.MarshalDump(outfile) outfile.close() @@ -104,7 +104,7 @@ return LispG def unMarshalLispG(): - import kjParser + from . import kjParser infile = open(MARSHALLEDFILENAME, "r") LispG = kjParser.UnMarshalGram(infile) infile.close() @@ -114,11 +114,11 @@ ########## test the grammar generation if REGENERATEONLOAD: - print "(re)generating the LispG grammar in file TESTLispG.py" + print("(re)generating the LispG grammar in file TESTLispG.py") Dummy = GrammarBuild() - print "(re)generation done." + print("(re)generation done.") -print "loading grammar as python" +print("loading grammar as python") LispG = LoadLispG() ### declare an initial context, and do some tests. Context = { 'x':3 } @@ -138,7 +138,7 @@ test7 = LispG.DoParse1( test7str, Context) test8 = LispG.DoParse1( '(print (1 x d))', Context) -print "unmarshalling the grammar" +print("unmarshalling the grammar") LispG2 = unMarshalLispG() ### declare an initial context, and do some tests. Context = { 'x':3 } --- ../python3/src/zope/rdb/__init__.py (original) +++ ../python3/src/zope/rdb/__init__.py (refactored) @@ -20,8 +20,8 @@ $Id: __init__.py 95490 2009-01-29 18:39:16Z wosc $ """ import re -import time, random, thread, threading -from urllib import unquote_plus +import time, random, _thread, threading +from urllib.parse import unquote_plus from persistent import Persistent @@ -58,9 +58,9 @@ >>> sqlquote(None) 'NULL' """ - if isinstance(x, (str, unicode)): + if isinstance(x, str): x = "'%s'" % x.replace('\\', '\\\\').replace("'", "''") - elif isinstance(x, (int, long, float)): + elif isinstance(x, (int, float)): pass elif x is None: x = 'NULL' @@ -81,7 +81,7 @@ def __init__(self, columns, rows): self.columns = tuple(columns) row_class = RowClassFactory(columns) - super(ResultSet, self).__init__(map(row_class, rows)) + super(ResultSet, self).__init__(list(map(row_class, rows))) __safe_for_unpickling__ = True @@ -118,7 +118,7 @@ def __init__(self, dsn): self.setDSN(dsn) self._unique_id = '%s.%s.%s' % ( - time.time(), random.random(), thread.get_ident() + time.time(), random.random(), _thread.get_ident() ) def _get_v_connection(self): @@ -154,7 +154,7 @@ # implementation-specific errors. But we really want to catch all # issues at this point, so that we can convert it to a # DatabaseException. - except Exception, error: + except Exception as error: raise DatabaseException(str(error)) def disconnect(self): @@ -227,7 +227,7 @@ parameters a mapping of additional parameters to their values """ - if not isinstance(dsn, (str, unicode)): + if not isinstance(dsn, str): raise ValueError('The dsn is not a string. It is a %r' % type(dsn)) match = _dsnFormat.match(dsn) @@ -237,7 +237,7 @@ result = match.groupdict("") raw_params = result.pop("raw_params") - for key, value in result.items(): + for key, value in list(result.items()): result[key] = unquote_plus(value) params = _paramsFormat.findall(raw_params) @@ -275,7 +275,7 @@ def _prepareOperation(self, operation, parameters):RefactoringTool: No changes to ../python3/src/zope/__init__.py RefactoringTool: No changes to ../python3/setup.py RefactoringTool: Refactored ../python3/bootstrap.py RefactoringTool: Files that were modified: RefactoringTool: ../python3/src/zope/rdb/zcml.py RefactoringTool: ../python3/src/zope/rdb/tests/test_zopedbtransactionmanager.py RefactoringTool: ../python3/src/zope/rdb/tests/test_zopedatabaseadapter.py RefactoringTool: ../python3/src/zope/rdb/tests/test_zopecursor.py RefactoringTool: ../python3/src/zope/rdb/tests/test_zopeconnection.py RefactoringTool: ../python3/src/zope/rdb/tests/test_row.py RefactoringTool: ../python3/src/zope/rdb/tests/test_resultset.py RefactoringTool: ../python3/src/zope/rdb/tests/test_gadflyrootdirective.py RefactoringTool: ../python3/src/zope/rdb/tests/test_gadflyphantom.py RefactoringTool: ../python3/src/zope/rdb/tests/test_gadflyadapter.py RefactoringTool: ../python3/src/zope/rdb/tests/test_dsnparser.py RefactoringTool: ../python3/src/zope/rdb/tests/test_doctests.py RefactoringTool: ../python3/src/zope/rdb/tests/test_directives.py RefactoringTool: ../python3/src/zope/rdb/tests/stubs.py RefactoringTool: ../python3/src/zope/rdb/interfaces.py RefactoringTool: ../python3/src/zope/rdb/gadflyzcml.py RefactoringTool: ../python3/src/zope/rdb/gadflyda.py RefactoringTool: ../python3/src/zope/rdb/gadfly/sqlwhere.py RefactoringTool: ../python3/src/zope/rdb/gadfly/sqlsem.py RefactoringTool: ../python3/src/zope/rdb/gadfly/sqlmod.py RefactoringTool: ../python3/src/zope/rdb/gadfly/sqlgtest.py RefactoringTool: ../python3/src/zope/rdb/gadfly/sqlgram.py RefactoringTool: ../python3/src/zope/rdb/gadfly/sqlgen.py RefactoringTool: ../python3/src/zope/rdb/gadfly/sqlbind.py RefactoringTool: ../python3/src/zope/rdb/gadfly/remotetest.py RefactoringTool: ../python3/src/zope/rdb/gadfly/relalg.py RefactoringTool: ../python3/src/zope/rdb/gadfly/pygram.py RefactoringTool: ../python3/src/zope/rdb/gadfly/kjpylint.py RefactoringTool: ../python3/src/zope/rdb/gadfly/kjbuckets0.py RefactoringTool: ../python3/src/zope/rdb/gadfly/kjSet.py RefactoringTool: ../python3/src/zope/rdb/gadfly/kjParser.py RefactoringTool: ../python3/src/zope/rdb/gadfly/kjParseBuild.py RefactoringTool: ../python3/src/zope/rdb/gadfly/idl.py RefactoringTool: ../python3/src/zope/rdb/gadfly/gftest.py RefactoringTool: ../python3/src/zope/rdb/gadfly/gfstest.py RefactoringTool: ../python3/src/zope/rdb/gadfly/gfsocket.py RefactoringTool: ../python3/src/zope/rdb/gadfly/gfserve.py RefactoringTool: ../python3/src/zope/rdb/gadfly/gfintrospect.py RefactoringTool: ../python3/src/zope/rdb/gadfly/gfinstall.py RefactoringTool: ../python3/src/zope/rdb/gadfly/gfdb0.py RefactoringTool: ../python3/src/zope/rdb/gadfly/gfclient.py RefactoringTool: ../python3/src/zope/rdb/gadfly/gadfly.py RefactoringTool: ../python3/src/zope/rdb/gadfly/__init__.py RefactoringTool: ../python3/src/zope/rdb/gadfly/SQLTESTG.py RefactoringTool: ../python3/src/zope/rdb/gadfly/DumbLispGen.py RefactoringTool: ../python3/src/zope/rdb/gadfly/DLispShort.py RefactoringTool: ../python3/src/zope/rdb/browser/rdb.py RefactoringTool: ../python3/src/zope/rdb/__init__.py RefactoringTool: ../python3/src/zope/__init__.py RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/bootstrap.py RefactoringTool: Warnings/messages while refactoring: RefactoringTool: ### In file ../python3/src/zope/rdb/gadfly/sqlsem.py ### RefactoringTool: Line 2735: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: Line 2735: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: Line 836: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: Line 836: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: Line 1250: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: Line 1250: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: Line 1028: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: Line 1028: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: Line 1029: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: Line 1029: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: Line 2490: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: Line 2490: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: Line 2505: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: Line 2505: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: ### In file ../python3/src/zope/rdb/gadfly/sqlsem.py ### RefactoringTool: Line 1845: could not convert: raise "what the?" RefactoringTool: Python 3 does not support string exceptions RefactoringTool: ### In file ../python3/src/zope/rdb/gadfly/sqlmod.py ### RefactoringTool: Line 624: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: Line 624: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: ### In file ../python3/src/zope/rdb/gadfly/relalg.py ### RefactoringTool: Line 332: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: Line 332: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: Line 309: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: Line 309: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: ### In file ../python3/src/zope/rdb/gadfly/pygram.py ### RefactoringTool: Line 811: absolute and local imports together RefactoringTool: Line 378: absolute and local imports together RefactoringTool: ### In file ../python3/src/zope/rdb/gadfly/kjpylint.py ### RefactoringTool: Line 456: could not convert: raise "oops", x RefactoringTool: Python 3 does not support string exceptions RefactoringTool: ### In file ../python3/src/zope/rdb/gadfly/kjbuckets0.py ### RefactoringTool: Line 972: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: Line 972: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: ### In file ../python3/src/zope/rdb/gadfly/gfserve.py ### RefactoringTool: Line 66: absolute and local imports together RefactoringTool: ### In file ../python3/src/zope/rdb/gadfly/gfdb0.py ### RefactoringTool: Line 896: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: Line 896: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: Line 1137: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence RefactoringTool: Line 1137: cannot convert map(None, ...) with multiple arguments because map() now truncates to the shortest sequence encoding = self.connection.getTypeInfo().getEncoding() - if isinstance(operation, unicode): + if isinstance(operation, str): operation = operation.encode(encoding) parameters = self._prepareParameters(parameters, encoding) return operation, parameters @@ -283,19 +283,19 @@ def _prepareParameters(self, parameters, encoding): if isinstance(parameters, list): for i, v in enumerate(parameters): - if isinstance(v, unicode): + if isinstance(v, str): parameters[i] = v.encode(encoding) else: parameters[i] = self._prepareParameters(v, encoding) elif isinstance(parameters, tuple): parameters = list(parameters) for i, v in enumerate(parameters): - if isinstance(v, unicode): + if isinstance(v, str): parameters[i] = v.encode(encoding) parameters = tuple(parameters) elif isinstance(parameters, dict): - for k, v in parameters.items(): - if isinstance(v, unicode): + for k, v in list(parameters.items()): + if isinstance(v, str): parameters[k] = v.encode(encoding) return parameters @@ -326,10 +326,10 @@ ## return results # optimize away def convertRow(row): - return map(lambda converter, value: converter(value), - converters, row) - - return map(convertRow, results) + return list(map(lambda converter, value: converter(value), + converters, row)) + + return list(map(convertRow, results)) class ZopeConnection(object): @@ -377,7 +377,7 @@ try: cursor.execute(query) - except Exception, error: + except Exception as error: # Just catch the exception, so that we can convert it to a database # exception. raise DatabaseException(str(error)) --- ../python3/bootstrap.py (original) +++ ../python3/bootstrap.py (refactored) @@ -20,13 +20,13 @@ $Id: bootstrap.py 73093 2007-03-09 04:18:06Z baijum $ """ -import os, shutil, sys, tempfile, urllib2 +import os, shutil, sys, tempfile, urllib.request, urllib.error, urllib.parse tmpeggs = tempfile.mkdtemp() ez = {} -exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py' - ).read() in ez +exec(urllib.request.urlopen('http://peak.telecommunity.com/dist/ez_setup.py' + ).read(), ez) ez['use_setuptools'](to_dir=tmpeggs, download_delay=0) import pkg_resources + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.78777 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-zope.rdb-3.5.0 + CFLAGS='-pipe -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python setup.py build running build running build_py creating build creating build/lib creating build/lib/zope copying src/zope/__init__.py -> build/lib/zope creating build/lib/zope/rdb copying src/zope/rdb/zcml.py -> build/lib/zope/rdb copying src/zope/rdb/interfaces.py -> build/lib/zope/rdb copying src/zope/rdb/gadflyzcml.py -> build/lib/zope/rdb copying src/zope/rdb/gadflyda.py -> build/lib/zope/rdb copying src/zope/rdb/__init__.py -> build/lib/zope/rdb creating build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_zopedbtransactionmanager.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_zopedatabaseadapter.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_zopecursor.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_zopeconnection.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_row.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_resultset.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_gadflyrootdirective.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_gadflyphantom.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_gadflyadapter.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_dsnparser.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_doctests.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_directives.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/stubs.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/__init__.py -> build/lib/zope/rdb/tests creating build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/sqlwhere.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/sqlsem.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/sqlmod.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/sqlgtest.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/sqlgram.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/sqlgen.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/sqlbind.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/remotetest.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/relalg.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/pygram.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/kjpylint.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/kjbuckets0.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/kjSet.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/kjParser.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/kjParseBuild.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/idl.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gftest.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gfstest.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gfsocket.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gfserve.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gfintrospect.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gfinstall.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gfdb0.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gfclient.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gadfly.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/__init__.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/SQLTESTG.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/DumbLispGen.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/DLispShort.py -> build/lib/zope/rdb/gadfly creating build/lib/zope/rdb/browser copying src/zope/rdb/browser/rdb.py -> build/lib/zope/rdb/browser copying src/zope/rdb/browser/__init__.py -> build/lib/zope/rdb/browser running egg_info writing requirements to src/zope.rdb.egg-info/requires.txt writing src/zope.rdb.egg-info/PKG-INFO writing namespace_packages to src/zope.rdb.egg-info/namespace_packages.txt writing top-level names to src/zope.rdb.egg-info/top_level.txt writing dependency_links to src/zope.rdb.egg-info/dependency_links.txt reading manifest file 'src/zope.rdb.egg-info/SOURCES.txt' writing manifest file 'src/zope.rdb.egg-info/SOURCES.txt' copying src/zope/rdb/DEPENDENCIES.cfg -> build/lib/zope/rdb copying src/zope/rdb/SETUP.cfg -> build/lib/zope/rdb copying src/zope/rdb/configure.zcml -> build/lib/zope/rdb copying src/zope/rdb/gadflyda.zcml -> build/lib/zope/rdb copying src/zope/rdb/meta.zcml -> build/lib/zope/rdb copying src/zope/rdb/rdb-configure.zcml -> build/lib/zope/rdb copying src/zope/rdb/rdb-meta.zcml -> build/lib/zope/rdb copying src/zope/rdb/tests/gadflyroot.zcml -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/rdb.zcml -> build/lib/zope/rdb/tests copying src/zope/rdb/gadfly/COPYRIGHT -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gadfly.html -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gfSQL.html -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gffaq.html -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gfrecover.html -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/index.html -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/kwParsing.html -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/server.html -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/sql.mar -> build/lib/zope/rdb/gadfly copying src/zope/rdb/browser/configure.zcml -> build/lib/zope/rdb/browser copying src/zope/rdb/browser/gadflyda.zcml -> build/lib/zope/rdb/browser copying src/zope/rdb/browser/rdbconnection.pt -> build/lib/zope/rdb/browser copying src/zope/rdb/browser/rdbtestresults.pt -> build/lib/zope/rdb/browser copying src/zope/rdb/browser/rdbtestsql.pt -> build/lib/zope/rdb/browser + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-zope.rdb-3.5.0 + CFLAGS='-pipe -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + python3 setup.py build running build running build_py creating build creating build/lib creating build/lib/zope copying src/zope/__init__.py -> build/lib/zope creating build/lib/zope/rdb copying src/zope/rdb/zcml.py -> build/lib/zope/rdb copying src/zope/rdb/interfaces.py -> build/lib/zope/rdb copying src/zope/rdb/gadflyzcml.py -> build/lib/zope/rdb copying src/zope/rdb/gadflyda.py -> build/lib/zope/rdb copying src/zope/rdb/__init__.py -> build/lib/zope/rdb creating build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_zopedbtransactionmanager.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_zopedatabaseadapter.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_zopecursor.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_zopeconnection.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_row.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_resultset.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_gadflyrootdirective.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_gadflyphantom.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_gadflyadapter.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_dsnparser.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_doctests.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/test_directives.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/stubs.py -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/__init__.py -> build/lib/zope/rdb/tests creating build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/sqlwhere.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/sqlsem.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/sqlmod.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/sqlgtest.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/sqlgram.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/sqlgen.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/sqlbind.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/remotetest.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/relalg.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/pygram.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/kjpylint.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/kjbuckets0.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/kjSet.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/kjParser.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/kjParseBuild.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/idl.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gftest.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gfstest.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gfsocket.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gfserve.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gfintrospect.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gfinstall.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gfdb0.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gfclient.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gadfly.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/__init__.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/SQLTESTG.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/DumbLispGen.py -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/DLispShort.py -> build/lib/zope/rdb/gadfly creating build/lib/zope/rdb/browser copying src/zope/rdb/browser/rdb.py -> build/lib/zope/rdb/browser copying src/zope/rdb/browser/__init__.py -> build/lib/zope/rdb/browser running egg_info writing src/zope.rdb.egg-info/PKG-INFO writing dependency_links to src/zope.rdb.egg-info/dependency_links.txt writing top-level names to src/zope.rdb.egg-info/top_level.txt writing namespace_packages to src/zope.rdb.egg-info/namespace_packages.txt writing requirements to src/zope.rdb.egg-info/requires.txt reading manifest file 'src/zope.rdb.egg-info/SOURCES.txt' writing manifest file 'src/zope.rdb.egg-info/SOURCES.txt' copying src/zope/rdb/DEPENDENCIES.cfg -> build/lib/zope/rdb copying src/zope/rdb/SETUP.cfg -> build/lib/zope/rdb copying src/zope/rdb/configure.zcml -> build/lib/zope/rdb copying src/zope/rdb/gadflyda.zcml -> build/lib/zope/rdb copying src/zope/rdb/meta.zcml -> build/lib/zope/rdb copying src/zope/rdb/rdb-configure.zcml -> build/lib/zope/rdb copying src/zope/rdb/rdb-meta.zcml -> build/lib/zope/rdb copying src/zope/rdb/tests/gadflyroot.zcml -> build/lib/zope/rdb/tests copying src/zope/rdb/tests/rdb.zcml -> build/lib/zope/rdb/tests copying src/zope/rdb/gadfly/COPYRIGHT -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gadfly.html -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gfSQL.html -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gffaq.html -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/gfrecover.html -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/index.html -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/kwParsing.html -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/server.html -> build/lib/zope/rdb/gadfly copying src/zope/rdb/gadfly/sql.mar -> build/lib/zope/rdb/gadfly copying src/zope/rdb/browser/configure.zcml -> build/lib/zope/rdb/browser copying src/zope/rdb/browser/gadflyda.zcml -> build/lib/zope/rdb/browser copying src/zope/rdb/browser/rdbconnection.pt -> build/lib/zope/rdb/browser copying src/zope/rdb/browser/rdbtestresults.pt -> build/lib/zope/rdb/browser copying src/zope/rdb/browser/rdbtestsql.pt -> build/lib/zope/rdb/browser + popd ~/RPM/BUILD/python-module-zope.rdb-3.5.0 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.64966 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-zope.rdb-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-zope.rdb-buildroot + cd python-module-zope.rdb-3.5.0 + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-zope.rdb-buildroot --force running install running install_lib Skipping installation of /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/__init__.py (namespace package) copying zope/rdb/rdb-meta.zcml -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb copying zope/rdb/rdb-configure.zcml -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb copying zope/rdb/meta.zcml -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb copying zope/rdb/gadflyda.zcml -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb copying zope/rdb/configure.zcml -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb copying zope/rdb/SETUP.cfg -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb copying zope/rdb/DEPENDENCIES.cfg -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb copying zope/rdb/__init__.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb copying zope/rdb/gadflyda.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb copying zope/rdb/gadflyzcml.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb copying zope/rdb/interfaces.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb copying zope/rdb/zcml.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb copying zope/rdb/browser/rdbtestsql.pt -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/browser copying zope/rdb/browser/rdbtestresults.pt -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/browser copying zope/rdb/browser/rdbconnection.pt -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/browser copying zope/rdb/browser/gadflyda.zcml -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/browser copying zope/rdb/browser/configure.zcml -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/browser copying zope/rdb/browser/__init__.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/browser copying zope/rdb/browser/rdb.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/browser copying zope/rdb/gadfly/sql.mar -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/server.html -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/kwParsing.html -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/index.html -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gfrecover.html -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gffaq.html -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gfSQL.html -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gadfly.html -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/COPYRIGHT -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/DLispShort.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/DumbLispGen.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/SQLTESTG.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/__init__.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gadfly.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gfclient.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gfdb0.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gfinstall.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gfintrospect.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gfserve.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gfsocket.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gfstest.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gftest.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/idl.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/kjParseBuild.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/kjParser.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/kjSet.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/kjbuckets0.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/kjpylint.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/pygram.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/relalg.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/remotetest.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/sqlbind.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/sqlgen.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/sqlgram.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/sqlgtest.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/sqlmod.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/sqlsem.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/sqlwhere.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly copying zope/rdb/tests/rdb.zcml -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests copying zope/rdb/tests/gadflyroot.zcml -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests copying zope/rdb/tests/__init__.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests copying zope/rdb/tests/stubs.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests copying zope/rdb/tests/test_directives.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests copying zope/rdb/tests/test_doctests.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests copying zope/rdb/tests/test_dsnparser.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests copying zope/rdb/tests/test_gadflyadapter.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests copying zope/rdb/tests/test_gadflyphantom.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests copying zope/rdb/tests/test_gadflyrootdirective.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests copying zope/rdb/tests/test_resultset.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests copying zope/rdb/tests/test_row.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests copying zope/rdb/tests/test_zopeconnection.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests copying zope/rdb/tests/test_zopecursor.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests copying zope/rdb/tests/test_zopedatabaseadapter.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests copying zope/rdb/tests/test_zopedbtransactionmanager.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadflyda.py to gadflyda.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadflyzcml.py to gadflyzcml.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/interfaces.py to interfaces.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/zcml.py to zcml.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/browser/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/browser/rdb.py to rdb.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/DLispShort.py to DLispShort.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/DumbLispGen.py to DumbLispGen.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/SQLTESTG.py to SQLTESTG.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gadfly.py to gadfly.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfclient.py to gfclient.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py to gfdb0.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfinstall.py to gfinstall.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfintrospect.py to gfintrospect.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfserve.py to gfserve.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfsocket.py to gfsocket.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfstest.py to gfstest.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gftest.py to gftest.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/idl.py to idl.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParseBuild.py to kjParseBuild.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParser.py to kjParser.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjSet.py to kjSet.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjbuckets0.py to kjbuckets0.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjpylint.py to kjpylint.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/pygram.py to pygram.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/relalg.py to relalg.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/remotetest.py to remotetest.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py to sqlbind.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgen.py to sqlgen.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgram.py to sqlgram.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgtest.py to sqlgtest.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py to sqlmod.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py to sqlsem.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlwhere.py to sqlwhere.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/stubs.py to stubs.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_directives.py to test_directives.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_doctests.py to test_doctests.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_dsnparser.py to test_dsnparser.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_gadflyadapter.py to test_gadflyadapter.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_gadflyphantom.py to test_gadflyphantom.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_gadflyrootdirective.py to test_gadflyrootdirective.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_resultset.py to test_resultset.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_row.py to test_row.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopeconnection.py to test_zopeconnection.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopecursor.py to test_zopecursor.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopedatabaseadapter.py to test_zopedatabaseadapter.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopedbtransactionmanager.py to test_zopedbtransactionmanager.pyc running install_egg_info running egg_info writing requirements to src/zope.rdb.egg-info/requires.txt writing src/zope.rdb.egg-info/PKG-INFO writing namespace_packages to src/zope.rdb.egg-info/namespace_packages.txt writing top-level names to src/zope.rdb.egg-info/top_level.txt writing dependency_links to src/zope.rdb.egg-info/dependency_links.txt reading manifest file 'src/zope.rdb.egg-info/SOURCES.txt' writing manifest file 'src/zope.rdb.egg-info/SOURCES.txt' Copying src/zope.rdb.egg-info to /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope.rdb-3.5.0-py2.7.egg-info Installing /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope.rdb-3.5.0-py2.7-nspkg.pth running install_scripts + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-zope.rdb-3.5.0 + python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-zope.rdb-buildroot --force running install running install_lib Skipping installation of /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/__init__.py (namespace package) copying zope/rdb/rdb-meta.zcml -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb copying zope/rdb/rdb-configure.zcml -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb copying zope/rdb/meta.zcml -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb copying zope/rdb/gadflyda.zcml -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb copying zope/rdb/configure.zcml -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb copying zope/rdb/SETUP.cfg -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb copying zope/rdb/DEPENDENCIES.cfg -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb copying zope/rdb/__init__.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb copying zope/rdb/gadflyda.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb copying zope/rdb/gadflyzcml.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb copying zope/rdb/interfaces.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb copying zope/rdb/zcml.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb copying zope/rdb/browser/rdbtestsql.pt -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/browser copying zope/rdb/browser/rdbtestresults.pt -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/browser copying zope/rdb/browser/rdbconnection.pt -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/browser copying zope/rdb/browser/gadflyda.zcml -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/browser copying zope/rdb/browser/configure.zcml -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/browser copying zope/rdb/browser/__init__.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/browser copying zope/rdb/browser/rdb.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/browser copying zope/rdb/gadfly/sql.mar -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/server.html -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/kwParsing.html -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/index.html -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gfrecover.html -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gffaq.html -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gfSQL.html -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gadfly.html -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/COPYRIGHT -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/DLispShort.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/DumbLispGen.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/SQLTESTG.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/__init__.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gadfly.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gfclient.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gfdb0.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gfinstall.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gfintrospect.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gfserve.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gfsocket.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gfstest.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/gftest.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/idl.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/kjParseBuild.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/kjParser.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/kjSet.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/kjbuckets0.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/kjpylint.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/pygram.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/relalg.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/remotetest.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/sqlbind.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/sqlgen.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/sqlgram.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/sqlgtest.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/sqlmod.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/sqlsem.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/gadfly/sqlwhere.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly copying zope/rdb/tests/rdb.zcml -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests copying zope/rdb/tests/gadflyroot.zcml -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests copying zope/rdb/tests/__init__.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests copying zope/rdb/tests/stubs.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests copying zope/rdb/tests/test_directives.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests copying zope/rdb/tests/test_doctests.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests copying zope/rdb/tests/test_dsnparser.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests copying zope/rdb/tests/test_gadflyadapter.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests copying zope/rdb/tests/test_gadflyphantom.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests copying zope/rdb/tests/test_gadflyrootdirective.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests copying zope/rdb/tests/test_resultset.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests copying zope/rdb/tests/test_row.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests copying zope/rdb/tests/test_zopeconnection.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests copying zope/rdb/tests/test_zopecursor.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests copying zope/rdb/tests/test_zopedatabaseadapter.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests copying zope/rdb/tests/test_zopedbtransactionmanager.py -> /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadflyda.py to gadflyda.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadflyzcml.py to gadflyzcml.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/interfaces.py to interfaces.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/zcml.py to zcml.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/browser/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/browser/rdb.py to rdb.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/DLispShort.py to DLispShort.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/DumbLispGen.py to DumbLispGen.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/SQLTESTG.py to SQLTESTG.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gadfly.py to gadfly.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfclient.py to gfclient.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py to gfdb0.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfinstall.py to gfinstall.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfintrospect.py to gfintrospect.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py to gfserve.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfsocket.py to gfsocket.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfstest.py to gfstest.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gftest.py to gftest.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/idl.py to idl.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjParseBuild.py to kjParseBuild.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjParser.py to kjParser.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjSet.py to kjSet.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjbuckets0.py to kjbuckets0.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjpylint.py to kjpylint.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/pygram.py to pygram.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/relalg.py to relalg.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/remotetest.py to remotetest.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlbind.py to sqlbind.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlgen.py to sqlgen.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlgram.py to sqlgram.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlgtest.py to sqlgtest.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlmod.py to sqlmod.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlsem.py to sqlsem.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlwhere.py to sqlwhere.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/stubs.py to stubs.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_directives.py to test_directives.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_doctests.py to test_doctests.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_dsnparser.py to test_dsnparser.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_gadflyadapter.py to test_gadflyadapter.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_gadflyphantom.py to test_gadflyphantom.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_gadflyrootdirective.py to test_gadflyrootdirective.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_resultset.py to test_resultset.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_row.py to test_row.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_zopeconnection.py to test_zopeconnection.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_zopecursor.py to test_zopecursor.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_zopedatabaseadapter.py to test_zopedatabaseadapter.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_zopedbtransactionmanager.py to test_zopedbtransactionmanager.cpython-35.pyc running install_egg_info running egg_info writing requirements to src/zope.rdb.egg-info/requires.txt writing src/zope.rdb.egg-info/PKG-INFO writing top-level names to src/zope.rdb.egg-info/top_level.txt writing dependency_links to src/zope.rdb.egg-info/dependency_links.txt writing namespace_packages to src/zope.rdb.egg-info/namespace_packages.txt reading manifest file 'src/zope.rdb.egg-info/SOURCES.txt' writing manifest file 'src/zope.rdb.egg-info/SOURCES.txt' Copying src/zope.rdb.egg-info to /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope.rdb-3.5.0-py3.5.egg-info Installing /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope.rdb-3.5.0-py3.5-nspkg.pth running install_scripts File "/usr/lib/python3/site-packages/zope/rdb/gadfly/kjpylint.py", line 456 raise "oops", x ^ SyntaxError: invalid syntax + popd ~/RPM/BUILD/python-module-zope.rdb-3.5.0 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-zope.rdb-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-zope.rdb-buildroot (binconfig,pkgconfig,libtool,desktop) Compressing files in /usr/src/tmp/python-module-zope.rdb-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-zope.rdb-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-zope.rdb-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-zope.rdb-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/browser/__init__.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/browser/rdb.pyc compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/browser/__init__.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/browser/rdb.py unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/DLispShort.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/DumbLispGen.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/SQLTESTG.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/__init__.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gadfly.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfclient.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfinstall.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfintrospect.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfserve.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfsocket.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfstest.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gftest.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/idl.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParseBuild.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParser.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjSet.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjbuckets0.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjpylint.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/pygram.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/relalg.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/remotetest.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgen.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgram.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgtest.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlwhere.pyc compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/DLispShort.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/DumbLispGen.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/SQLTESTG.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/__init__.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gadfly.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfclient.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfinstall.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfintrospect.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfserve.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfsocket.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfstest.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gftest.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/idl.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParseBuild.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParser.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjSet.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjbuckets0.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjpylint.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/pygram.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/relalg.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/remotetest.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgen.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgram.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgtest.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlwhere.py unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/__init__.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/stubs.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_directives.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_doctests.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_dsnparser.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_gadflyadapter.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_gadflyphantom.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_gadflyrootdirective.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_resultset.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_row.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopeconnection.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopecursor.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopedatabaseadapter.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopedbtransactionmanager.pyc compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/__init__.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/stubs.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_directives.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_doctests.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_dsnparser.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_gadflyadapter.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_gadflyphantom.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_gadflyrootdirective.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_resultset.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_row.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopeconnection.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopecursor.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopedatabaseadapter.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopedbtransactionmanager.py unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/__init__.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadflyda.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadflyzcml.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/interfaces.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/zcml.pyc compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/__init__.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadflyda.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadflyzcml.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/interfaces.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/zcml.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-zope.rdb-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/browser/__init__.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/browser/rdb.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/DLispShort.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/DumbLispGen.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/SQLTESTG.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/__init__.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gadfly.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfclient.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfinstall.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfintrospect.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfserve.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfsocket.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfstest.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gftest.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/idl.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParseBuild.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParser.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjSet.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjbuckets0.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjpylint.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/pygram.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/relalg.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/remotetest.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgen.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgram.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgtest.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlwhere.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/__init__.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/stubs.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_directives.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_doctests.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_dsnparser.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_gadflyadapter.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_gadflyphantom.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_gadflyrootdirective.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_resultset.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_row.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopeconnection.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopecursor.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopedatabaseadapter.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopedbtransactionmanager.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/__init__.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadflyda.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadflyzcml.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/interfaces.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/zcml.py Bytecompiling python3 modules in /usr/src/tmp/python-module-zope.rdb-buildroot using python3 unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/__pycache__/gadflyda.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/__pycache__/gadflyzcml.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/__pycache__/interfaces.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/__pycache__/zcml.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/browser/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/browser/__pycache__/rdb.cpython-35.pyc compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/browser/__init__.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/browser/rdb.py unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/DLispShort.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/DumbLispGen.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/SQLTESTG.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gadfly.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gfclient.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gfdb0.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gfinstall.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gfintrospect.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gfserve.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gfsocket.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gfstest.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gftest.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/idl.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/kjParseBuild.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/kjParser.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/kjSet.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/kjbuckets0.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/pygram.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/relalg.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/remotetest.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlbind.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlgen.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlgram.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlgtest.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlmod.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlsem.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlwhere.cpython-35.pyc compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/DLispShort.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/DumbLispGen.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/SQLTESTG.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__init__.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gadfly.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfclient.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfinstall.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfintrospect.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfsocket.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfstest.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gftest.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/idl.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjParseBuild.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjParser.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjSet.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjbuckets0.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjpylint.py /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjpylint.py can't be compiled : File "/usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjpylint.py", line 456 raise "oops", x ^ SyntaxError: invalid syntax compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/pygram.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/relalg.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/remotetest.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlbind.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlgen.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlgram.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlgtest.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlmod.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlsem.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlwhere.py unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/stubs.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_directives.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_doctests.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_dsnparser.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_gadflyadapter.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_gadflyphantom.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_gadflyrootdirective.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_resultset.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_row.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_zopeconnection.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_zopecursor.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_zopedatabaseadapter.cpython-35.pyc unlink /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_zopedbtransactionmanager.cpython-35.pyc compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/__init__.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/stubs.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_directives.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_doctests.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_dsnparser.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_gadflyadapter.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_gadflyphantom.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_gadflyrootdirective.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_resultset.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_row.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_zopeconnection.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_zopecursor.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_zopedatabaseadapter.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_zopedbtransactionmanager.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/__init__.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadflyda.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadflyzcml.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/interfaces.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/zcml.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-zope.rdb-buildroot using python3 -O compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/browser/__init__.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/browser/rdb.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/DLispShort.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/DumbLispGen.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/SQLTESTG.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__init__.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gadfly.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfclient.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfinstall.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfintrospect.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfsocket.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfstest.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gftest.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/idl.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjParseBuild.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjParser.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjSet.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjbuckets0.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjpylint.py /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjpylint.py can't be compiled : File "/usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjpylint.py", line 456 raise "oops", x ^ SyntaxError: invalid syntax compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/pygram.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/relalg.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/remotetest.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlbind.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlgen.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlgram.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlgtest.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlmod.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlsem.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlwhere.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/__init__.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/stubs.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_directives.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_doctests.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_dsnparser.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_gadflyadapter.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_gadflyphantom.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_gadflyrootdirective.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_resultset.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_row.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_zopeconnection.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_zopecursor.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_zopedatabaseadapter.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_zopedbtransactionmanager.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/__init__.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadflyda.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadflyzcml.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/interfaces.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/zcml.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-zope.rdb-buildroot using python3 -OO compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/browser/__init__.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/browser/rdb.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/DLispShort.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/DumbLispGen.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/SQLTESTG.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__init__.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gadfly.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfclient.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfinstall.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfintrospect.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfsocket.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfstest.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gftest.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/idl.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjParseBuild.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjParser.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjSet.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjbuckets0.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjpylint.py /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjpylint.py can't be compiled : File "/usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjpylint.py", line 456 raise "oops", x ^ SyntaxError: invalid syntax compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/pygram.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/relalg.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/remotetest.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlbind.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlgen.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlgram.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlgtest.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlmod.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlsem.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/sqlwhere.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/__init__.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/stubs.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_directives.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_doctests.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_dsnparser.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_gadflyadapter.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_gadflyphantom.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_gadflyrootdirective.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_resultset.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_row.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_zopeconnection.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_zopecursor.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_zopedatabaseadapter.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/tests/test_zopedbtransactionmanager.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/__init__.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadflyda.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadflyzcml.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/interfaces.py compile /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/zcml.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/zope/rdb/__pycache__/zcml.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/__pycache__/zcml.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/__pycache__/interfaces.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/__pycache__/interfaces.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/__pycache__/gadflyzcml.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/__pycache__/gadflyzcml.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/__pycache__/gadflyda.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/__pycache__/gadflyda.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_zopedbtransactionmanager.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_zopedbtransactionmanager.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_zopedatabaseadapter.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_zopedatabaseadapter.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_zopecursor.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_zopecursor.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_zopeconnection.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_zopeconnection.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_row.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_row.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_resultset.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_resultset.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_gadflyrootdirective.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_gadflyrootdirective.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_gadflyphantom.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_gadflyphantom.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_gadflyadapter.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_gadflyadapter.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_dsnparser.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_dsnparser.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_doctests.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_doctests.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_directives.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/test_directives.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/stubs.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/stubs.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/__init__.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/zope/rdb/tests/__pycache__/__init__.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlwhere.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlwhere.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlsem.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlsem.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlmod.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlmod.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlgtest.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlgtest.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlgram.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlgram.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlgram.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlgram.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlgen.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlgen.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlbind.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/sqlbind.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/remotetest.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/remotetest.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/relalg.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/relalg.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/pygram.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/pygram.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/pygram.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/pygram.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/kjbuckets0.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/kjbuckets0.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/kjSet.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/kjSet.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/kjSet.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/kjSet.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/kjParser.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/kjParser.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/kjParser.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/kjParser.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/kjParseBuild.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/kjParseBuild.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/kjParseBuild.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/kjParseBuild.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/idl.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/idl.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/idl.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/idl.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gftest.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gftest.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gfstest.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gfstest.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gfsocket.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gfsocket.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gfserve.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gfserve.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gfintrospect.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gfintrospect.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gfinstall.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gfinstall.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gfdb0.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gfdb0.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gfclient.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gfclient.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gadfly.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/gadfly.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/__init__.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/__init__.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/SQLTESTG.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/SQLTESTG.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/SQLTESTG.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/SQLTESTG.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/DumbLispGen.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/DumbLispGen.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/DumbLispGen.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/DumbLispGen.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/DLispShort.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/DLispShort.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/DLispShort.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/zope/rdb/gadfly/__pycache__/DLispShort.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/zope/rdb/browser/__pycache__/rdb.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/browser/__pycache__/rdb.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/browser/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/zope/rdb/browser/__pycache__/__init__.cpython-35.pyc' './usr/lib/python3/site-packages/zope/rdb/browser/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/zope/rdb/browser/__pycache__/__init__.cpython-35.opt-1.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/zope/rdb/zcml.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/zcml.pyc' './usr/lib/python2.7/site-packages/zope/rdb/interfaces.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/interfaces.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadflyzcml.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadflyzcml.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadflyda.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadflyda.pyc' './usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopedbtransactionmanager.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopedbtransactionmanager.pyc' './usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopedatabaseadapter.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopedatabaseadapter.pyc' './usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopecursor.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopecursor.pyc' './usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopeconnection.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/tests/test_zopeconnection.pyc' './usr/lib/python2.7/site-packages/zope/rdb/tests/test_row.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/tests/test_row.pyc' './usr/lib/python2.7/site-packages/zope/rdb/tests/test_resultset.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/tests/test_resultset.pyc' './usr/lib/python2.7/site-packages/zope/rdb/tests/test_gadflyrootdirective.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/tests/test_gadflyrootdirective.pyc' './usr/lib/python2.7/site-packages/zope/rdb/tests/test_gadflyphantom.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/tests/test_gadflyphantom.pyc' './usr/lib/python2.7/site-packages/zope/rdb/tests/test_gadflyadapter.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/tests/test_gadflyadapter.pyc' './usr/lib/python2.7/site-packages/zope/rdb/tests/test_dsnparser.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/tests/test_dsnparser.pyc' './usr/lib/python2.7/site-packages/zope/rdb/tests/test_doctests.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/tests/test_doctests.pyc' './usr/lib/python2.7/site-packages/zope/rdb/tests/test_directives.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/tests/test_directives.pyc' './usr/lib/python2.7/site-packages/zope/rdb/tests/stubs.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/tests/stubs.pyc' './usr/lib/python2.7/site-packages/zope/rdb/tests/__init__.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/tests/__init__.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlwhere.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlwhere.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgtest.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgtest.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgram.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgram.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgen.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgen.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/remotetest.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/remotetest.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/relalg.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/relalg.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/pygram.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/pygram.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjpylint.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjpylint.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjbuckets0.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjbuckets0.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjSet.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjSet.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParser.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParser.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParseBuild.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParseBuild.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/idl.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/idl.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/gftest.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/gftest.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfstest.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfstest.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfsocket.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfsocket.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfserve.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfserve.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfintrospect.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfintrospect.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfinstall.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfinstall.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfclient.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfclient.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/gadfly.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/gadfly.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/__init__.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/__init__.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/SQLTESTG.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/SQLTESTG.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/DumbLispGen.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/DumbLispGen.pyc' './usr/lib/python2.7/site-packages/zope/rdb/gadfly/DLispShort.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/gadfly/DLispShort.pyc' './usr/lib/python2.7/site-packages/zope/rdb/browser/rdb.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/browser/rdb.pyc' './usr/lib/python2.7/site-packages/zope/rdb/browser/__init__.pyo' => './usr/lib/python2.7/site-packages/zope/rdb/browser/__init__.pyc' Processing files: python-module-zope.rdb-3.5.0-alt3.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.33562 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-zope.rdb-3.5.0 + DOCDIR=/usr/src/tmp/python-module-zope.rdb-buildroot/usr/share/doc/python-module-zope.rdb-3.5.0 + export DOCDIR + rm -rf /usr/src/tmp/python-module-zope.rdb-buildroot/usr/share/doc/python-module-zope.rdb-3.5.0 + /bin/mkdir -p /usr/src/tmp/python-module-zope.rdb-buildroot/usr/share/doc/python-module-zope.rdb-3.5.0 + cp -prL CHANGES.txt README.txt /usr/src/tmp/python-module-zope.rdb-buildroot/usr/share/doc/python-module-zope.rdb-3.5.0 + chmod -R go-w /usr/src/tmp/python-module-zope.rdb-buildroot/usr/share/doc/python-module-zope.rdb-3.5.0 + chmod -R a+rX /usr/src/tmp/python-module-zope.rdb-buildroot/usr/share/doc/python-module-zope.rdb-3.5.0 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.a0tJd1 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.F7AP17 find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/__init__.py: skipping thread /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/DLispShort.py: line=71 IGNORE (for REQ=slight and deep=8) module=kjParseBuild /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/DLispShort.py: line=97 IGNORE (for REQ=slight and deep=8) module=TESTLispG /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/DLispShort.py: line=107 IGNORE (for REQ=slight and deep=8) module=kjParser /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/DumbLispGen.py: line=159 IGNORE (for REQ=slight and deep=8) module=kjParseBuild /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/DumbLispGen.py: line=203 IGNORE (for REQ=slight and deep=8) module=TESTLispG2 /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/SQLTESTG.py: line=48 IGNORE (for REQ=slight and deep=8) module=kjParseBuild /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/SQLTESTG.py: line=65 IGNORE (for REQ=slight and deep=8) module=kjParser python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/__init__.py: hiding sqlwhere, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/__init__.py: hiding gadfly, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gadfly.py: hiding sqlgen, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gadfly.py: hiding sqlbind, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gadfly.py: line=35 IGNORE (for REQ=slight and deep=11) module=gfdb0 /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gadfly.py: line=77 IGNORE (for REQ=slight and deep=11) module=gfdb0 /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gadfly.py: line=111 IGNORE (for REQ=slight and deep=11) module=gfdb0 /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gadfly.py: line=236 IGNORE (for REQ=slight and deep=11) module=gfdb0 /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gadfly.py: line=320 IGNORE (for REQ=slight and deep=15) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gadfly.py: line=400 IGNORE (for REQ=slight and deep=11) module=string python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfclient.py: hiding gfsocket, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfclient.py: line=65 IGNORE (for REQ=slight and deep=8) module=sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfclient.py: line=70 IGNORE (for REQ=slight and deep=12) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfclient.py: line=88 IGNORE (for REQ=slight and deep=8) module=socket /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfclient.py: line=129 IGNORE (for REQ=slight and deep=11) module=socket /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfclient.py: line=138 IGNORE (for REQ=slight and deep=11) module=socket /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=8 IGNORE (for REQ=slight and deep=8) module=hashlib /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=11 IGNORE (for REQ=slight and deep=8) module=md5 /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=25 IGNORE (for REQ=slight and deep=8) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=40 IGNORE (for REQ=slight and deep=8) module=marshal /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=48 IGNORE (for REQ=slight and deep=8) module=marshal /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=70 IGNORE (for REQ=slight and deep=8) module=os /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=120 IGNORE (for REQ=slight and deep=11) module=gfintrospect /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=170 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=188 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=197 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=232 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=269 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=285 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=485 IGNORE (for REQ=slight and deep=11) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=564 IGNORE (for REQ=slight and deep=11) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=583 IGNORE (for REQ=slight and deep=11) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=637 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=653 IGNORE (for REQ=slight and deep=11) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=696 IGNORE (for REQ=slight and deep=11) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=742 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=752 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=766 IGNORE (for REQ=slight and deep=11) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=799 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=892 IGNORE (for REQ=slight and deep=15) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=1031 IGNORE (for REQ=slight and deep=11) module=sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=1059 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=1089 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=1107 IGNORE (for REQ=slight and deep=11) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=1138 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=1148 IGNORE (for REQ=slight and deep=11) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=1285 IGNORE (for REQ=slight and deep=11) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=1310 IGNORE (for REQ=slight and deep=11) module=sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=1345 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=1357 IGNORE (for REQ=slight and deep=19) module=sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=1381 IGNORE (for REQ=slight and deep=11) module=sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfdb0.py: line=1383 IGNORE (for REQ=slight and deep=11) module=sqlsem python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfinstall.py: hiding sqlgen, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfinstall.py: skipping sys python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfintrospect.py: hiding gfdb0, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfintrospect.py: line=49 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfintrospect.py: line=56 IGNORE (for REQ=slight and deep=15) module=sqlsem python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfserve.py: hiding gadfly, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfserve.py: hiding gfsocket, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfserve.py: line=73 IGNORE (for REQ=slight and deep=8) module=sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfserve.py: line=86 IGNORE (for REQ=slight and deep=12) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfserve.py: line=179 IGNORE (for REQ=slight and deep=11) module=gfsocket /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfserve.py: line=180 IGNORE (for REQ=slight and deep=11) module=sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfserve.py: line=186 IGNORE (for REQ=slight and deep=11) module=select /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfserve.py: line=287 IGNORE (for REQ=slight and deep=39) module=traceback /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfserve.py: line=299 IGNORE (for REQ=slight and deep=19) module=traceback /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfserve.py: line=320 IGNORE (for REQ=slight and deep=11) module=socket /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfserve.py: line=320 IGNORE (for REQ=slight and deep=11) module=sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfserve.py: line=342 IGNORE (for REQ=slight and deep=11) module=gadfly /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfserve.py: line=400 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfserve.py: line=455 IGNORE (for REQ=slight and deep=11) module=marshal /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfserve.py: line=460 IGNORE (for REQ=slight and deep=11) module=sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfserve.py: line=479 IGNORE (for REQ=slight and deep=23) module=traceback /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfsocket.py: line=15 IGNORE (for REQ=slight and deep=8) module=gfserve /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfsocket.py: line=16 IGNORE (for REQ=slight and deep=8) module=sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfsocket.py: line=29 IGNORE (for REQ=slight and deep=8) module=marshal /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfsocket.py: line=45 IGNORE (for REQ=slight and deep=8) module=marshal /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfsocket.py: line=53 IGNORE (for REQ=slight and deep=8) module=marshal /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfsocket.py: line=60 IGNORE (for REQ=slight and deep=8) module=time /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfsocket.py: line=79 IGNORE (for REQ=slight and deep=8) module=marshal /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfsocket.py: line=161 IGNORE (for REQ=slight and deep=19) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfsocket.py: line=209 IGNORE (for REQ=slight and deep=15) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfsocket.py: line=215 IGNORE (for REQ=slight and deep=8) module=md5 python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfstest.py: skipping sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfstest.py: line=58 IGNORE (for REQ=slight and deep=12) module=gfserve /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfstest.py: line=85 IGNORE (for REQ=slight and deep=8) module=gfclient /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfstest.py: line=86 IGNORE (for REQ=slight and deep=8) module=sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfstest.py: line=135 IGNORE (for REQ=slight and deep=8) module=gfserve /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfstest.py: line=152 IGNORE (for REQ=slight and deep=8) module=gfclient /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfstest.py: line=153 IGNORE (for REQ=slight and deep=8) module=sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfstest.py: line=165 IGNORE (for REQ=slight and deep=16) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfstest.py: line=218 IGNORE (for REQ=slight and deep=8) module=gfclient /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gftest.py: line=11 IGNORE (for REQ=slight and deep=8) module=gadfly /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gftest.py: line=59 IGNORE (for REQ=slight and deep=8) module=sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gftest.py: line=175 IGNORE (for REQ=slight and deep=8) module=time /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gftest.py: line=244 IGNORE (for REQ=slight and deep=8) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gftest.py: line=247 IGNORE (for REQ=slight and deep=8) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gftest.py: line=614 IGNORE (for REQ=slight and deep=8) module=sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gftest.py: line=615 IGNORE (for REQ=slight and deep=8) module=gadfly /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gftest.py: line=694 IGNORE (for REQ=slight and deep=8) module=gadfly /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gftest.py: line=714 IGNORE (for REQ=slight and deep=8) module=sys python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/idl.py: hiding kjParser, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/idl.py: line=433 IGNORE (for REQ=slight and deep=8) module=kjParseBuild python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParseBuild.py: hiding kjSet, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParseBuild.py: hiding kjParser, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParseBuild.py: hiding kjParser, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParseBuild.py: line=253 IGNORE (for REQ=slight and deep=19) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParseBuild.py: line=1179 IGNORE (for REQ=slight and deep=11) module=marshal python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParser.py: hiding kjSet, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParser.py: line=84 IGNORE (for REQ=slight and deep=8) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParser.py: line=443 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParser.py: line=444 IGNORE (for REQ=slight and deep=11) module=re /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParser.py: line=824 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjParser.py: line=1229 IGNORE (for REQ=slight and deep=11) module=marshal /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjbuckets0.py: line=30 IGNORE (for REQ=slight and deep=15) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjbuckets0.py: line=124 IGNORE (for REQ=slight and deep=11) module=operator /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjbuckets0.py: line=132 IGNORE (for REQ=slight and deep=11) module=operator /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjbuckets0.py: line=472 IGNORE (for REQ=slight and deep=15) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjbuckets0.py: line=584 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjbuckets0.py: line=789 IGNORE (for REQ=slight and deep=11) module=types python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjpylint.py: hiding pygram, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjpylint.py: line=448 IGNORE (for REQ=slight and deep=8) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjpylint.py: line=541 IGNORE (for REQ=slight and deep=11) module=__builtin__ /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjpylint.py: line=563 IGNORE (for REQ=slight and deep=8) module=sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjpylint.py: line=578 IGNORE (for REQ=slight and deep=8) module=pygram /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjpylint.py: line=591 IGNORE (for REQ=slight and deep=8) module=find python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/pygram.py: hiding kjParser, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/pygram.py: hiding kjParser, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/pygram.py: line=469 IGNORE (for REQ=slight and deep=11) module=kjParser /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/pygram.py: line=673 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/pygram.py: line=811 IGNORE (for REQ=slight and deep=8) module=sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/pygram.py: line=811 IGNORE (for REQ=slight and deep=8) module=kjParser /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/pygram.py: line=839 IGNORE (for REQ=slight and deep=8) module=kjParseBuild /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/pygram.py: line=863 IGNORE (for REQ=slight and deep=8) module=kjParser /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/pygram.py: line=981 IGNORE (for REQ=slight and deep=8) module=time /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/relalg.py: line=118 IGNORE (for REQ=slight and deep=8) module=kjbuckets /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/relalg.py: line=120 IGNORE (for REQ=slight and deep=8) module=kjbuckets0 /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/relalg.py: line=136 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/relalg.py: line=181 IGNORE (for REQ=slight and deep=8) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/relalg.py: line=459 IGNORE (for REQ=slight and deep=8) module=kjParseBuild /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/relalg.py: line=479 IGNORE (for REQ=slight and deep=8) module=kjParser /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/relalg.py: line=489 IGNORE (for REQ=slight and deep=8) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/relalg.py: line=495 IGNORE (for REQ=slight and deep=8) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/relalg.py: line=511 IGNORE (for REQ=slight and deep=12) module=sys python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/remotetest.py: hiding gadfly, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/remotetest.py: hiding gfintrospect, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=52 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=58 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=67 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=73 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=78 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=88 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=97 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=111 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=118 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=125 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=140 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=152 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=161 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=165 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=203 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=226 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=247 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=253 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=259 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=269 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=271 IGNORE (for REQ=slight and deep=8) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=277 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=326 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=330 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=338 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=344 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=383 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=399 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=442 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=447 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=458 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=471 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=479 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=487 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=495 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=503 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=511 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=520 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=525 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=530 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=535 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=540 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlbind.py: line=571 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgen.py: line=17 IGNORE (for REQ=slight and deep=8) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgen.py: line=43 IGNORE (for REQ=slight and deep=8) module=kjParseBuild /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgen.py: line=44 IGNORE (for REQ=slight and deep=8) module=sqlgram /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgen.py: line=57 IGNORE (for REQ=slight and deep=8) module=sqlgtest /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgen.py: line=68 IGNORE (for REQ=slight and deep=8) module=kjParser /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlgen.py: line=76 IGNORE (for REQ=slight and deep=8) module=sqlwhere python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: hiding sqlsem, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: line=58 IGNORE (for REQ=slight and deep=11) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: line=62 IGNORE (for REQ=slight and deep=11) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: line=66 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: line=92 IGNORE (for REQ=slight and deep=11) module=gfdb0 /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: line=140 IGNORE (for REQ=slight and deep=11) module=gfdb0 /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: line=180 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: line=198 IGNORE (for REQ=slight and deep=11) module=gfdb0 /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: line=319 IGNORE (for REQ=slight and deep=12) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: line=406 IGNORE (for REQ=slight and deep=11) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: line=463 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: line=485 IGNORE (for REQ=slight and deep=19) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: line=519 IGNORE (for REQ=slight and deep=11) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: line=550 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: line=567 IGNORE (for REQ=slight and deep=19) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: line=598 IGNORE (for REQ=slight and deep=11) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: line=618 IGNORE (for REQ=slight and deep=11) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: line=644 IGNORE (for REQ=slight and deep=19) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: line=678 IGNORE (for REQ=slight and deep=15) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: line=682 IGNORE (for REQ=slight and deep=15) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: line=704 IGNORE (for REQ=slight and deep=11) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: line=721 IGNORE (for REQ=slight and deep=11) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlmod.py: line=722 IGNORE (for REQ=slight and deep=11) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=21 IGNORE (for REQ=slight and deep=8) module=kjbuckets /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=23 IGNORE (for REQ=slight and deep=8) module=kjbuckets0 python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: skipping sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=48 IGNORE (for REQ=slight and deep=8) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=291 IGNORE (for REQ=slight and deep=8) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=306 IGNORE (for REQ=slight and deep=8) module=sqlsem /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=316 IGNORE (for REQ=slight and deep=8) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=330 IGNORE (for REQ=slight and deep=12) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=504 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=680 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=741 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=749 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=884 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=925 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=947 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=1052 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=1065 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=1078 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=1092 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=1139 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=1266 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=1282 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=1416 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=1547 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=1598 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=1723 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=1816 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=1966 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=2031 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=2079 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=2173 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=2248 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=2367 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=2388 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=2451 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=2484 IGNORE (for REQ=slight and deep=8) module=types /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: line=2750 IGNORE (for REQ=slight and deep=11) module=gfdb0 python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: hiding sqlmod, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/sqlsem.py: hiding gfdb0, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadflyda.py: hiding gadfly, which SEEMS TO BE SELF-SATISFIED shebang.req.files: executable script /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/gfinstall.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python2.7/site-packages/zope/rdb/gadfly/kjpylint.py is not executable Provides: python2.7(zope.rdb), python2.7(zope.rdb.browser), python2.7(zope.rdb.browser.rdb), python2.7(zope.rdb.gadfly), python2.7(zope.rdb.gadfly.DLispShort), python2.7(zope.rdb.gadfly.DumbLispGen), python2.7(zope.rdb.gadfly.SQLTESTG), python2.7(zope.rdb.gadfly.gadfly), python2.7(zope.rdb.gadfly.gfclient), python2.7(zope.rdb.gadfly.gfdb0), python2.7(zope.rdb.gadfly.gfinstall), python2.7(zope.rdb.gadfly.gfintrospect), python2.7(zope.rdb.gadfly.gfserve), python2.7(zope.rdb.gadfly.gfsocket), python2.7(zope.rdb.gadfly.gfstest), python2.7(zope.rdb.gadfly.gftest), python2.7(zope.rdb.gadfly.idl), python2.7(zope.rdb.gadfly.kjParseBuild), python2.7(zope.rdb.gadfly.kjParser), python2.7(zope.rdb.gadfly.kjSet), python2.7(zope.rdb.gadfly.kjbuckets0), python2.7(zope.rdb.gadfly.kjpylint), python2.7(zope.rdb.gadfly.pygram), python2.7(zope.rdb.gadfly.relalg), python2.7(zope.rdb.gadfly.remotetest), python2.7(zope.rdb.gadfly.sqlbind), python2.7(zope.rdb.gadfly.sqlgen), python2.7(zope.rdb.gadfly.sqlgram), python2.7(zope.rdb.gadfly.sqlgtest), python2.7(zope.rdb.gadfly.sqlmod), python2.7(zope.rdb.gadfly.sqlsem), python2.7(zope.rdb.gadfly.sqlwhere), python2.7(zope.rdb.gadflyda), python2.7(zope.rdb.gadflyzcml), python2.7(zope.rdb.interfaces), python2.7(zope.rdb.zcml) Requires: python2.7(zope), python2.7(transaction), python2.7(ZODB3), python2.7(zope.container), python2.7(zope.interface), python2.7(zope.i18nmessageid), python2.7(zope.security), python2.7(zope.configuration), python2.7(zope.schema), python2.7(zope.thread), /usr/lib/python2.7/site-packages, python-modules, python2.7(persistent) Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.5Rqyvp Processing files: python3-module-zope.rdb-3.5.0-alt3.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.78591 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-zope.rdb-3.5.0 + DOCDIR=/usr/src/tmp/python-module-zope.rdb-buildroot/usr/share/doc/python3-module-zope.rdb-3.5.0 + export DOCDIR + rm -rf /usr/src/tmp/python-module-zope.rdb-buildroot/usr/share/doc/python3-module-zope.rdb-3.5.0 + /bin/mkdir -p /usr/src/tmp/python-module-zope.rdb-buildroot/usr/share/doc/python3-module-zope.rdb-3.5.0 + cp -prL CHANGES.txt README.txt /usr/src/tmp/python-module-zope.rdb-buildroot/usr/share/doc/python3-module-zope.rdb-3.5.0 + chmod -R go-w /usr/src/tmp/python-module-zope.rdb-buildroot/usr/share/doc/python3-module-zope.rdb-3.5.0 + chmod -R a+rX /usr/src/tmp/python-module-zope.rdb-buildroot/usr/share/doc/python3-module-zope.rdb-3.5.0 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.aNpKgk 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.rv5Jqq find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) python3.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/__init__.py: skipping time python3.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/__init__.py: skipping _thread /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/DLispShort.py: line=71 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/DLispShort.py: line=97 IGNORE (for REQ=slight and deep=8) module=TESTLispG /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/DLispShort.py: line=107 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/DumbLispGen.py: line=159 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/DumbLispGen.py: line=203 IGNORE (for REQ=slight and deep=8) module=TESTLispG2 /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/SQLTESTG.py: line=48 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/SQLTESTG.py: line=65 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__init__.py: line=4 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/__init__.py: line=11 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gadfly.py: line=4 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gadfly.py: line=35 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gadfly.py: line=77 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gadfly.py: line=111 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gadfly.py: line=236 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gadfly.py: line=320 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gadfly.py: line=399 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfclient.py: line=62 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfclient.py: line=65 IGNORE (for REQ=slight and deep=8) module=sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfclient.py: line=70 IGNORE (for REQ=slight and deep=12) module=string /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfclient.py: line=88 IGNORE (for REQ=slight and deep=8) module=socket /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfclient.py: line=129 IGNORE (for REQ=slight and deep=11) module=socket /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfclient.py: line=138 IGNORE (for REQ=slight and deep=11) module=socket /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=8 IGNORE (for REQ=slight and deep=8) module=hashlib /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=11 IGNORE (for REQ=slight and deep=8) module=md5 /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=25 IGNORE (for REQ=slight and deep=8) module=types /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=40 IGNORE (for REQ=slight and deep=8) module=marshal /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=48 IGNORE (for REQ=slight and deep=8) module=marshal /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=70 IGNORE (for REQ=slight and deep=8) module=os /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=120 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=170 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=188 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=197 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=232 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=269 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=285 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=483 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=562 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=581 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=635 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=651 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=694 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=740 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=750 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=764 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=797 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=890 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=1029 IGNORE (for REQ=slight and deep=11) module=sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=1057 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=1087 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=1105 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=1136 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=1146 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=1283 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=1308 IGNORE (for REQ=slight and deep=11) module=sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=1343 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=1355 IGNORE (for REQ=slight and deep=19) module=sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=1379 IGNORE (for REQ=slight and deep=11) module=sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfdb0.py: line=1381 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfinstall.py: line=45 possible relative import from ., UNIMPLEMENTED python3.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfinstall.py: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfintrospect.py: line=5 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfintrospect.py: line=49 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfintrospect.py: line=56 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=68 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=73 IGNORE (for REQ=slight and deep=8) module=sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=86 IGNORE (for REQ=slight and deep=12) module=string /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=179 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=180 IGNORE (for REQ=slight and deep=11) module=sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=186 IGNORE (for REQ=slight and deep=11) module=select /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=283 IGNORE (for REQ=slight and deep=39) module=traceback /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=295 IGNORE (for REQ=slight and deep=19) module=traceback /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=316 IGNORE (for REQ=slight and deep=11) module=socket /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=316 IGNORE (for REQ=slight and deep=11) module=sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=338 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 UNABLE to determine the imported name at parse-time: module_name /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 a form of __import__ was read which gave no deps: [273, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 348]], [325, [7, '(', 348], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module_name', 348]]]]]]]]]]]]]]]]]], [8, ')', 348]]]]]]]]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 UNABLE to determine the imported name at parse-time: module_name /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 a form of __import__ was read which gave no deps: [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 348]], [325, [7, '(', 348], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module_name', 348]]]]]]]]]]]]]]]]]], [8, ')', 348]]]]]]]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 UNABLE to determine the imported name at parse-time: module_name /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 a form of __import__ was read which gave no deps: [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 348]], [325, [7, '(', 348], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module_name', 348]]]]]]]]]]]]]]]]]], [8, ')', 348]]]]]]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 UNABLE to determine the imported name at parse-time: module_name /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 a form of __import__ was read which gave no deps: [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 348]], [325, [7, '(', 348], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module_name', 348]]]]]]]]]]]]]]]]]], [8, ')', 348]]]]]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 UNABLE to determine the imported name at parse-time: module_name /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 a form of __import__ was read which gave no deps: [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 348]], [325, [7, '(', 348], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module_name', 348]]]]]]]]]]]]]]]]]], [8, ')', 348]]]]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 UNABLE to determine the imported name at parse-time: module_name /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 a form of __import__ was read which gave no deps: [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 348]], [325, [7, '(', 348], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module_name', 348]]]]]]]]]]]]]]]]]], [8, ')', 348]]]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 UNABLE to determine the imported name at parse-time: module_name /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 a form of __import__ was read which gave no deps: [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 348]], [325, [7, '(', 348], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module_name', 348]]]]]]]]]]]]]]]]]], [8, ')', 348]]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 UNABLE to determine the imported name at parse-time: module_name /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 a form of __import__ was read which gave no deps: [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 348]], [325, [7, '(', 348], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module_name', 348]]]]]]]]]]]]]]]]]], [8, ')', 348]]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 UNABLE to determine the imported name at parse-time: module_name /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 a form of __import__ was read which gave no deps: [316, [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 348]], [325, [7, '(', 348], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module_name', 348]]]]]]]]]]]]]]]]]], [8, ')', 348]]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 UNABLE to determine the imported name at parse-time: module_name /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 a form of __import__ was read which gave no deps: [317, [318, [319, [320, [321, [322, [323, [1, '__import__', 348]], [325, [7, '(', 348], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module_name', 348]]]]]]]]]]]]]]]]]], [8, ')', 348]]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 UNABLE to determine the imported name at parse-time: module_name /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 a form of __import__ was read which gave no deps: [318, [319, [320, [321, [322, [323, [1, '__import__', 348]], [325, [7, '(', 348], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module_name', 348]]]]]]]]]]]]]]]]]], [8, ')', 348]]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 UNABLE to determine the imported name at parse-time: module_name /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 a form of __import__ was read which gave no deps: [319, [320, [321, [322, [323, [1, '__import__', 348]], [325, [7, '(', 348], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module_name', 348]]]]]]]]]]]]]]]]]], [8, ')', 348]]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 UNABLE to determine the imported name at parse-time: module_name /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 a form of __import__ was read which gave no deps: [320, [321, [322, [323, [1, '__import__', 348]], [325, [7, '(', 348], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module_name', 348]]]]]]]]]]]]]]]]]], [8, ')', 348]]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 UNABLE to determine the imported name at parse-time: module_name /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 a form of __import__ was read which gave no deps: [321, [322, [323, [1, '__import__', 348]], [325, [7, '(', 348], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module_name', 348]]]]]]]]]]]]]]]]]], [8, ')', 348]]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 UNABLE to determine the imported name at parse-time: module_name /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=348 a form of __import__ was read which gave no deps: [322, [323, [1, '__import__', 348]], [325, [7, '(', 348], [333, [334, [304, [308, [309, [310, [311, [314, [315, [316, [317, [318, [319, [320, [321, [322, [323, [1, 'module_name', 348]]]]]]]]]]]]]]]]]], [8, ')', 348]]] /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=396 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=451 IGNORE (for REQ=slight and deep=11) module=marshal /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=456 IGNORE (for REQ=slight and deep=11) module=sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfserve.py: line=475 IGNORE (for REQ=slight and deep=23) module=traceback /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfsocket.py: line=15 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfsocket.py: line=16 IGNORE (for REQ=slight and deep=8) module=sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfsocket.py: line=29 IGNORE (for REQ=slight and deep=8) module=marshal /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfsocket.py: line=45 IGNORE (for REQ=slight and deep=8) module=marshal /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfsocket.py: line=53 IGNORE (for REQ=slight and deep=8) module=marshal /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfsocket.py: line=60 IGNORE (for REQ=slight and deep=8) module=time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfsocket.py: line=79 IGNORE (for REQ=slight and deep=8) module=marshal /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfsocket.py: line=161 IGNORE (for REQ=slight and deep=19) module=string /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfsocket.py: line=209 IGNORE (for REQ=slight and deep=15) module=string /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfsocket.py: line=215 IGNORE (for REQ=slight and deep=8) module=md5 python3.req: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfstest.py: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfstest.py: line=58 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfstest.py: line=85 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfstest.py: line=86 IGNORE (for REQ=slight and deep=8) module=sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfstest.py: line=135 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfstest.py: line=152 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfstest.py: line=153 IGNORE (for REQ=slight and deep=8) module=sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfstest.py: line=165 IGNORE (for REQ=slight and deep=16) module=types /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gfstest.py: line=218 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gftest.py: line=11 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gftest.py: line=59 IGNORE (for REQ=slight and deep=8) module=sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gftest.py: line=175 IGNORE (for REQ=slight and deep=8) module=time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gftest.py: line=244 IGNORE (for REQ=slight and deep=8) module=string /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gftest.py: line=247 IGNORE (for REQ=slight and deep=8) module=string /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gftest.py: line=614 IGNORE (for REQ=slight and deep=8) module=sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gftest.py: line=615 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gftest.py: line=694 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/gftest.py: line=714 IGNORE (for REQ=slight and deep=8) module=sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/idl.py: line=415 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/idl.py: line=433 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjParseBuild.py: line=15 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjParseBuild.py: line=16 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjParseBuild.py: line=19 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjParseBuild.py: line=253 IGNORE (for REQ=slight and deep=19) module=types /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjParseBuild.py: line=1179 IGNORE (for REQ=slight and deep=11) module=marshal /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjParser.py: line=14 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjParser.py: line=84 IGNORE (for REQ=slight and deep=8) module=string /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjParser.py: line=442 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjParser.py: line=443 IGNORE (for REQ=slight and deep=11) module=re /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjParser.py: line=823 IGNORE (for REQ=slight and deep=11) module=string /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjParser.py: line=1227 IGNORE (for REQ=slight and deep=11) module=marshal /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjbuckets0.py: line=31 IGNORE (for REQ=slight and deep=15) module=types /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjbuckets0.py: line=125 IGNORE (for REQ=slight and deep=11) module=operator /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjbuckets0.py: line=133 IGNORE (for REQ=slight and deep=11) module=operator /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjbuckets0.py: line=473 IGNORE (for REQ=slight and deep=15) module=types /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjbuckets0.py: line=585 IGNORE (for REQ=slight and deep=11) module=types /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjbuckets0.py: line=790 IGNORE (for REQ=slight and deep=11) module=types python3.req: ERROR: /usr/src/tmp/python-module-zope.rdb-buildroot/usr/lib/python3/site-packages/zope/rdb/gadfly/kjpylint.py: invalid syntax (, line 456) Traceback (most recent call last): File "/usr/lib/rpm/python3.req.py", line 286, in lis = parser.suite('\n'.join(lines)+'\n').tolist(line_info=1) File "", line 456 raise "oops", x ^ SyntaxError: invalid syntax find-requires: ERROR: /usr/lib/rpm/python3.req failed error: /bin/sh failed error: Failed to find Requires RPM build errors: /bin/sh failed Failed to find Requires Command exited with non-zero status 1 35.60user 2.63system 0:41.43elapsed 92%CPU (0avgtext+0avgdata 40552maxresident)k 0inputs+0outputs (0major+287041minor)pagefaults 0swaps hsh-rebuild: rebuild of `python-module-zope.rdb-3.5.0-alt3.1.src.rpm' failed. Command exited with non-zero status 1 56.86user 7.77system 1:07.22elapsed 96%CPU (0avgtext+0avgdata 134156maxresident)k 0inputs+0outputs (0major+579239minor)pagefaults 0swaps