<86>Apr 14 01:29:40 userdel[108091]: delete user 'rooter' <86>Apr 14 01:29:40 groupadd[108298]: group added to /etc/group: name=rooter, GID=681 <86>Apr 14 01:29:40 groupadd[108298]: new group: name=rooter, GID=681 <86>Apr 14 01:29:40 useradd[108352]: new user: name=rooter, UID=681, GID=681, home=/root, shell=/bin/bash <86>Apr 14 01:29:40 userdel[108395]: delete user 'builder' <86>Apr 14 01:29:40 userdel[108395]: removed group 'builder' owned by 'builder' <86>Apr 14 01:29:40 userdel[108395]: removed shadow group 'builder' owned by 'builder' <86>Apr 14 01:29:40 groupadd[108409]: group added to /etc/group: name=builder, GID=682 <86>Apr 14 01:29:40 groupadd[108409]: group added to /etc/gshadow: name=builder <86>Apr 14 01:29:40 groupadd[108409]: new group: name=builder, GID=682 <86>Apr 14 01:29:40 useradd[108421]: new user: name=builder, UID=682, GID=682, home=/usr/src, shell=/bin/bash <13>Apr 14 01:29:43 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 14 01:29:43 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 14 01:29:43 rpmi: libtinfo-devel-5.9-alt8 1456756459 installed <13>Apr 14 01:29:43 rpmi: libncurses-devel-5.9-alt8 1456756459 installed <13>Apr 14 01:29:43 rpmi: python-modules-curses-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:29:43 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 14 01:29:43 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 14 01:29:43 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Apr 14 01:29:43 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 14 01:29:43 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 14 01:29:43 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <86>Apr 14 01:29:43 groupadd[118186]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 14 01:29:43 groupadd[118186]: group added to /etc/gshadow: name=_keytab <86>Apr 14 01:29:43 groupadd[118186]: new group: name=_keytab, GID=499 <13>Apr 14 01:29:43 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 14 01:29:44 rpmi: python3-base-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 01:29:44 rpmi: python3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 01:29:44 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:29:44 rpmi: rpm-build-python3-0.1.10.10-alt1.M80P.1 1530521451 installed <13>Apr 14 01:29:44 rpmi: libpython3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 01:29:44 rpmi: python3-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 14 01:29:44 rpmi: python3-dev-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 01:29:44 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:29:45 rpmi: python3-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 14 01:29:45 rpmi: python3-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 14 01:29:45 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:29:45 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:29:45 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:29:45 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:29:45 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:29:45 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:29:45 rpmi: python-tools-2to3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:29:45 rpmi: python-modules-xml-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:29:45 rpmi: python-modules-hotshot-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:29:45 rpmi: python-modules-bsddb-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:29:45 rpmi: python-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:29:45 rpmi: python-dev-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:29:45 rpmi: python-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 14 01:29:45 rpmi: python-modules-json-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:29:45 rpmi: python-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 14 01:29:45 rpmi: python-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed Installing python-module-couchdbkit-0.4.10-alt1.2.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.16544 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-couchdbkit-0.4.10 + echo 'Source #0 (python-module-couchdbkit-0.4.10.tar):' Source #0 (python-module-couchdbkit-0.4.10.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-couchdbkit-0.4.10.tar + cd python-module-couchdbkit-0.4.10 + /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/tests/test_schema.py --- ../python3/tests/test_schema.py (original) +++ ../python3/tests/test_schema.py (refactored) @@ -44,10 +44,10 @@ doc.foo="test" try: doc.bar="bla" - except AttributeError, e: - self.assert_(str(e) == "bar is not defined in schema (not a valid property)") + except AttributeError as e: + self.assertTrue(str(e) == "bar is not defined in schema (not a valid property)") doc.save() - self.assert_(not hasattr(doc, "bar")) + self.assertTrue(not hasattr(doc, "bar")) assert doc._doc['foo'] == "test" # With StaticDocument @@ -59,11 +59,11 @@ doc.foo="test" try: doc.bar="bla" - except AttributeError, e: - self.assert_(str(e) == "bar is not defined in schema (not a valid property)") + except AttributeError as e: + self.assertTrue(str(e) == "bar is not defined in schema (not a valid property)") doc.save() - self.assert_(not hasattr(doc, "bar")) - self.assert_(doc._doc['foo'] == "test") + self.assertTrue(not hasattr(doc, "bar")) + self.assertTrue(doc._doc['foo'] == "test") self.server.delete_db('couchdbkit_test') @@ -77,15 +77,15 @@ doc = Test(string="essai") - self.assert_(getattr(doc, 'string') is not None) - self.assert_(doc.string == "essai") + self.assertTrue(getattr(doc, 'string') is not None) + self.assertTrue(doc.string == "essai") doc1 = Test(string="essai", string2="essai2") - self.assert_(doc1.string == "essai") - self.assert_(doc1.string2 == "essai2") + self.assertTrue(doc1.string == "essai") + self.assertTrue(doc1.string2 == "essai2") doc2 = Test2(string2="essai") - self.assert_(doc2.string == "test") + self.assertTrue(doc2.string == "test") def testDeleteProperty(self): class Test(Document): @@ -93,26 +93,26 @@ doc = Test(string="test") del doc.string - self.assert_(getattr(doc, "string") == None) - self.assert_(doc['string'] == None) + self.assertTrue(getattr(doc, "string") == None) + self.assertTrue(doc['string'] == None) class Test2(Document): pass doc1 = Test2(string="test") del doc1.string - self.assert_(getattr(doc, "string") == None) + self.assertTrue(getattr(doc, "string") == None) def testContain(self): class Test(Document): string = StringProperty(default="test") doc = Test() - self.assert_('string' in doc) - self.assert_('test' not in doc) + self.assertTrue('string' in doc) + self.assertTrue('test' not in doc) doc.test = "test" - self.assert_('test' in doc) + self.assertTrue('test' in doc) def testLen(self): class Test(Document): @@ -120,9 +120,9 @@ string2 = StringProperty() doc = Test() - self.assert_(len(doc) == 3) + self.assertTrue(len(doc) == 3) doc.string3 = "4" - self.assert_(len(doc) == 4) + self.assertTrue(len(doc) == 4) def testStore(self): db = self.server.create_db('couchdbkit_test') @@ -135,14 +135,14 @@ doc.string2 = "test2" doc.save() - self.assert_(doc._id is not None) + self.assertTrue(doc._id is not None) doc1 = db.get(doc._id) - self.assert_(doc1['string2'] == "test2") + self.assertTrue(doc1['string2'] == "test2") doc2 = Test(string3="test") doc2.save() doc3 = db.get(doc2._id) - self.assert_(doc3['string3'] == "test") + self.assertTrue(doc3['string3'] == "test") self.server.delete_db('couchdbkit_test') @@ -155,34 +155,34 @@ string = StringProperty() doc1 = Test(string="test") - self.assert_(doc1._id is None) + self.assertTrue(doc1._id is None) doc2 = Test(string="test2") - self.assert_(doc2._id is None) + self.assertTrue(doc2._id is None) doc3 = Test(string="test3") - self.assert_(doc3._id is None) + self.assertTrue(doc3._id is None) try: Test.bulk_save( [doc1, doc2, doc3] ) - except TypeError, e: - self.assert_(str(e)== "doc database required to save document" ) + except TypeError as e: + self.assertTrue(str(e)== "doc database required to save document" ) Test.set_db( db ) bad_doc = Test2(string="bad_doc") try: Test.bulk_save( [doc1, doc2, doc3, bad_doc] ) - except ValueError, e: - self.assert_(str(e) == "one of your documents does not have the correct type" ) + except ValueError as e: + self.assertTrue(str(e) == "one of your documents does not have the correct type" ) Test.bulk_save( [doc1, doc2, doc3] ) - self.assert_(doc1._id is not None) - self.assert_(doc1._rev is not None) - self.assert_(doc2._id is not None) - self.assert_(doc2._rev is not None) - self.assert_(doc3._id is not None) - self.assert_(doc3._rev is not None) - self.assert_(doc1.string == "test") - self.assert_(doc2.string == "test2") - self.assert_(doc3.string == "test3") + self.assertTrue(doc1._id is not None) + self.assertTrue(doc1._rev is not None) + self.assertTrue(doc2._id is not None) + self.assertTrue(doc2._rev is not None) + self.assertTrue(doc3._id is not None) + self.assertTrue(doc3._rev is not None) + self.assertTrue(doc1.string == "test") + self.assertTrue(doc2.string == "test2") + self.assertTrue(doc3.string == "test3") self.server.delete_db('couchdbkit_test') @@ -200,12 +200,12 @@ doc.save() doc2 = Test.get(doc._id) - self.assert_(doc2.string2 == "test2") + self.assertTrue(doc2.string2 == "test2") doc2.string3 = "blah" doc2.save() doc3 = db.get(doc2._id) - self.assert_(doc3) + self.assertTrue(doc3) self.server.delete_db('couchdbkit_test') @@ -225,12 +225,12 @@ doc1 = Test.get(doc._id) self.server.delete_db('couchdbkit_test') - self.assert_(isinstance(doc1.field, basestring)) - self.assert_(isinstance(doc1.field1, datetime.datetime)) - self.assert_(isinstance(doc1.field2, datetime.date)) - self.assert_(isinstance(doc1.field3, datetime.time)) - self.assert_(isinstance(doc1.field4, decimal.Decimal)) - self.assert_(isinstance(doc1.field5, float)) + self.assertTrue(isinstance(doc1.field, str)) + self.assertTrue(isinstance(doc1.field1, datetime.datetime)) + self.assertTrue(isinstance(doc1.field2, datetime.date)) + self.assertTrue(isinstance(doc1.field3, datetime.time)) + self.assertTrue(isinstance(doc1.field4, decimal.Decimal)) + self.assertTrue(isinstance(doc1.field5, float)) def testDocType(self): class Test(Document): @@ -248,12 +248,12 @@ doc3 = Test2() doc4 = Test3() - self.assert_(doc1._doc_type == 'Test') - self.assert_(doc1._doc['doc_type'] == 'Test') - - self.assert_(doc3._doc_type == 'Test2') - self.assert_(doc4._doc_type == 'test_type') - self.assert_(doc4._doc['doc_type'] == 'test_type') + self.assertTrue(doc1._doc_type == 'Test') + self.assertTrue(doc1._doc['doc_type'] == 'Test') + + self.assertTrue(doc3._doc_type == 'Test2') + self.assertTrue(doc4._doc_type == 'test_type') + self.assertTrue(doc4._doc['doc_type'] == 'test_type') db = self.server.create_db('couchdbkit_test') @@ -271,10 +271,10 @@ self.server.delete_db('couchdbkit_test') - self.assert_(get1._doc['doc_type'] == 'Test') - self.assert_(get2._doc['doc_type']== 'Test2') - self.assert_(get3._doc['doc_type'] == 'Test2') - self.assert_(get4._doc['doc_type'] == 'tWARNING: couldn't encode ../python3/tests/test_schema.py's diff for your terminal RefactoringTool: Refactored ../python3/tests/test_resource.py est_type') + self.assertTrue(get1._doc['doc_type'] == 'Test') + self.assertTrue(get2._doc['doc_type']== 'Test2') + self.assertTrue(get3._doc['doc_type'] == 'Test2') + self.assertTrue(get4._doc['doc_type'] == 'test_type') def testInheriting(self): class TestDoc(Document): @@ -289,7 +289,7 @@ doc2 = TestDoc2(field1="a", field2="b", field3="c", field4="d") - self.assert_(len(doc2._dynamic_properties) == 1) + self.assertTrue(len(doc2._dynamic_properties) == 1) def testView(self): class TestDoc(Document): @@ -316,9 +316,9 @@ doc1.save() db.save_doc(design_doc) results = TestDoc.view('test/all') - self.assert_(len(results) == 2) + self.assertTrue(len(results) == 2) doc3 = list(results)[0] - self.assert_(hasattr(doc3, "field1")) + self.assertTrue(hasattr(doc3, "field1")) self.server.delete_db('couchdbkit_test') def testViewNoneValue(self): @@ -346,11 +346,11 @@ doc1.save() db.save_doc(design_doc) results = TestDoc.view('test/all') - self.assert_(len(results) == 2) - self.assert_(isinstance(results.first(), dict) == True) + self.assertTrue(len(results) == 2) + self.assertTrue(isinstance(results.first(), dict) == True) results2 = TestDoc.view('test/all', include_docs=True) - self.assert_(len(results2) == 2) - self.assert_(isinstance(results2.first(), TestDoc) == True) + self.assertTrue(len(results2) == 2) + self.assertTrue(isinstance(results2.first(), TestDoc) == True) self.server.delete_db('couchdbkit_test') @@ -378,22 +378,22 @@ db.save_doc(design_doc) results = TestDoc.view('test/all') - self.assert_(len(results) == 0) + self.assertTrue(len(results) == 0) self.assertRaises(NoResultFound, results.one, except_all=True) rst = results.one() - self.assert_(rst is None) + self.assertTrue(rst is None) results = TestDoc.view('test/all') doc.save() - self.assert_(len(results) == 1) + self.assertTrue(len(results) == 1) one = results.one() - self.assert_(isinstance(one, TestDoc) == True) + self.assertTrue(isinstance(one, TestDoc) == True) doc1.save() results = TestDoc.view('test/all') - self.assert_(len(results) == 2) + self.assertTrue(len(results) == 2) self.assertRaises(MultipleResultsFound, results.one) @@ -423,7 +423,7 @@ doc1.save() db.save_doc(design_doc) results = TestDoc.view('test/all') - self.assert_(len(results) == 2) + self.assertTrue(len(results) == 2) self.server.delete_db('couchdbkit_test') @@ -446,9 +446,9 @@ doc.save() doc1.save() results = TestDoc.temp_view(design_doc) - self.assert_(len(results) == 2) + self.assertTrue(len(results) == 2) doc3 = list(results)[0] - self.assert_(hasattr(doc3, "field1")) + self.assertTrue(hasattr(doc3, "field1")) self.server.delete_db('couchdbkit_test') def testDocumentAttachments(self): @@ -462,13 +462,13 @@ a = A() a.save() --- ../python3/tests/test_resource.py (original) +++ ../python3/tests/test_resource.py (refactored) @@ -28,21 +28,21 @@ def testGetInfo(self): info = self.couchdb.get().json_body - self.assert_(info.has_key('version')) + self.assertTrue('version' in info) def testCreateDb(self): res = self.couchdb.put('/couchdkbit_test').json_body - self.assert_(res['ok'] == True) + self.assertTrue(res['ok'] == True) all_dbs = self.couchdb.get('/_all_dbs').json_body - self.assert_('couchdkbit_test' in all_dbs) + self.assertTrue('couchdkbit_test' in all_dbs) self.couchdb.delete('/couRefactoringTool: Refactored ../python3/tests/test_loaders.py chdkbit_test') def testCreateEmptyDoc(self): res = self.couchdb.put('/couchdkbit_test/').json_body - self.assert_(res['ok'] == True) + self.assertTrue(res['ok'] == True) res = self.couchdb.post('/couchdkbit_test/', payload={}).json_body self.couchdb.delete('/couchdkbit_test') - self.assert_(len(res) > 0) + self.assertTrue(len(res) > 0) def testRequestFailed(self): bad = CouchdbResource('http://localhost:10000') --- ../python3/tests/test_loaders.py (original) +++ ../python3/tests/test_loaders.py (refactored) @@ -41,54 +41,54 @@ def testGetDoc(self): l = FileSystemDocsLoader(self.tempdir) design_doc = l.get_docs()[0] - self.assert_(isinstance(design_doc, dict)) - self.assert_('_id' in design_doc) - self.assert_(design_doc['_id'] == "_design/couchdbkit-test") - self.assert_('lib' in design_doc) - self.assert_('helpers' in design_doc['lib']) - self.assert_('template' in design_doc['lib']['helpers']) + self.assertTrue(isinstance(design_doc, dict)) + self.assertTrue('_id' in design_doc) + self.assertTrue(design_doc['_id'] == "_design/couchdbkit-test") + self.assertTrue('lib' in design_doc) + self.assertTrue('helpers' in design_doc['lib']) + self.assertTrue('template' in design_doc['lib']['helpers']) def testGetDocView(self): l = FileSystemDocsLoader(self.tempdir) design_doc = l.get_docs()[0] - self.assert_('views' in design_doc) - self.assert_('example' in design_doc['views']) - self.assert_('map' in design_doc['views']['example']) - self.assert_('emit' in design_doc['views']['example']['map']) + self.assertTrue('views' in design_doc) + self.assertTrue('example' in design_doc['views']) + self.assertTrue('map' in design_doc['views']['example']) + self.assertTrue('emit' in design_doc['views']['example']['map']) def testGetDocCouchApp(self): l = FileSystemDocsLoader(self.tempdir) design_doc = l.get_docs()[0] - self.assert_('couchapp' in design_doc) + self.assertTrue('couchapp' in design_doc) def testGetDocManifest(self): l = FileSystemDocsLoader(self.tempdir) design_doc = l.get_docs()[0] - self.assert_('manifest' in design_doc['couchapp']) - self.assert_('lib/helpers/template.js' in design_doc['couchapp']['manifest']) - self.assert_('foo/' in design_doc['couchapp']['manifest']) - self.assert_(len(design_doc['couchapp']['manifest']) == 16) + self.assertTrue('manifest' in design_doc['couchapp']) + self.assertTrue('lib/helpers/template.js' in design_doc['couchapp']['manifest']) + self.assertTrue('foo/' in design_doc['couchapp']['manifest']) + self.assertTrue(len(design_doc['couchapp']['manifest']) == 16) def testGetDocAttachments(self): l = FileSystemDocsLoader(self.tempdir) design_doc = l.get_docs()[0] - self.assert_('_attachments' in design_doc) - self.assert_('index.html' in design_doc['_attachments']) - self.assert_('style/main.css' in design_doc['_attachments']) + self.assertTrue('_attachments' in design_doc) + self.assertTrue('index.html' in design_doc['_attachments']) + self.assertTrue('style/main.css' in design_doc['_attachments']) content = open(design_doc['_attachments']['style/main.css'], 'rb').read() - self.assert_(content == "/* add styles here */") + self.assertTrue(content == "/* add styles here */") def testGetDocSignatures(self): l = FileSystemDocsLoader(self.tempdir) design_doc = l.get_docs()[0] - self.assert_('signatures' in design_doc['couchapp']) - self.assert_(len(design_doc['couchapp']['signatures']) == 2) - self.assert_('index.html' in design_doc['couchapp']['signatures']) + self.assertTrue('signatures' in design_doc['couchapp']) +RefactoringTool: Refactored ../python3/tests/test_consumer.py self.assertTrue(len(design_doc['couchapp']['signatures']) == 2) + self.assertTrue('index.html' in design_doc['couchapp']['signatures']) signature = design_doc['couchapp']['signatures']['index.html'] fsignature = sign_file(os.path.join(self.app_dir, '_attachments/index.html')) - self.assert_(signature==fsignature) + self.assertTrue(signature==fsignature) def _sync(self, atomic=True): l = FileSystemDocsLoader(self.tempdir) @@ -99,40 +99,40 @@ design_doc = self.db['_design/couchdbkit-test'] except ResourceNotFound: pass - self.assert_(design_doc is not None) + self.assertTrue(design_doc is not None) # should create view - self.assert_('function' in design_doc['views']['example']['map']) + self.assertTrue('function' in design_doc['views']['example']['map']) # should not create empty views self.assertFalse('empty' in design_doc['views']) self.assertFalse('wrong' in design_doc['views']) # should use macros - self.assert_('stddev' in design_doc['views']['example']['map']) - self.assert_('ejohn.org' in design_doc['shows']['example-show']) + self.assertTrue('stddev' in design_doc['views']['example']['map']) + self.assertTrue('ejohn.org' in design_doc['shows']['example-show']) # should have attachments - self.assert_('_attachments' in design_doc) + self.assertTrue('_attachments' in design_doc) # should create index - self.assert_(design_doc['_attachments']['index.html']['content_type'] == 'text/html') + self.assertTrue(design_doc['_attachments']['index.html']['content_type'] == 'text/html') # should create manifest - self.assert_('foo/' in design_doc['couchapp']['manifest']) + self.assertTrue('foo/' in design_doc['couchapp']['manifest']) # should push and macro the doc shows - self.assert_('Generated CouchApp Form Template' in design_doc['shows']['example-show']) + self.assertTrue('Generated CouchApp Form Template' in design_doc['shows']['example-show']) # should push and macro the view lists - self.assert_('Test XML Feed' in design_doc['lists']['feed']) + self.assertTrue('Test XML Feed' in design_doc['lists']['feed']) # should allow deeper includes self.assertFalse('"helpers"' in design_doc['shows']['example-show']) # deep require macros self.assertFalse('"template"' in design_doc['shows']['example-show']) - self.assert_('Resig' in design_doc['shows']['example-show']) + self.assertTrue('Resig' in design_doc['shows']['example-show']) def testSync(self): self._sync() --- ../python3/tests/test_consumer.py (original) +++ ../python3/tests/test_consumer.py (refactored) @@ -26,22 +26,22 @@ def test_fetch(self): res1 = self.consumer.fetch() - self.assert_("last_seq" in res1) - self.assert_(res1["last_seq"] == 0) - self.assert_(res1["results"] == []) + self.assertTrue("last_seq" in res1) + self.assertTrue(res1["last_seq"] == 0) + self.assertTrue(res1["results"] == []) doc = {} self.db.save_doc(doc) res2 = self.consumer.fetch() - self.assert_(res2["last_seq"] == 1) - self.assert_(len(res2["results"]) == 1) + self.assertTrue(res2["last_seq"] == 1) + self.assertTrue(len(res2["results"]) == 1) line = res2["results"][0] - self.assert_(line["id"] == doc["_id"]) + self.assertTrue(line["id"] == doc["_id"]) def test_longpoll(self): def test_line(line): - self.assert_(line["last_seq"] == 1) - self.assert_(len(line["results"]) == 1) + self.assertTrue(line["last_seq"] == 1) + self.assertTrue(len(line["results"]) == 1) self.cRefactoringTool: Refactored ../python3/tests/client_test.py onsumer.register_callback(test_line) t = threading.Thread(target=self.consumer.wait_once) @@ -65,13 +65,13 @@ self.db.save_doc(doc) self.db.ensure_full_commit() time.sleep(0.5) - self.assert_(len(self.lines) == 5) - self.assert_(self.lines[4]["id"] == "test4") + self.assertTrue(len(self.lines) == 5) + self.assertTrue(self.lines[4]["id"] == "test4") doc = {"_id": "test5"} self.db.save_doc(doc) time.sleep(0.5) - self.assert_(len(self.lines) == 6) - self.assert_(self.lines[5]["id"] == "test5") + self.assertTrue(len(self.lines) == 6) + self.assertTrue(self.lines[5]["id"] == "test5") if __name__ == '__main__': unittest.main() --- ../python3/tests/client_test.py (original) +++ ../python3/tests/client_test.py (refactored) @@ -31,30 +31,30 @@ def testGetInfo(self): info = self.Server.info() - self.assert_(info.has_key('version')) + self.assertTrue('version' in info) def testCreateDb(self): res = self.Server.create_db('couchdbkit_test') - self.assert_(isinstance(res, Database) == True) + self.assertTrue(isinstance(res, Database) == True) all_dbs = self.Server.all_dbs() - self.assert_('couchdbkit_test' in all_dbs) + self.assertTrue('couchdbkit_test' in all_dbs) del self.Server['couchdbkit_test'] res = self.Server.create_db("couchdbkit/test") - self.assert_('couchdbkit/test' in self.Server.all_dbs()) + self.assertTrue('couchdbkit/test' in self.Server.all_dbs()) del self.Server['couchdbkit/test'] def testGetOrCreateDb(self): # create the database gocdb = self.Server.get_or_create_db("get_or_create_db") - self.assert_(gocdb.dbname == "get_or_create_db") - self.assert_("get_or_create_db" in self.Server) + self.assertTrue(gocdb.dbname == "get_or_create_db") + self.assertTrue("get_or_create_db" in self.Server) self.Server.delete_db("get_or_create_db") # get the database (already created) self.assertFalse("get_or_create_db" in self.Server) db = self.Server.create_db("get_or_create_db") - self.assert_("get_or_create_db" in self.Server) + self.assertTrue("get_or_create_db" in self.Server) gocdb = self.Server.get_or_create_db("get_or_create_db") - self.assert_(db.dbname == gocdb.dbname) + self.assertTrue(db.dbname == gocdb.dbname) self.Server.delete_db("get_or_create_db") def testBadResourceClassType(self): @@ -62,23 +62,23 @@ def testServerLen(self): res = self.Server.create_db('couchdbkit_test') - self.assert_(len(self.Server) >= 1) - self.assert_(bool(self.Server)) + self.assertTrue(len(self.Server) >= 1) + self.assertTrue(bool(self.Server)) del self.Server['couchdbkit_test'] def testServerContain(self): res = self.Server.create_db('couchdbkit_test') - self.assert_('couchdbkit_test' in self.Server) + self.assertTrue('couchdbkit_test' in self.Server) del self.Server['couchdbkit_test'] def testGetUUIDS(self): uuid = self.Server.next_uuid() - self.assert_(isinstance(uuid, basestring) == True) - self.assert_(len(self.Server._uuids) == 999) + self.assertTrue(isinstance(uuid, str) == True) + self.assertTrue(len(self.Server._uuids) == 999) uuid2 = self.Server.next_uuid() - self.assert_(uuid != uuid2) - self.assert_(len(self.Server._uuids) == 998) + self.assertTrue(uuid != uuid2) + self.assertTrue(len(self.Server._uuids) == 998) class ClientDatabaseTestCase(unittest.TestCase): def setUp(self): @@ -93,19 +93,19 @@ def testCreateDatabase(self): db = self.Server.create_db('couchdbkit_test') - self.assert_(isinstance(db, Database) == True) + self.assertTrue(isinstance(db, Database) == True) info = db.info() - self.assert_(info['db_name'] == 'couchdbkit_test') + self.assertTrue(info['db_name'] == 'couchdbkit_test') del self.Server['couchdbkit_test'] def testDbFromUri(self): db = self.Server.create_db('couchdbkit_test') db1 = Database("http://127.0.0.1:5984/couchdbkit_test") - self.assert_(hasattr(db1, "dbname") == True) - self.assert_(db1.dbname == "couchdbkit_test") + self.assertTrue(hasattr(db1, "dbname") == True) + self.assertTrue(db1.dbname == "couchdbkit_test") info = db1.info() - self.assert_(info['db_name'] == "couchdbkit_test") + self.assertTrue(info['db_name'] == "couchdbkit_test") def testCreateEmptyDoc(self): @@ -113,7 +113,7 @@ doc = {} db.save_doc(doc) del self.Server['couchdbkit_test'] - self.assert_('_id' in doc) + self.assertTrue('_id' in doc) def testCreateDoc(self): @@ -121,20 +121,20 @@ # create doc without id doc = { 'string': 'test', 'number': 4 } db.save_doc(doc) - self.assert_(db.doc_exist(doc['_id'])) + self.assertTrue(db.doc_exist(doc['_id'])) # create doc with id doc1 = { '_id': 'test', 'string': 'test', 'number': 4 } db.save_doc(doc1) - self.assert_(db.doc_exist('test')) + self.assertTrue(db.doc_exist('test')) doc2 = { 'string': 'test', 'number': 4 } db['test2'] = doc2 - self.assert_(db.doc_exist('test2')) + self.assertTrue(db.doc_exist('test2')) del self.Server['couchdbkit_test'] db = self.Server.create_db('couchdbkit/test') doc1 = { '_id': 'test', 'string': 'test', 'number': 4 } db.save_doc(doc1) - self.assert_(db.doc_exist('test')) + self.assertTrue(db.doc_exist('test')) del self.Server['couchdbkit/test'] def testUpdateDoc(self): @@ -144,35 +144,35 @@ doc.update({'number': 6}) db.save_doc(doc) doc = db.get(doc['_id']) - self.assert_(doc['number'] == 6) + self.assertTrue(doc['number'] == 6) del self.Server['couchdbkit_test'] def testDocWithSlashes(self): db = self.Server.create_db('couchdbkit_test') doc = { '_id': "a/b"} db.save_doc(doc) - self.assert_( "a/b" in db) + self.assertTrue( "a/b" in db) doc = { '_id': "http://a"} db.save_doc(doc) - self.assert_( "http://a" in db) + self.assertTrue( "http://a" in db) doc = db.get("http://a") - self.assert_(doc is not None) + self.assertTrue(doc is not None) def not_found(): doc = db.get('http:%2F%2Fa') self.assertRaises(ResourceNotFound, not_found) - self.assert_(doc.get('_id') == "http://a") + self.assertTrue(doc.get('_id') == "http://a") doc.get('_id') doc = { '_id': "http://b"} db.save_doc(doc) - self.assert_( "http://b" in db) + self.assertTrue( "http://b" in db) doc = { '_id': '_design/a' } db.save_doc(doc) - self.assert_( "_design/a" in db) + self.assertTrue( "_design/a" in db) del self.Server['couchdbkit_test'] def testGetRev(self): @@ -180,7 +180,7 @@ doc = {} db.save_doc(doc) rev = db.get_rev(doc['_id']) - self.assert_(rev == doc['_rev']) + self.assertTrue(rev == doc['_rev']) def testForceUpdate(self): db = self.Server.create_db('couchdbkit_test') @@ -196,7 +196,7 @@ except ResourceConflict: is_conflict = True - self.assert_(is_conflict == False) + self.assertTrue(is_conflict == False) def testMultipleDocWithSlashes(self): @@ -205,9 +205,9 @@ doc1 = { '_id': "http://a"} doc3 = { '_id': '_design/a' } db.bulk_save([doc, doc1, doc3]) - self.assert_( "a/b" in db) - self.assert_( "http://a" in db) - self.assert_( "_design/a" in db) + self.assertTrue( "a/b" in db) + self.assertTrue( "http://a" in db) + self.assertTrue( "_design/a" in db) def not_found(): doc = db.get('http:%2F%2Fa') @@ -219,8 +219,8 @@ db.save_doc(doc1) doc2 = { 'string': 'test', 'number': 4 } db['test2'] = doc2 - self.assert_(db.doc_exist('test')) - self.assert_(db.doc_exist('test2')) + self.assertTrue(db.doc_exist('test')) + self.assertTrue(db.doc_exist('test2')) design_doc = { '_id': '_design/test', 'language': 'javascript', @@ -232,14 +232,14 @@ } } db.save_doc(design_doc) - self.assert_(len(db) == 3) + self.assertTrue(len(db) == 3) db.flush() - self.assert_(len(db) == 1) + self.assertTrue(len(db) == 1) self.assertFalse(db.doc_exist('test')) self.assertFalse(db.doc_exist('test2')) - self.assert_(db.doc_exist('_design/test')) + self.assertTrue(db.doc_exist('_design/test')) ddoc = db.get("_design/test") - self.assert_('all' in ddoc['views']) + self.assertTrue('all' in ddoc['views']) del self.Server['couchdbkit_test'] def testDbLen(self): @@ -249,7 +249,7 @@ doc2 = { 'string': 'test2', 'number': 4 } db.save_doc(doc2) - self.assert_(len(db) == 2) + self.assertTrue(len(db) == 2) del self.Server['couchdbkit_test'] def testDeleteDoc(self): @@ -258,12 +258,12 @@ db.save_doc(doc) docid=doc['_id'] db.delete_doc(docid) - self.assert_(db.doc_exist(docid) == False) + self.assertTrue(db.doc_exist(docid) == False) doc = { 'string': 'test', 'number': 4 } db.save_doc(doc) docid=doc['_id'] db.delete_doc(doc) - self.assert_(db.doc_exist(docid) == False) + self.assertTrue(db.doc_exist(docid) == False) del self.Server['couchdbkit_test'] @@ -292,13 +292,13 @@ } db.save_doc(doc) fetch_attachment = db.fetch_attachment(doc, "test.html") - self.assert_(attachment == fetch_attachment) + self.assertTrue(attachment == fetch_attachment) doc1 = db.get("docwithattachment") - self.assert_('_attachments' in doc1) - self.assert_('test.html' in doc1['_attachments']) - self.assert_('stub' in doc1['_attachments']['test.html']) - self.assert_(doc1['_attachments']['test.html']['stub'] == True) - self.assert_(len(attachment) == doc1['_attachments']['test.html']['length']) + self.assertTrue('_attachments' in doc1) + self.assertTrue('test.html' in doc1['_attachments']) + self.assertTrue('stub' in doc1['_attachments']['test.html']) + self.assertTrue(doc1['_attachments']['test.html']['stub'] == True) + self.assertTrue(len(attachment) == doc1['_attachments']['test.html']['length']) del self.Server['couchdbkit_test'] def testMultipleInlineAttachments(self): @@ -322,15 +322,15 @@ db.save_doc(doc) fetch_attachment = db.fetch_attachment(doc, "test.html") - self.assert_(attachment == fetch_attachment) + self.assertTrue(attachment == fetch_attachment) fetch_attachment = db.fetch_attachment(doc, "test2.html") - self.assert_(attachment2 == fetch_attachment) + self.assertTrue(attachment2 == fetch_attachment) doc1 = db.get("docwithattachment") - self.assert_('test.html' in doc1['_attachments']) - self.assert_('test2.html' in doc1['_attachments']) - self.assert_(len(attachment) == doc1['_attachments']['test.html']['length']) - self.assert_(len(attachment2) == doc1['_attachments']['test2.html']['length']) + self.assertTrue('test.html' in doc1['_attachments']) + self.assertTrue('test2.html' in doc1['_attachments']) + self.aWARNING: couldn't encode ../python3/tests/client_test.py's diff for your terminal RefactoringTool: No changes to ../python3/setup.py RefactoringTool: No changes to ../python3/examples/wsgi/test.py RefactoringTool: No changes to ../python3/examples/djangoapp/urls.py RefactoringTool: No changes to ../python3/examples/djangoapp/settings.py RefactoringTool: No changes to ../python3/examples/djangoapp/run.py RefactoringTool: Refactored ../python3/examples/djangoapp/manage.py RefactoringTool: No changes to ../python3/examples/djangoapp/greeting/views.py RefactoringTool: No changes to ../python3/examples/djangoapp/greeting/models.py RefactoringTool: No changes to ../python3/doc/couchdbkit.org/conf.py RefactoringTool: Refactored ../python3/doc/couchdbkit.org/buildweb.py ssertTrue(len(attachment) == doc1['_attachments']['test.html']['length']) + self.assertTrue(len(attachment2) == doc1['_attachments']['test2.html']['length']) del self.Server['couchdbkit_test'] def testInlineAttachmentWithStub(self): @@ -358,25 +358,25 @@ db.save_doc(doc1) fetch_attachment = db.fetch_attachment(doc1, "test2.html") - self.assert_(attachment2 == fetch_attachment) + self.assertTrue(attachment2 == fetch_attachment) doc2 = db.get("docwithattachment") - self.assert_('test.html' in doc2['_attachments']) - self.assert_('test2.html' in doc2['_attachments']) - self.assert_(len(attachment) == doc2['_attachments']['test.html']['length']) - self.assert_(len(attachment2) == doc2['_attachments']['test2.html']['length']) + self.assertTrue('test.html' in doc2['_attachments']) + self.assertTrue('test2.html' in doc2['_attachments']) + self.assertTrue(len(attachment) == doc2['_attachments']['test.html']['length']) + self.assertTrue(len(attachment2) == doc2['_attachments']['test2.html']['length']) del self.Server['couchdbkit_test'] def testAttachments(self): db = self.Server.create_db('couchdbkit_test') doc = { 'string': 'test', 'number': 4 } db.save_doc(doc) --- ../python3/examples/djangoapp/manage.py (original) +++ ../python3/examples/djangoapp/manage.py (refactored) @@ -1,7 +1,7 @@ #!/usr/bin/env python from django.core.management import execute_manager try: - import settings # Assumed to be in the same directory. + from . import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__) --- ../python3/doc/couchdbkit.org/buildweb.py (original) +++ ../python3/doc/couchdbkit.org/buildweb.py (refactored) @@ -15,7 +15,7 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -from __future__ import with_statement + import codecs import datetime @@ -106,7 +106,7 @@ files = [f for f in files if os.path.splitext(f)[1] in conf.EXTENSIONS] blog = None for f in files: - print "process %s" % f + print("process %s" % f) page = Page(self, f, current_dir, target_path) if page.is_blog() and f == "index.txt" or f == "archives.txt": continue @@ -119,14 +119,14 @@ if not source_newer(page.finput, page.foutput) and f != "index.txt": continue - print "write %s" % page.foutput + print("write %s" % page.foutput) try: f = codecs.open(page.foutput, 'w', 'utf-8') try: f.write(page.render()) finally: f.close() - except (IOError, OSError), err: + except (IOError, OSError) as err: raise self.sitemap.append(page) if blog is not None: @@ -151,16 +151,16 @@ rss.write_xml(open(os.path.join(conf.OUTPUT_PATH, "feed.xml"), "w")) def generate_sitemap(self): - xml = u'' - xml += u'' + xml = '' + xml += '' for page in self.sitemap: - xml += u'' - xml += u'%s' % page.url - xml += u'%s' % rfc3339_date(page.headers['published']) - xml += u'daily' - xmRefactoringTool: Refactored ../python3/distribute_setup.py l += u'0.5' - xml += u'' - xml += u'' + xml += '' + xml += '%s' % page.url + xml += '%s' % rfc3339_date(page.headers['published']) + xml += 'daily' + xml += '0.5' + xml += '' + xml += '' with codecs.open(os.path.join(conf.OUTPUT_PATH, "sitemaps.xml"), "w", "utf-8") as f: f.write(xml) @@ -218,7 +218,7 @@ archives_page = None if not os.path.isfile(index_page.finput): - raise IOError, "index.txt isn't found in %s" % self.current_dir + raise IOError("index.txt isn't found in %s" % self.current_dir) self.pages.sort(lambda a, b: a.headers['pubDate'] - b.headers['pubDate'], reverse=True) @@ -249,7 +249,7 @@ f.write(page.render()) finally: f.close() - except (IOError, OSError), err: + except (IOError, OSError) as err: raise self.site.sitemap.append(page) @@ -294,20 +294,20 @@ (header_lines,body) = raw.split("\n\n", 1) for header in header_lines.split("\n"): (name, value) = header.split(": ", 1) - headers[name.lower()] = unicode(value.strip()) + headers[name.lower()] = str(value.strip()) self.headers = headers self.headers['pubDate'] = os.stat(self.finput)[ST_CTIME] self.headers['published'] = datetime.datetime.fromtimestamp(self.headers['pubDate']) self.body = body content_type = self.headers.get('content_type', conf.CONTENT_TYPE) - if content_type in self.content_types.keys(): + if content_type in list(self.content_types.keys()): self.foutput = os.path.join(self.target_path, "%s.%s" % (os.path.splitext(self.filename)[0], self.files_ext[content_type])) self.url = self.get_url() else: - raise TypeError, "Unknown content_type" + raise TypeError("Unknown content_type") except: - raise TypeError, "Invalid page file format for %s" % self.finput + raise TypeError("Invalid page file format for %s" % self.finput) self.parsed = True def is_blog(self): @@ -320,11 +320,11 @@ self.parse() template = self.headers.get('template', conf.DEFAULT_TEMPLATE) content_type = self.headers.get('content_type', conf.CONTENT_TYPE) - if content_type in self.content_types.keys(): + if content_type in list(self.content_types.keys()): fun = getattr(self, "render_%s" % content_type) return fun(template) else: - raise TypeError, "Unknown content_type" + raise TypeError("Unknown content_type") def _render_html(self, template, body): kwargs = { @@ -341,13 +341,13 @@ def render_markdown(self, template): if markdown is None: - raise TypeError, "markdown isn't suported" + raise TypeError("markdown isn't suported") body = convert_markdown(self.body) return self._render_html(template, body) def render_textile(self, template): if textile is None: - raise TypeError, "textile isn't suported" + raise TypeError("textile isn't suported") body = convert_textile(self.body) return self._render_html(template, body) --- ../python3/distribute_setup.py (original) +++ ../python3/distribute_setup.py (refactored) @@ -178,7 +178,7 @@ try: from urllib.request import urlopen except ImportError: - from urllib2 import urlopen + from urllibRefactoringTool: Refactored ../python3/couchdbkit/wsgi/proxy.py RefactoringTool: Refactored ../python3/couchdbkit/wsgi/handler.py RefactoringTool: Refactored ../python3/couchdbkit/utils.py .request import urlopen tgz_name = "distribute-%s.tar.gz" % version url = download_base + tgz_name saveto = os.path.join(to_dir, tgz_name) --- ../python3/couchdbkit/wsgi/proxy.py (original) +++ ../python3/couchdbkit/wsgi/proxy.py (refactored) @@ -3,7 +3,7 @@ # This file is part of couchdbkit released under the MIT license. # See the NOTICE for more information. -import urlparse +import urllib.parse from restkit.contrib.wsgi_proxy import HostProxy, get_config, ALLOWED_METHODS from restkit.pool.simple import SimplePool @@ -38,7 +38,7 @@ req = Request(environ) if 'RAW_URI' in req.environ: # gunicorn so we can use real path non encoded - u = urlparse.urlparse(req.environ['RAW_URI']) + u = urllib.parse.urlparse(req.environ['RAW_URI']) req.environ['PATH_INFO'] = u.path resp = self.do_proy(req, environ, start_response) --- ../python3/couchdbkit/wsgi/handler.py (original) +++ ../python3/couchdbkit/wsgi/handler.py (refactored) @@ -5,9 +5,9 @@ import re import sys -import StringIO +import io import traceback -from urllib import unquote +from urllib.parse import unquote from restkit.utils import url_encode @@ -33,10 +33,10 @@ length = headers.get("CONTENT_LENGTH") if self.line["body"] and self.line["body"] != "undefined": length = len(self.line["body"]) - body = StringIO.StringIO(self.line["body"]) + body = io.StringIO(self.line["body"]) else: - body = StringIO.StringIO() + body = io.StringIO() # path script_name, path_info = self.line['path'][:2], self.line['path'][2:] @@ -49,7 +49,7 @@ # build query string args = [] query_string = None - for k, v in self.line["query"].items(): + for k, v in list(self.line["query"].items()): if v is None: continue else: @@ -68,7 +68,7 @@ environ = { "wsgi.url_scheme": 'http', "wsgi.input": body, - "wsgi.errors": StringIO.StringIO(), + "wsgi.errors": io.StringIO(), "wsgi.version": (1, 0), "wsgi.multithread": False, "wsgi.multiprocess": True, @@ -90,7 +90,7 @@ "SERVER_PROTOCOL": "HTTP/1.1" } - for key, value in headers.items(): + for key, value in list(headers.items()): key = 'HTTP_' + key.replace('-', '_') if key not in ('HTTP_CONTENT_TYPE', 'HTTP_CONTENT_LENGTH'): environ[key] = value @@ -106,7 +106,7 @@ def parse_headers(self): headers = {} - for name, value in self.line.get("headers", {}).items(): + for name, value in list(self.line.get("headers", {}).items()): name = name.strip().upper().encode("utf-8") headers[name] = value.strip().encode("utf-8") return headers --- ../python3/couchdbkit/utils.py (original) +++ ../python3/couchdbkit/utils.py (refactored) @@ -8,7 +8,7 @@ Mostly utility functions couchdbkit uses internally that don't really belong anywhere else in the modules. """ -from __future__ import with_statement + import codecs import string @@ -103,9 +103,9 @@ def to_bytestring(s): """ convert to bytestring an unicode """ - if not isinstance(s, basestring): + if not isinstance(s, str): return s - if isinstance(s, unicode): + if isinstance(s, str): return s.encode('utf-8') else: return s @@ -116,7 +116,7 @@ try: with codecs.open(fname, 'rb', "utf-8") as f: data = f.read() - except UnicodeError, e: + except UnicodeError as e: if force_read: return read_file(fname, utf8=False) else: @@ -167,7 +167,7 @@ """ try: data = read_file(filename, force_read=True) - except IOError, e: + except IOError as e: if e[0] == 2: RefactoringTool: No changes to ../python3/couchdbkit/schema/properties_proxy.py RefactoringTool: Refactored ../python3/couchdbkit/schema/properties.py return {} raise @@ -178,6 +178,6 @@ try: data = anyjson.deserialize(data) except ValueError: - print >>sys.stderr, "Json is invalid, can't load %s" % filename + print("Json is invalid, can't load %s" % filename, file=sys.stderr) raise return data --- ../python3/couchdbkit/schema/properties.py (original) +++ ../python3/couchdbkit/schema/properties.py (refactored) @@ -12,6 +12,7 @@ import time from couchdbkit.exceptions import * +import collections __all__ = ['ALLOWED_PROPERTY_TYPES', 'Property', 'StringProperty', 'IntegerProperty','DecimalProperty', 'BooleanProperty', @@ -23,12 +24,12 @@ 'value_to_property', 'LazyDict', 'LazyList'] ALLOWED_PROPERTY_TYPES = set([ - basestring, str, - unicode, + str, + str, bool, int, - long, + int, float, datetime.datetime, datetime.date, @@ -104,7 +105,7 @@ """ return default value """ default = self.default - if callable(default): + if isinstance(default, collections.Callable): default = default() return default @@ -124,11 +125,11 @@ raise BadValueError('Property %s is %r; must be one of %r' % ( self.name, value, self.choices)) if self.validators: - if isinstance(self.validators, (list, tuple,)): + if isinstance(self.validators, (list, tuple)): for validator in self.validators: - if callable(validator): + if isinstance(validator, collections.Callable): validator(value) - elif callable(self.validators): + elif isinstance(self.validators, collections.Callable): self.validators(value) return value @@ -148,7 +149,7 @@ def to_python(self, value): """ convert to python type """ - return unicode(value) + return str(value) def to_json(self, value): """ convert to json, Converted value is saved in couchdb. """ @@ -162,7 +163,7 @@ *Value type*: unicode """ - to_python = unicode + to_python = str def validate(self, value, required=True): value = super(StringProperty, self).validate(value, @@ -171,12 +172,12 @@ if value is None: return value - if not isinstance(value, basestring): + if not isinstance(value, str): raise BadValueError( 'Property %s must be unicode or str instance, not a %s' % (self.name, type(value).__name__)) return value - data_type = unicode + data_type = str class IntegerProperty(Property): """ Integer property. map to int @@ -195,7 +196,7 @@ if value is None: return value - if value is not None and not isinstance(value, (int, long,)): + if value is not None and not isinstance(value, int): raise BadValueError( 'Property %s must be %s or long instance, not a %s' % (self.name, type(self.data_type).__name__, @@ -262,7 +263,7 @@ return decimal.Decimal(value) def to_json(self, value): - return unicode(value) + return str(value) class DateTimeProperty(Property): """DateTime property. It convert iso3339 string @@ -295,13 +296,13 @@ return Property.default_value(self) def to_python(self, value): - if isinstance(value, basestring): + if isinstance(value, str): try: value = value.split('.', 1)[0] # strip out microseconds value = value.rstrip('Z') # remove timezone separator timestamp = timegm(time.strptime(value, '%Y-%m-%dT%H:%M:%S')) value = datetime.datetime.utcfromtimestamp(timestamp) - except ValueError, e: + except ValueError as e: raise ValueError('Invalid ISO date/time %r' % value) return value @@ -332,10 +333,10 @@ return datetime.datetime.now().date() def to_python(self, value): - if isinstance(value, basestring): + if isinstance(value, str): try: value = datetime.date(*time.strptime(value, '%Y-%m-%d')[:3]) - except ValueError, e: + except ValueError as e: raise ValueError('Invalid ISO date %r' % value) return value @@ -358,11 +359,11 @@ return datetime.datetime.now().time() def to_python(self, value): - if isinstance(value, basestring): + if isinstance(value, str): try: value = value.split('.', 1)[0] # strip out microseconds value = datetime.time(*time.strptime(value, '%H:%M:%S')[3:6]) - except ValueError, e: + except ValueError as e: raise ValueError('Invalid ISO time %r' % value) return value @@ -506,7 +507,7 @@ def __init__(self, verbose_name=None, default=None, required=False, **kwds): super(StringListProperty, self).__init__(verbose_name=verbose_name, - default=default, required=required, item_type=basestring,**kwds) + default=default, required=required, item_type=str,**kwds) # structures proxy @@ -528,11 +529,11 @@ if init_vals is None: self._wrap() else: - for key, value in init_vals.items(): + for key, value in list(init_vals.items()): self[key] = value def _wrap(self): - for key, json_value in self.doc.items(): + for key, json_value in list(self.doc.items()): if isinstance(json_value, dict): value = LazyDict(json_value, item_type=self.item_type) elif isinstance(json_value, list): @@ -568,7 +569,7 @@ return default def update(self, value): - for k, v in value.items(): + for k, v in list(value.items()): self[k] = v def popitem(self, value): @@ -690,10 +691,10 @@ datetime.date: DateProperty, datetime.time: TimeProperty, str: StringProperty, - unicode: StringProperty, + str: StringProperty, bool: BooleanProperty, int: IntegerProperty, - long: LongProperty, + int: LongProperty, float: FloatProperty, list: ListProperty, dict: DictProperty @@ -724,7 +725,7 @@ def validate_dict_content(value, item_type=None): """ validate type of values in a dict """ return dict([(k, validate_content(v, - item_type=item_type)) for k, v in value.iteritems()]) + item_type=item_type)) for k, v in value.items()]) def validate_content(value, item_type=None): """ validate a value. test if value is in supported types """ @@ -743,7 +744,7 @@ def dict_to_json(value, item_type=None): """ convert a dict to json """ - return dict([(k, value_to_json(v, item_type=item_type)) for k, v in value.iteritems()]) + return dict([(k, value_to_json(v, item_type=item_type)) for k, v in value.items()]) def list_to_json(value, item_type=None): """ convert a list to json """ @@ -761,7 +762,7 @@ elif isinstance(value, datetime.time) and is_type_ok(item_type, datetime.time): value = value.replace(microsecond=0).isoformat() elif isinstance(value, decimal.Decimal) and is_type_ok(item_type, decimal.Decimal): - value = unicode(value) + value = str(value) elif isinstance(value, list): value = list_to_json(value, item_type) elif isinstance(value, dict): @@ -777,7 +778,7 @@ have been put in json via `value_to_json` . """ data_type = None - if isinstance(value, basestring): + if isinstance(value, str): if re_date.match(value) and is_type_ok(item_type, datetime.datetime): data_type = datetime.date elif re_time.match(value) and is_type_ok(item_type, datetime.date): @@ -805,4 +806,4 @@ def dict_to_python(value, item_type=NoRefactoringTool: Refactored ../python3/couchdbkit/schema/base.py ne): """ convert a json object values to python dict """ - return dict([(k, value_to_python(v, item_type=item_type)) for k, v in value.iteritems()]) + return dict([(k, value_to_python(v, item_type=item_type)) for k, v in value.items()]) --- ../python3/couchdbkit/schema/base.py (original) +++ ../python3/couchdbkit/schema/base.py (refactored) @@ -19,6 +19,7 @@ LazyDict, LazyList, value_to_json from couchdbkit.exceptions import * from couchdbkit.resource import ResourceNotFound +import collections __all__ = ['ReservedWordError', 'ALLOWED_PROPERTY_TYPES', 'DocumentSchema', @@ -36,7 +37,7 @@ locals()) def valid_id(value): - if isinstance(value, basestring) and not value.startswith('_'): + if isinstance(value, str) and not value.startswith('_'): return value raise TypeError('id "%s" is invalid' % value) @@ -48,7 +49,7 @@ defined = set() for base in bases: if hasattr(base, '_properties'): - property_keys = base._properties.keys() + property_keys = list(base._properties.keys()) duplicate_properties = defined.intersection(property_keys) if duplicate_properties: raise DuplicatePropertyError( @@ -64,7 +65,7 @@ attrs['_doc_type'] = doc_type - for attr_name, attr in attrs.items(): + for attr_name, attr in list(attrs.items()): # map properties if isinstance(attr, p.Property): check_reserved_words(attr_name) @@ -88,9 +89,7 @@ return type.__new__(cls, name, bases, attrs) -class DocumentSchema(object): - __metaclass__ = SchemaProperties - +class DocumentSchema(object, metaclass=SchemaProperties): _dynamic_properties = None _allow_dynamic_properties = True _doc = None @@ -108,7 +107,7 @@ doc_type = getattr(self, '_doc_type', self.__class__.__name__) self._doc['doc_type'] = doc_type - for prop in self._properties.values(): + for prop in list(self._properties.values()): if prop.name in properties: value = properties.pop(prop.name) if value is None: @@ -118,7 +117,7 @@ prop.__property_init__(self, value) _dynamic_properties = properties.copy() - for attr_name, value in _dynamic_properties.iteritems(): + for attr_name, value in _dynamic_properties.items(): if attr_name not in self._properties \ and value is not None: if isinstance(value, p.Property): @@ -179,7 +178,7 @@ key not in self.properties() and \ key not in dir(self): if type(value) not in ALLOWED_PROPERTY_TYPES and \ - not isinstance(value, (p.Property,)): + not isinstance(value, p.Property): raise TypeError("Document Schema cannot accept values of type '%s'." % type(value).__name__) @@ -201,10 +200,10 @@ self._dynamic_properties[key] = value - if not isinstance(value, (p.Property,)) and \ + if not isinstance(value, p.Property) and \ not isinstance(value, dict) and \ not isinstance(value, list): - if callable(value): + if isinstance(value, collections.Callable): value = value() self._doc[key] = convert_property(value) else: @@ -235,10 +234,10 @@ """ try: attr = getattr(self, key) - if callable(attr): + if isinstance(attr, collections.Callable): raise AttributeError return attr - except AttributeError, e: + except AttributeError as e: if key in self._doc: return self._doc[key] raise @@ -254,8 +253,8 @@ """ try: delattr(self, RefactoringTool: No changes to ../python3/couchdbkit/schema/__init__.py RefactoringTool: Refactored ../python3/couchdbkit/resource.py key) - except AttributeError, e: - raise KeyError, e + except AttributeError as e: + raise KeyError(e) def __contains__(self, key): @@ -274,7 +273,7 @@ def __iter__(self): """ iter document instance properties """ - for k in self.all_properties().keys(): + for k in list(self.all_properties().keys()): yield k, self[k] raise StopIteration @@ -283,7 +282,7 @@ def items(self): """ return list of items """ - return [(k, self[k]) for k in self.all_properties().keys()] + return [(k, self[k]) for k in list(self.all_properties().keys())] def __len__(self): @@ -301,7 +300,7 @@ """ wrap `data` dict in object properties """ instance = cls() instance._doc = data - for prop in instance._properties.values(): + for prop in list(instance._properties.values()): if prop.name in data: value = data[prop.name] if value is not None: @@ -313,7 +312,7 @@ prop.__property_init__(instance, value) if cls._allow_dynamic_properties: - for attr_name, value in data.iteritems(): + for attr_name, value in data.items(): if attr_name in instance.properties(): continue if value is None: @@ -329,7 +328,7 @@ def validate(self, required=True): """ validate a document """ - for attr_name, value in self._doc.items(): + for attr_name, value in list(self._doc.items()): if attr_name in self._properties: self._properties[attr_name].validate( getattr(self, attr_name), required=required) @@ -337,7 +336,7 @@ def clone(self, **kwargs): """ clone a document """ - for prop_name in self._properties.keys(): + for prop_name in list(self._properties.keys()): try: kwargs[prop_name] = self._doc[prop_name] except KeyError: @@ -354,8 +353,8 @@ """ build a new instance from this document object. """ obj = cls() properties = {} - for attr_name, attr in kwargs.items(): - if isinstance(attr, (p.Property,)): + for attr_name, attr in list(kwargs.items()): + if isinstance(attr, p.Property): properties[attr_name] = attr attr.__property_config__(cls, attr_name) elif type(attr) in MAP_TYPES_PROPERTIES and \ @@ -594,7 +593,7 @@ if not wrapper: wrapper = None - elif not callable(wrapper): + elif not isinstance(wrapper, collections.Callable): raise TypeError("wrapper is not a callable") db = cls.get_db() --- ../python3/couchdbkit/resource.py (original) +++ ../python3/couchdbkit/resource.py (refactored) @@ -112,7 +112,7 @@ body = None if payload is not None: #TODO: handle case we want to put in payload json file. - if not hasattr(payload, 'read') and not isinstance(payload, basestring): + if not hasattr(payload, 'read') and not isinstance(payload, str): body = anyjson.serialize(payload).encode('utf-8') headers.setdefault('Content-Type', 'application/json') else: @@ -124,7 +124,7 @@ resp = Resource.request(self, method, path=path, payload=body, headers=headers, **params) - except ResourceError, e: + except ResourceError as e: msg = getattr(e, 'msg', '') if e.response and msg: @@ -151,7 +151,7 @@ response=e.response) else: raise - except Exception, e: + except Exception as e: raise RequestFailed(str(e)) return resp @@ -160,12 +160,12 @@ """ encode parameters in json if needed """ _params = {} if paramRefactoringTool: Refactored ../python3/couchdbkit/macros.py s: - for name, value in params.items(): + for name, value in list(params.items()): if value is None: continue if name in ('key', 'startkey', 'endkey') \ - or not isinstance(value, basestring): + or not isinstance(value, str): value = anyjson.serialize(value) _params[name] = value return _params @@ -181,7 +181,7 @@ re_sp = re.compile('\s') def encode_attachments(attachments): - for k, v in attachments.iteritems(): + for k, v in attachments.items(): if v.get('stub', False): continue else: --- ../python3/couchdbkit/macros.py (original) +++ ../python3/couchdbkit/macros.py (refactored) @@ -49,14 +49,14 @@ def package_views(doc, views, app_dir, objs, verbose=False): """ take a dict of funcs and return them processed """ - for view, funcs in views.iteritems(): + for view, funcs in views.items(): try: apply_lib(doc, funcs, app_dir, objs, verbose=verbose) - except AttributeError, e: + except AttributeError as e: # malformated views msg = """View %s is invalid. Folder structure is: designpathg/designname/views/viewname/{map,reduce}.js""" % view - print >>sys.stderr, msg + print(msg, file=sys.stderr) sys.exit(-1) @@ -64,15 +64,15 @@ """ run code macros and json macros on a list of funcs. It also maintain a list of processed code to be sure to not processing twice """ - for k, v in funcs.iteritems(): - if isinstance(v, basestring): + for k, v in funcs.items(): + if isinstance(v, str): old_v = v try: funcs[k] = run_json_macros(doc, run_code_macros(v, app_dir, verbose=verbose), app_dir, verbose=verbose) - except ValueError, e: - print >>sys.stderr, "Error running !code or !json on function \"%s\": %s" % (k, e) + except ValueError as e: + print("Error running !code or !json on function \"%s\": %s" % (k, e), file=sys.stderr) sys.exit(-1) if old_v != funcs[k]: objs[md5(to_bytestring(funcs[k])).hexdigest()] = old_v @@ -87,16 +87,16 @@ filenum = 0 for filename in glob.iglob(path): if verbose>=2: - print "process code macro: %s" % filename + print("process code macro: %s" % filename) try: library += read_file(filename) - except IOError, e: - print >>sys.stderr, e + except IOError as e: + print(e, file=sys.stderr) sys.exit(-1) filenum += 1 if not filenum: - print >>sys.stderr, "Processing code: No file matching '%s'" % mo.group(2) + print("Processing code: No file matching '%s'" % mo.group(2), file=sys.stderr) sys.exit(-1) return library @@ -121,8 +121,8 @@ library = read_json(filename) else: library = read_file(filename) - except IOError, e: - print >>sys.stderr, e + except IOError as e: + print(e, file=sys.stderr) sys.exit(1) filenum += 1 current_file = filename.split(app_dir)[1] @@ -136,7 +136,7 @@ else: include_to[field] = library if not filenum: - print >>sys.stderr, "Processing code: No file matching '%s'" % mo.group(2) + print("Processing code: No file matching '%s'" % mo.group(2), file=sys.stderr) sys.exit(-1) else: fields = mo.group(2).split('.') @@ -163,7 +163,7 @@ if not included: return f_string - for k, v in included.iteritems(): + RefactoringTool: Refactored ../python3/couchdbkit/loaders.py for k, v in included.items(): varstrings.append("var %s = %s;" % (k, anyjson.serialize(v))) return re_json.sub(rjson2, f_string) --- ../python3/couchdbkit/loaders.py (original) +++ ../python3/couchdbkit/loaders.py (refactored) @@ -15,11 +15,11 @@ one takes a directory and retrieve all design docs before sending them to CouchDB. Second allow you to send only one design doc. """ -from __future__ import with_statement + import base64 import copy -import httplib +import http.client import mimetypes import os import socket @@ -65,7 +65,7 @@ dbs = [dbs] doc_or_docs = self.get_docs() - if not isinstance(doc_or_docs, (list, tuple,)): + if not isinstance(doc_or_docs, (list, tuple)): doc_or_docs = [doc_or_docs] for doc in doc_or_docs: @@ -115,7 +115,7 @@ error = False try: db.put_attachment(doc, content, filename, content_length=content_length) - except (socket.error, httplib.BadStatusLine): + except (socket.error, http.client.BadStatusLine): time.sleep(0.4) error = True @@ -125,7 +125,7 @@ if nb_try > 3: if verbose >= 2: - print >>sys.stderr, "%s file not uploaded, sorry." % filename + print("%s file not uploaded, sorry." % filename, file=sys.stderr) break def encode_attachments(self, db, design_doc,new_doc, verbose=False): @@ -150,21 +150,21 @@ metadata = current_design.get('couchapp', {}) if 'signatures' in metadata: all_signatures = metadata['signatures'].copy() - for filename in metadata['signatures'].iterkeys(): + for filename in metadata['signatures'].keys(): if not filename not in _signatures: del new_attachments[filename] del all_signatures[filename] elif _signatures[filename] == metadata['signatures'][filename]: del attachments[filename] - for filename, value in attachments.iteritems(): + for filename, value in attachments.items(): content_length = _length.get(filename, None) if verbose: - print "Attaching %s (%s)" % (filename, content_length) + print("Attaching %s (%s)" % (filename, content_length)) with open(value, "rb") as f: new_attachments[filename] = { - "content_type": ';'.join(filter(None, mimetypes.guess_type(filename))), + "content_type": ';'.join([_f for _f in mimetypes.guess_type(filename) if _f]), "data": base64.b64encode(f.read()), } @@ -194,16 +194,16 @@ attachments = _attachments.copy() if 'signatures' in metadata: all_signatures = metadata['signatures'].copy() - for filename in metadata['signatures'].iterkeys(): + for filename in metadata['signatures'].keys(): if filename not in _signatures: db.delete_attachment(current_design, filename) elif _signatures[filename] == metadata['signatures'][filename]: del attachments[filename] - for filename, value in attachments.iteritems(): + for filename, value in attachments.items(): content_length = _length.get(filename, None) if verbose: - print "Attaching %s (%s)" % (filename, content_length) + print("Attaching %s (%s)" % (filename, content_length)) with open(value, "rb") as f: # fix issue with httplib that raises BadStatusLine @@ -235,10 +235,10 @@ """ def __init__(self, designpath, docpath=None): - if isinstance(designpath, basestring): + if isinstance(designpath, str): designpath = [designpath] docpath = docpath or [RefactoringTool: No changes to ../python3/couchdbkit/external.py RefactoringTool: Refactored ../python3/couchdbkit/ext/django/schema.py ] - if isinstance(docpath, basestring): + if isinstance(docpath, str): docpath = [docpath] self.designpath = list(designpath) @@ -256,8 +256,8 @@ fpath = os.path.join(docpath, name) try: doc = read_file(fpath) - except UnicodeDecodeError, e: - print >>sys.stderr, str(e) + except UnicodeDecodeError as e: + print(str(e), file=sys.stderr) raise if name.endswith('.json'): @@ -323,7 +323,7 @@ name = name[:-1] dmanifest[name] = i - for vname, value in design_doc['views'].iteritems(): + for vname, value in design_doc['views'].items(): if value and isinstance(value, dict): views[vname] = value else: @@ -386,19 +386,19 @@ verbose=verbose) else: if verbose >= 2: - print >>sys.stderr, "push %s" % rel_path + print("push %s" % rel_path, file=sys.stderr) content = '' try: content = read_file(current_path) - except UnicodeDecodeError, e: + except UnicodeDecodeError as e: if verbose >= 2: - print >>sys.stderr, "%s isn't encoded in utf8" % current_path + print("%s isn't encoded in utf8" % current_path, file=sys.stderr) content = read_file(current_path, utf8=False) try: content.encode('utf-8') - except UnicodeError, e: - print >>sys.stderr, "plan B didn't work, %s is a binary" % current_path - print >>sys.stderr, "use plan C: encode to base64" + except UnicodeError as e: + print("plan B didn't work, %s is a binary" % current_path, file=sys.stderr) + print("use plan C: encode to base64", file=sys.stderr) content = "base64-encoded;%s" % base64.b64encode(content) if name.endswith('.json'): @@ -406,16 +406,16 @@ content = anyjson.deserialize(content) except ValueError: if verbose >= 2: - print >>sys.stderr, "Json invalid in %s" % current_path + print("Json invalid in %s" % current_path, file=sys.stderr) # remove extension name, ext = os.path.splitext(name) if name in fields: if verbose >= 2: - print >>sys.stderr, "%(name)s is already in properties. Can't add (%(name)s%(ext)s)" % { + print("%(name)s is already in properties. Can't add (%(name)s%(ext)s)" % { "name": name, "ext": ext - } + }, file=sys.stderr) else: manifest.append(rel_path) fields[name] = content --- ../python3/couchdbkit/ext/django/schema.py (original) +++ ../python3/couchdbkit/ext/django/schema.py (refactored) @@ -84,7 +84,7 @@ # Any leftover attributes must be invalid. if meta_attrs != {}: - raise TypeError("'class Meta' got invalid attribute(s): %s" % ','.join(meta_attrs.keys())) + raise TypeError("'class Meta' got invalid attribute(s): %s" % ','.join(list(meta_attrs.keys()))) else: self.verbose_name_plural = string_concat(self.verbose_name, 's') del self.meta @@ -137,9 +137,8 @@ else: setattr(cls, name, valuRefactoringTool: Refactored ../python3/couchdbkit/ext/django/loading.py RefactoringTool: Refactored ../python3/couchdbkit/ext/django/forms.py RefactoringTool: No changes to ../python3/couchdbkit/ext/django/__init__.py RefactoringTool: No changes to ../python3/couchdbkit/exceptions.py RefactoringTool: Refactored ../python3/couchdbkit/consumer.py RefactoringTool: Refactored ../python3/couchdbkit/client.py e) -class Document(schema.Document): +class Document(schema.Document, metaclass=DocumentMeta): """ Document object for django extension """ - __metaclass__ = DocumentMeta get_id = property(lambda self: self['_id']) get_rev = property(lambda self: self['_rev']) --- ../python3/couchdbkit/ext/django/loading.py (original) +++ ../python3/couchdbkit/ext/django/loading.py (refactored) @@ -22,8 +22,8 @@ import sys import os -import urllib -import urlparse +import urllib.request, urllib.parse, urllib.error +import urllib.parse from couchdbkit import Server, contain, ResourceConflict from couchdbkit.loaders import FileSystemDocLoader @@ -81,7 +81,7 @@ app_label = app_name.split('.')[-1] if app_label in self._databases: if verbosity >=1: - print "sync `%s` in CouchDB" % app_name + print("sync `%s` in CouchDB" % app_name) db = self._databases[app_label] try: db.server.create_db(db.dbname) @@ -92,7 +92,7 @@ design_path = "%s/%s" % (app_path, "_design") if not os.path.isdir(design_path): if settings.DEBUG: - print >>sys.stderr, "%s don't exists, no ddoc synchronized" % design_path + print("%s don't exists, no ddoc synchronized" % design_path, file=sys.stderr) return loader = FileSystemDocLoader(app_path, "_design", design_name=app_label) loader.sync(db) --- ../python3/couchdbkit/ext/django/forms.py (original) +++ ../python3/couchdbkit/ext/django/forms.py (refactored) @@ -113,7 +113,7 @@ """ # avoid a circular import data = {} - for prop_name in instance._doc.keys(): + for prop_name in list(instance._doc.keys()): if properties and not prop_name in properties: continue if exclude and prop_name in exclude: @@ -139,7 +139,7 @@ values = [document._properties[prop] for prop in properties if \ prop in document._properties] else: - values = document._properties.values() + values = list(document._properties.values()) values.sort(lambda a, b: cmp(a.creation_counter, b.creation_counter)) for prop in values: @@ -243,7 +243,7 @@ opts = self._meta cleaned_data = self.cleaned_data.copy() - for prop_name in self.instance._doc.keys(): + for prop_name in list(self.instance._doc.keys()): if opts.properties and prop_name not in opts.properties: continue if opts.exclude and prop_name in opts.exclude: @@ -254,7 +254,7 @@ setattr(self.instance, prop_name, value) if dynamic: - for attr_name in cleaned_data.keys(): + for attr_name in list(cleaned_data.keys()): if opts.exclude and attr_name in opts.exclude: continue value = cleaned_data[attr_name] @@ -266,6 +266,5 @@ return self.instance -class DocumentForm(BaseDocumentForm): +class DocumentForm(BaseDocumentForm, metaclass=DocumentFormMetaClass): """ The document form object """ - __metaclass__ = DocumentFormMetaClass --- ../python3/couchdbkit/consumer.py (original) +++ ../python3/couchdbkit/consumer.py (refactored) @@ -3,13 +3,14 @@ # This file is part of couchdbkit released under the MIT license. # See the NOTICE for more information. -from __future__ import with_statement + import anyjson import asyncore import asynchat import socket import sys +import collections class Consumer(object): """ Database change consumer @@ -38,7 +39,7 @@ be sent with `wait_once` and `wait`methods. """ - if not callable(callback): + if not isinstance(callback, collections.Callable): raise TypeError("callback isn't a callable") self.callbacks.append(callback) --- ../python3/couchdbkit/client.py (original) +++ ../python3/couchdbkit/client.py (refactored) @@ -36,7 +36,7 @@ from mimetypes import guess_type import re import time -import urlparse +import urllib.parse import warnings import anyjson @@ -45,6 +45,7 @@ from couchdbkit.exceptions import * import couchdbkit.resource as resource from couchdbkit.utils import validate_dbname +import collections DEFAULT_UUID_BATCH_COUNT = 1000 @@ -105,7 +106,7 @@ """ try: resp = self.res.get() - except Exception, e: + except Exception as e: if _raw_json: return resp return UNKOWN_INFO @@ -208,7 +209,7 @@ def __len__(self): return len(self.all_dbs()) - def __nonzero__(self): + def __bool__(self): return (len(self) > 0) def _db_uri(self, dbname): @@ -298,7 +299,7 @@ except design docs.""" # save ddocs all_ddocs = self.all_docs(startkey="_design", - endkey="_design/"+u"\u9999", + endkey="_design/"+"\u9999", include_docs=True) ddocs = [] for ddoc in all_ddocs: @@ -354,7 +355,7 @@ doc = maybe_raw(self.res.get(docid, **params), raw=raw_json) if wrapper is not None: - if not callable(wrapper): + if not isinstance(wrapper, collections.Callable): raise TypeError("wrapper isn't a callable") return wrapper(doc) @@ -583,7 +584,7 @@ docid = resource.escape_docid(doc['_id']) result = maybe_raw(self.res.delete(docid, rev=doc['_rev']), raw=_raw_json) - elif isinstance(doc, basestring): # we get a docid + elif isinstance(doc, str): # we get a docid rev = self.get_rev(doc) docid = resource.escape_docid(doc) result = maybe_raw(self.res.delete(docid, rev=rev), @@ -596,7 +597,7 @@ @param dest: basestring or dict. if _rev is specified in dict it will override the doc @param _raw_json: return raw json instead deserializing it """ - if isinstance(doc, basestring): + if isinstance(doc, str): docid = doc else: if not '_id' in doc: @@ -605,7 +606,7 @@ if dest is None: destination = self.server.next_uuid(count=1) - elif isinstance(dest, basestring): + elif isinstance(dest, str): if dest in self: dest = self.get(dest)['_rev'] destination = "%s?rev=%s" % (dest['_id'], dest['_rev']) @@ -730,7 +731,7 @@ raise InvalidAttachment('You should provide a valid attachment name') name = url_quote(name, safe="") if content_type is None: - content_type = ';'.join(filter(None, guess_type(name))) + content_type = ';'.join([_f for _f in guess_type(name) if _f]) if content_type: headers['Content-Type'] = content_type @@ -780,7 +781,7 @@ @return: `restkit.httpc.Response` object """ - if isinstance(id_or_doc, basestring): + if isinstance(id_or_doc, str): docid = id_or_doc else: docid = id_or_doc['_id'] @@ -818,7 +819,7 @@ def __iter__(self): return self.documents().iterator() - def __nonzero__(self): + def __bool__(self): return (len(self) > 0) class ViewResults(object): @@ -909,7 +910,7 @@ # add key in view results that could be added by an external # like couchdb-lucene - for key in self._result_cache.keys(): + for key in list(self._result_cache.keys()): if key not in ["total_rows", "offset", "rows"]: self._dynamic_keys.append(key) setattr(self, key, self._result_cache[key]) @@ -945,7 +946,7 @@ params['startkey'] = key.start if key.stop is not None: params['endkey'] = key.stop - elif isinsRefactoringTool: No changes to ../python3/couchdbkit/__init__.py RefactoringTool: Files that were modified: RefactoringTool: ../python3/tests/test_schema.py RefactoringTool: ../python3/tests/test_resource.py RefactoringTool: ../python3/tests/test_loaders.py RefactoringTool: ../python3/tests/test_consumer.py RefactoringTool: ../python3/tests/client_test.py RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/examples/wsgi/test.py RefactoringTool: ../python3/examples/djangoapp/urls.py RefactoringTool: ../python3/examples/djangoapp/settings.py RefactoringTool: ../python3/examples/djangoapp/run.py RefactoringTool: ../python3/examples/djangoapp/manage.py RefactoringTool: ../python3/examples/djangoapp/greeting/views.py RefactoringTool: ../python3/examples/djangoapp/greeting/models.py RefactoringTool: ../python3/doc/couchdbkit.org/conf.py RefactoringTool: ../python3/doc/couchdbkit.org/buildweb.py RefactoringTool: ../python3/distribute_setup.py RefactoringTool: ../python3/couchdbkit/wsgi/proxy.py RefactoringTool: ../python3/couchdbkit/wsgi/handler.py RefactoringTool: ../python3/couchdbkit/utils.py RefactoringTool: ../python3/couchdbkit/schema/properties_proxy.py RefactoringTool: ../python3/couchdbkit/schema/properties.py RefactoringTool: ../python3/couchdbkit/schema/base.py RefactoringTool: ../python3/couchdbkit/schema/__init__.py RefactoringTool: ../python3/couchdbkit/resource.py RefactoringTool: ../python3/couchdbkit/macros.py RefactoringTool: ../python3/couchdbkit/loaders.py RefactoringTool: ../python3/couchdbkit/external.py RefactoringTool: ../python3/couchdbkit/ext/django/schema.py RefactoringTool: ../python3/couchdbkit/ext/django/loading.py RefactoringTool: ../python3/couchdbkit/ext/django/forms.py RefactoringTool: ../python3/couchdbkit/ext/django/__init__.py RefactoringTool: ../python3/couchdbkit/exceptions.py RefactoringTool: ../python3/couchdbkit/consumer.py RefactoringTool: ../python3/couchdbkit/client.py RefactoringTool: ../python3/couchdbkit/__init__.py tance(key, (list, tuple,)): + elif isinstance(key, (list, tuple)): params['keys'] = key else: params['key'] = key @@ -958,7 +959,7 @@ def __len__(self): return self.count() - def __nonzero__(self): + def __bool__(self): return bool(len(self)) + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.80428 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-couchdbkit-0.4.10 + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + /usr/bin/python setup.py build Traceback (most recent call last): File "/usr/src/RPM/BUILD/python-module-couchdbkit-0.4.10/couchdbkit/__init__.py", line 10, in from couchdbkit.resource import ResourceNotFound, ResourceConflict,\ File "/usr/src/RPM/BUILD/python-module-couchdbkit-0.4.10/couchdbkit/resource.py", line 29, in import anyjson ImportError: No module named anyjson running build running build_py creating build creating build/lib creating build/lib/couchdbkit copying couchdbkit/utils.py -> build/lib/couchdbkit copying couchdbkit/resource.py -> build/lib/couchdbkit copying couchdbkit/macros.py -> build/lib/couchdbkit copying couchdbkit/loaders.py -> build/lib/couchdbkit copying couchdbkit/external.py -> build/lib/couchdbkit copying couchdbkit/exceptions.py -> build/lib/couchdbkit copying couchdbkit/consumer.py -> build/lib/couchdbkit copying couchdbkit/client.py -> build/lib/couchdbkit copying couchdbkit/__init__.py -> build/lib/couchdbkit creating build/lib/couchdbkit/wsgi copying couchdbkit/wsgi/proxy.py -> build/lib/couchdbkit/wsgi copying couchdbkit/wsgi/handler.py -> build/lib/couchdbkit/wsgi copying couchdbkit/wsgi/__init__.py -> build/lib/couchdbkit/wsgi creating build/lib/couchdbkit/schema copying couchdbkit/schema/properties_proxy.py -> build/lib/couchdbkit/schema copying couchdbkit/schema/properties.py -> build/lib/couchdbkit/schema copying couchdbkit/schema/base.py -> build/lib/couchdbkit/schema copying couchdbkit/schema/__init__.py -> build/lib/couchdbkit/schema creating build/lib/couchdbkit/ext copying couchdbkit/ext/__init__.py -> build/lib/couchdbkit/ext creating build/lib/couchdbkit/ext/django copying couchdbkit/ext/django/schema.py -> build/lib/couchdbkit/ext/django copying couchdbkit/ext/django/loading.py -> build/lib/couchdbkit/ext/django copying couchdbkit/ext/django/forms.py -> build/lib/couchdbkit/ext/django copying couchdbkit/ext/django/__init__.py -> build/lib/couchdbkit/ext/django + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-couchdbkit-0.4.10 + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + python3 setup.py build running build running build_py creating build creating build/lib creating build/lib/couchdbkit copying couchdbkit/utils.py -> build/lib/couchdbkit copying couchdbkit/resource.py -> build/lib/couchdbkit copying couchdbkit/macros.py -> build/lib/couchdbkit copying couchdbkit/loaders.py -> build/lib/couchdbkit copying couchdbkit/external.py -> build/lib/couchdbkit copying couchdbkit/exceptions.py -> build/lib/couchdbkit copying couchdbkit/consumer.py -> build/lib/couchdbkit copying couchdbkit/client.py -> build/lib/couchdbkit copying couchdbkit/__init__.py -> build/lib/couchdbkit creating build/lib/couchdbkit/wsgi copying couchdbkit/wsgi/proxy.py -> build/lib/couchdbkit/wsgi copying couchdbkit/wsgi/handler.py -> build/lib/couchdbkit/wsgi copying couchdbkit/wsgi/__init__.py -> build/lib/couchdbkit/wsgi creating build/lib/couchdbkit/schema copying couchdbkit/schema/properties_proxy.py -> build/lib/couchdbkit/schema copying couchdbkit/schema/properties.py -> build/lib/couchdbkit/schema copying couchdbkit/schema/base.py -> build/lib/couchdbkit/schema copying couchdbkit/schema/__init__.py -> build/lib/couchdbkit/schema creating build/lib/couchdbkit/ext copying couchdbkit/ext/__init__.py -> build/lib/couchdbkit/ext creating build/lib/couchdbkit/ext/django copying couchdbkit/ext/django/schema.py -> build/lib/couchdbkit/ext/django copying couchdbkit/ext/django/loading.py -> build/lib/couchdbkit/ext/django copying couchdbkit/ext/django/forms.py -> build/lib/couchdbkit/ext/django copying couchdbkit/ext/django/__init__.py -> build/lib/couchdbkit/ext/django Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/couchdbkit/__init__.py", line 10, in from couchdbkit.resource import ResourceNotFound, ResourceConflict,\ File "/usr/src/RPM/BUILD/python3/couchdbkit/resource.py", line 29, in import anyjson ImportError: No module named 'anyjson' + popd ~/RPM/BUILD/python-module-couchdbkit-0.4.10 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.80428 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-couchdbkit-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-couchdbkit-buildroot + cd python-module-couchdbkit-0.4.10 + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-couchdbkit-buildroot --force Traceback (most recent call last): File "/usr/src/RPM/BUILD/python-module-couchdbkit-0.4.10/couchdbkit/__init__.py", line 10, in from couchdbkit.resource import ResourceNotFound, ResourceConflict,\ File "/usr/src/RPM/BUILD/python-module-couchdbkit-0.4.10/couchdbkit/resource.py", line 29, in import anyjson ImportError: No module named anyjson running install running install_lib creating /usr/src/tmp/python-module-couchdbkit-buildroot creating /usr/src/tmp/python-module-couchdbkit-buildroot/usr creating /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib creating /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages creating /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit creating /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext creating /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django copying build/lib/couchdbkit/ext/django/__init__.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django copying build/lib/couchdbkit/ext/django/forms.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django copying build/lib/couchdbkit/ext/django/loading.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django copying build/lib/couchdbkit/ext/django/schema.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django copying build/lib/couchdbkit/ext/__init__.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext creating /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema copying build/lib/couchdbkit/schema/__init__.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema copying build/lib/couchdbkit/schema/base.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema copying build/lib/couchdbkit/schema/properties.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema copying build/lib/couchdbkit/schema/properties_proxy.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema creating /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/wsgi copying build/lib/couchdbkit/wsgi/__init__.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/wsgi copying build/lib/couchdbkit/wsgi/handler.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/wsgi copying build/lib/couchdbkit/wsgi/proxy.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/wsgi copying build/lib/couchdbkit/__init__.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit copying build/lib/couchdbkit/client.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit copying build/lib/couchdbkit/consumer.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit copying build/lib/couchdbkit/exceptions.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit copying build/lib/couchdbkit/external.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit copying build/lib/couchdbkit/loaders.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit copying build/lib/couchdbkit/macros.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit copying build/lib/couchdbkit/resource.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit copying build/lib/couchdbkit/utils.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/forms.py to forms.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/loading.py to loading.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/schema.py to schema.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/base.py to base.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/properties.py to properties.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/properties_proxy.py to properties_proxy.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/wsgi/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/wsgi/handler.py to handler.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/wsgi/proxy.py to proxy.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/client.py to client.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/consumer.py to consumer.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/exceptions.py to exceptions.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/external.py to external.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/loaders.py to loaders.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/macros.py to macros.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/resource.py to resource.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/utils.py to utils.pyc running install_egg_info running egg_info creating couchdbkit.egg-info writing requirements to couchdbkit.egg-info/requires.txt writing couchdbkit.egg-info/PKG-INFO writing top-level names to couchdbkit.egg-info/top_level.txt writing dependency_links to couchdbkit.egg-info/dependency_links.txt writing manifest file 'couchdbkit.egg-info/SOURCES.txt' reading manifest file 'couchdbkit.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '*' under directory 'docs' writing manifest file 'couchdbkit.egg-info/SOURCES.txt' Copying couchdbkit.egg-info to /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit-0.4.10-py2.7.egg-info running install_scripts + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-couchdbkit-0.4.10 + python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-couchdbkit-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit creating /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext creating /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django copying build/lib/couchdbkit/ext/django/__init__.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django copying build/lib/couchdbkit/ext/django/forms.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django copying build/lib/couchdbkit/ext/django/loading.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django copying build/lib/couchdbkit/ext/django/schema.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django copying build/lib/couchdbkit/ext/__init__.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext creating /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema copying build/lib/couchdbkit/schema/__init__.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema copying build/lib/couchdbkit/schema/base.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema copying build/lib/couchdbkit/schema/properties.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema copying build/lib/couchdbkit/schema/properties_proxy.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema creating /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/wsgi copying build/lib/couchdbkit/wsgi/__init__.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/wsgi copying build/lib/couchdbkit/wsgi/handler.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/wsgi copying build/lib/couchdbkit/wsgi/proxy.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/wsgi copying build/lib/couchdbkit/__init__.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit copying build/lib/couchdbkit/client.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit copying build/lib/couchdbkit/consumer.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit copying build/lib/couchdbkit/exceptions.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit copying build/lib/couchdbkit/external.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit copying build/lib/couchdbkit/loaders.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit copying build/lib/couchdbkit/macros.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit copying build/lib/couchdbkit/resource.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit copying build/lib/couchdbkit/utils.py -> /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/forms.py to forms.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/loading.py to loading.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/schema.py to schema.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/base.py to base.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/properties.py to properties.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/properties_proxy.py to properties_proxy.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/wsgi/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/wsgi/handler.py to handler.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/wsgi/proxy.py to proxy.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/client.py to client.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/consumer.py to consumer.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/exceptions.py to exceptions.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/external.py to external.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/loaders.py to loaders.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/macros.py to macros.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/resource.py to resource.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/utils.py to utils.cpython-35.pyc running install_egg_info running egg_info creating couchdbkit.egg-info writing requirements to couchdbkit.egg-info/requires.txt writing top-level names to couchdbkit.egg-info/top_level.txt writing dependency_links to couchdbkit.egg-info/dependency_links.txt writing couchdbkit.egg-info/PKG-INFO writing manifest file 'couchdbkit.egg-info/SOURCES.txt' reading manifest file 'couchdbkit.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/couchdbkit/__init__.py", line 10, in from couchdbkit.resource import ResourceNotFound, ResourceConflict,\ File "/usr/src/RPM/BUILD/python3/couchdbkit/resource.py", line 29, in import anyjson ImportError: No module named 'anyjson' warning: no files found matching '*' under directory 'docs' writing manifest file 'couchdbkit.egg-info/SOURCES.txt' Copying couchdbkit.egg-info to /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit-0.4.10-py3.5.egg-info running install_scripts + popd ~/RPM/BUILD/python-module-couchdbkit-0.4.10 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-couchdbkit-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-couchdbkit-buildroot (binconfig,pkgconfig,libtool,desktop) Compressing files in /usr/src/tmp/python-module-couchdbkit-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-couchdbkit-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-couchdbkit-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-couchdbkit-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/__init__.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/forms.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/loading.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/schema.pyc compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/forms.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/loading.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/schema.py unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/__init__.pyc compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/__init__.py unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/__init__.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/base.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/properties.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/properties_proxy.pyc compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/base.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/properties.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/properties_proxy.py unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/wsgi/__init__.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/wsgi/handler.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/wsgi/proxy.pyc compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/wsgi/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/wsgi/handler.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/wsgi/proxy.py unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/__init__.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/client.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/consumer.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/exceptions.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/external.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/loaders.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/macros.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/resource.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/utils.pyc compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/client.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/consumer.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/exceptions.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/external.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/loaders.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/macros.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/resource.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/utils.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-couchdbkit-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/forms.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/loading.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/schema.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/base.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/properties.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/properties_proxy.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/wsgi/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/wsgi/handler.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/wsgi/proxy.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/client.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/consumer.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/exceptions.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/external.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/loaders.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/macros.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/resource.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/utils.py Bytecompiling python3 modules in /usr/src/tmp/python-module-couchdbkit-buildroot using python3 unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/__pycache__/client.cpython-35.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/__pycache__/consumer.cpython-35.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/__pycache__/exceptions.cpython-35.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/__pycache__/external.cpython-35.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/__pycache__/loaders.cpython-35.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/__pycache__/macros.cpython-35.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/__pycache__/resource.cpython-35.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/__pycache__/utils.cpython-35.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/forms.cpython-35.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/loading.cpython-35.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/schema.cpython-35.pyc compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/forms.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/loading.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/schema.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/__init__.py unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/base.cpython-35.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/properties.cpython-35.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/properties_proxy.cpython-35.pyc compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/base.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/properties.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/properties_proxy.py unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/handler.cpython-35.pyc unlink /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/proxy.cpython-35.pyc compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/wsgi/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/wsgi/handler.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/wsgi/proxy.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/client.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/consumer.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/exceptions.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/external.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/loaders.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/macros.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/resource.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/utils.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-couchdbkit-buildroot using python3 -O compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/forms.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/loading.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/schema.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/base.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/properties.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/properties_proxy.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/wsgi/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/wsgi/handler.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/wsgi/proxy.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/client.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/consumer.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/exceptions.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/external.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/loaders.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/macros.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/resource.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/utils.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-couchdbkit-buildroot using python3 -OO compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/forms.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/loading.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/schema.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/base.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/properties.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/properties_proxy.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/wsgi/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/wsgi/handler.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/wsgi/proxy.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/__init__.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/client.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/consumer.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/exceptions.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/external.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/loaders.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/macros.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/resource.py compile /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/utils.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/couchdbkit/__pycache__/utils.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/couchdbkit/__pycache__/utils.cpython-35.pyc' './usr/lib/python3/site-packages/couchdbkit/__pycache__/resource.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/couchdbkit/__pycache__/resource.cpython-35.pyc' './usr/lib/python3/site-packages/couchdbkit/__pycache__/macros.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/couchdbkit/__pycache__/macros.cpython-35.pyc' './usr/lib/python3/site-packages/couchdbkit/__pycache__/loaders.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/couchdbkit/__pycache__/loaders.cpython-35.pyc' './usr/lib/python3/site-packages/couchdbkit/__pycache__/external.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/couchdbkit/__pycache__/external.cpython-35.pyc' './usr/lib/python3/site-packages/couchdbkit/__pycache__/exceptions.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/couchdbkit/__pycache__/exceptions.cpython-35.pyc' './usr/lib/python3/site-packages/couchdbkit/__pycache__/consumer.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/couchdbkit/__pycache__/consumer.cpython-35.pyc' './usr/lib/python3/site-packages/couchdbkit/__pycache__/client.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/couchdbkit/__pycache__/client.cpython-35.pyc' './usr/lib/python3/site-packages/couchdbkit/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/couchdbkit/__pycache__/__init__.cpython-35.pyc' './usr/lib/python3/site-packages/couchdbkit/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/couchdbkit/__pycache__/__init__.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/proxy.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/proxy.cpython-35.pyc' './usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/handler.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/handler.cpython-35.pyc' './usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/handler.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/handler.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/__init__.cpython-35.pyc' './usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/__init__.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/base.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/base.cpython-35.pyc' './usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/__init__.cpython-35.pyc' './usr/lib/python3/site-packages/couchdbkit/ext/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/couchdbkit/ext/__pycache__/__init__.cpython-35.pyc' './usr/lib/python3/site-packages/couchdbkit/ext/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/couchdbkit/ext/__pycache__/__init__.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/schema.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/schema.cpython-35.pyc' './usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/loading.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/loading.cpython-35.pyc' './usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/forms.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/forms.cpython-35.pyc' './usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/__init__.cpython-35.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/couchdbkit/utils.pyo' => './usr/lib/python2.7/site-packages/couchdbkit/utils.pyc' './usr/lib/python2.7/site-packages/couchdbkit/resource.pyo' => './usr/lib/python2.7/site-packages/couchdbkit/resource.pyc' './usr/lib/python2.7/site-packages/couchdbkit/macros.pyo' => './usr/lib/python2.7/site-packages/couchdbkit/macros.pyc' './usr/lib/python2.7/site-packages/couchdbkit/loaders.pyo' => './usr/lib/python2.7/site-packages/couchdbkit/loaders.pyc' './usr/lib/python2.7/site-packages/couchdbkit/external.pyo' => './usr/lib/python2.7/site-packages/couchdbkit/external.pyc' './usr/lib/python2.7/site-packages/couchdbkit/exceptions.pyo' => './usr/lib/python2.7/site-packages/couchdbkit/exceptions.pyc' './usr/lib/python2.7/site-packages/couchdbkit/consumer.pyo' => './usr/lib/python2.7/site-packages/couchdbkit/consumer.pyc' './usr/lib/python2.7/site-packages/couchdbkit/client.pyo' => './usr/lib/python2.7/site-packages/couchdbkit/client.pyc' './usr/lib/python2.7/site-packages/couchdbkit/__init__.pyo' => './usr/lib/python2.7/site-packages/couchdbkit/__init__.pyc' './usr/lib/python2.7/site-packages/couchdbkit/wsgi/proxy.pyo' => './usr/lib/python2.7/site-packages/couchdbkit/wsgi/proxy.pyc' './usr/lib/python2.7/site-packages/couchdbkit/wsgi/handler.pyo' => './usr/lib/python2.7/site-packages/couchdbkit/wsgi/handler.pyc' './usr/lib/python2.7/site-packages/couchdbkit/wsgi/__init__.pyo' => './usr/lib/python2.7/site-packages/couchdbkit/wsgi/__init__.pyc' './usr/lib/python2.7/site-packages/couchdbkit/schema/base.pyo' => './usr/lib/python2.7/site-packages/couchdbkit/schema/base.pyc' './usr/lib/python2.7/site-packages/couchdbkit/schema/__init__.pyo' => './usr/lib/python2.7/site-packages/couchdbkit/schema/__init__.pyc' './usr/lib/python2.7/site-packages/couchdbkit/ext/__init__.pyo' => './usr/lib/python2.7/site-packages/couchdbkit/ext/__init__.pyc' './usr/lib/python2.7/site-packages/couchdbkit/ext/django/schema.pyo' => './usr/lib/python2.7/site-packages/couchdbkit/ext/django/schema.pyc' './usr/lib/python2.7/site-packages/couchdbkit/ext/django/loading.pyo' => './usr/lib/python2.7/site-packages/couchdbkit/ext/django/loading.pyc' './usr/lib/python2.7/site-packages/couchdbkit/ext/django/forms.pyo' => './usr/lib/python2.7/site-packages/couchdbkit/ext/django/forms.pyc' './usr/lib/python2.7/site-packages/couchdbkit/ext/django/__init__.pyo' => './usr/lib/python2.7/site-packages/couchdbkit/ext/django/__init__.pyc' Processing files: python-module-couchdbkit-0.4.10-alt1.2.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.7562 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-couchdbkit-0.4.10 + DOCDIR=/usr/src/tmp/python-module-couchdbkit-buildroot/usr/share/doc/python-module-couchdbkit-0.4.10 + export DOCDIR + rm -rf /usr/src/tmp/python-module-couchdbkit-buildroot/usr/share/doc/python-module-couchdbkit-0.4.10 + /bin/mkdir -p /usr/src/tmp/python-module-couchdbkit-buildroot/usr/share/doc/python-module-couchdbkit-0.4.10 + cp -prL README.rst LICENSE NOTICE doc/couchdbkit.org /usr/src/tmp/python-module-couchdbkit-buildroot/usr/share/doc/python-module-couchdbkit-0.4.10 + chmod -R go-w /usr/src/tmp/python-module-couchdbkit-buildroot/usr/share/doc/python-module-couchdbkit-0.4.10 + chmod -R a+rX /usr/src/tmp/python-module-couchdbkit-buildroot/usr/share/doc/python-module-couchdbkit-0.4.10 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.t6kAL6 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.fIPW6X find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/__init__.py: line=10 IGNORE (for REQ=slight and deep=8) module=couchdbkit /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/__init__.py: line=13 IGNORE (for REQ=slight and deep=8) module=couchdbkit /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/__init__.py: line=17 IGNORE (for REQ=slight and deep=8) module=couchdbkit /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/__init__.py: line=18 IGNORE (for REQ=slight and deep=8) module=couchdbkit /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/__init__.py: line=19 IGNORE (for REQ=slight and deep=8) module=couchdbkit /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/__init__.py: line=20 IGNORE (for REQ=slight and deep=8) module=couchdbkit /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/__init__.py: line=22 IGNORE (for REQ=slight and deep=8) module=couchdbkit /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/__init__.py: line=30 IGNORE (for REQ=slight and deep=8) module=traceback python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/client.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/client.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/client.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/consumer.py: skipping sys python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/__init__.py: hiding django, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/__init__.py: line=96 IGNORE (for REQ=slight and deep=8) module=couchdbkit python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/forms.py: hiding django, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/forms.py: hiding django, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/forms.py: hiding django, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/forms.py: hiding django, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/forms.py: hiding django, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/forms.py: hiding django, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/forms.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/forms.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/loading.py: skipping sys python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/loading.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/loading.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/loading.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/loading.py: hiding django, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/loading.py: hiding django, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/loading.py: hiding django, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/loading.py: hiding django, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/schema.py: skipping sys python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/schema.py: hiding django, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/schema.py: hiding django, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/schema.py: hiding django, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/schema.py: hiding django, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/schema.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/schema.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/ext/django/schema.py: line=57 IGNORE (for REQ=slight and deep=11) module=django python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/external.py: skipping sys python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/loaders.py: skipping sys python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/loaders.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/loaders.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/loaders.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/loaders.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/macros.py: skipping sys python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/macros.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/resource.py: skipping sys python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/resource.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/__init__.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/__init__.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/__init__.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/base.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/base.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/base.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/base.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/base.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/base.py: line=128 IGNORE (for REQ=slight and deep=23) module=couchdbkit python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/properties.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/properties_proxy.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/properties_proxy.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/properties_proxy.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/schema/properties_proxy.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/utils.py: skipping sys python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/wsgi/handler.py: skipping sys python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/wsgi/handler.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python2.7/site-packages/couchdbkit/wsgi/handler.py: hiding couchdbkit, which SEEMS TO BE SELF-SATISFIED Provides: python2.7(couchdbkit), python2.7(couchdbkit.client), python2.7(couchdbkit.consumer), python2.7(couchdbkit.exceptions), python2.7(couchdbkit.ext), python2.7(couchdbkit.ext.django), python2.7(couchdbkit.ext.django.forms), python2.7(couchdbkit.ext.django.loading), python2.7(couchdbkit.ext.django.schema), python2.7(couchdbkit.external), python2.7(couchdbkit.loaders), python2.7(couchdbkit.macros), python2.7(couchdbkit.resource), python2.7(couchdbkit.schema), python2.7(couchdbkit.schema.base), python2.7(couchdbkit.schema.properties), python2.7(couchdbkit.schema.properties_proxy), python2.7(couchdbkit.utils), python2.7(couchdbkit.wsgi), python2.7(couchdbkit.wsgi.handler), python2.7(couchdbkit.wsgi.proxy) Requires: /usr/lib/python2.7/site-packages, python-modules, python2.7(anyjson), python2.7(mimetypes), python2.7(restkit), python2.7(webob) Processing files: python3-module-couchdbkit-0.4.10-alt1.2.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.6506 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-couchdbkit-0.4.10 + DOCDIR=/usr/src/tmp/python-module-couchdbkit-buildroot/usr/share/doc/python3-module-couchdbkit-0.4.10 + export DOCDIR + rm -rf /usr/src/tmp/python-module-couchdbkit-buildroot/usr/share/doc/python3-module-couchdbkit-0.4.10 + /bin/mkdir -p /usr/src/tmp/python-module-couchdbkit-buildroot/usr/share/doc/python3-module-couchdbkit-0.4.10 + cp -prL README.rst LICENSE NOTICE doc/couchdbkit.org /usr/src/tmp/python-module-couchdbkit-buildroot/usr/share/doc/python3-module-couchdbkit-0.4.10 + chmod -R go-w /usr/src/tmp/python-module-couchdbkit-buildroot/usr/share/doc/python3-module-couchdbkit-0.4.10 + chmod -R a+rX /usr/src/tmp/python-module-couchdbkit-buildroot/usr/share/doc/python3-module-couchdbkit-0.4.10 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.bpQ8XS 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.FZUzYQ find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/__init__.py: line=10 IGNORE (for REQ=slight and deep=8) module=couchdbkit /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/__init__.py: line=13 IGNORE (for REQ=slight and deep=8) module=couchdbkit /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/__init__.py: line=17 IGNORE (for REQ=slight and deep=8) module=couchdbkit /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/__init__.py: line=18 IGNORE (for REQ=slight and deep=8) module=couchdbkit /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/__init__.py: line=19 IGNORE (for REQ=slight and deep=8) module=couchdbkit /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/__init__.py: line=20 IGNORE (for REQ=slight and deep=8) module=couchdbkit /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/__init__.py: line=22 IGNORE (for REQ=slight and deep=8) module=couchdbkit /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/__init__.py: line=30 IGNORE (for REQ=slight and deep=8) module=traceback python3.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/client.py: skipping itertools python3.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/client.py: skipping time python3.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/consumer.py: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/__init__.py: line=96 IGNORE (for REQ=slight and deep=8) module=couchdbkit python3.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/loading.py: skipping sys python3.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/schema.py: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/ext/django/schema.py: line=57 IGNORE (for REQ=slight and deep=11) module=django python3.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/external.py: skipping sys python3.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/loaders.py: skipping sys python3.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/macros.py: skipping sys python3.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/resource.py: skipping sys python3.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/resource.py: skipping time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/base.py: line=127 IGNORE (for REQ=slight and deep=23) module=couchdbkit python3.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/properties.py: skipping time python3.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/schema/properties_proxy.py: skipping time python3.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/utils.py: skipping sys python3.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/utils.py: skipping time python3.req: /usr/src/tmp/python-module-couchdbkit-buildroot/usr/lib/python3/site-packages/couchdbkit/wsgi/handler.py: skipping sys Provides: python3(couchdbkit), python3(couchdbkit.client), python3(couchdbkit.consumer), python3(couchdbkit.exceptions), python3(couchdbkit.ext), python3(couchdbkit.ext.django), python3(couchdbkit.ext.django.forms), python3(couchdbkit.ext.django.loading), python3(couchdbkit.ext.django.schema), python3(couchdbkit.external), python3(couchdbkit.loaders), python3(couchdbkit.macros), python3(couchdbkit.resource), python3(couchdbkit.schema), python3(couchdbkit.schema.base), python3(couchdbkit.schema.properties), python3(couchdbkit.schema.properties_proxy), python3(couchdbkit.utils), python3(couchdbkit.wsgi), python3(couchdbkit.wsgi.handler), python3(couchdbkit.wsgi.proxy), python3.3(couchdbkit), python3.3(couchdbkit.client), python3.3(couchdbkit.consumer), python3.3(couchdbkit.exceptions), python3.3(couchdbkit.ext), python3.3(couchdbkit.ext.django), python3.3(couchdbkit.ext.django.forms), python3.3(couchdbkit.ext.django.loading), python3.3(couchdbkit.ext.django.schema), python3.3(couchdbkit.external), python3.3(couchdbkit.loaders), python3.3(couchdbkit.macros), python3.3(couchdbkit.resource), python3.3(couchdbkit.schema), python3.3(couchdbkit.schema.base), python3.3(couchdbkit.schema.properties), python3.3(couchdbkit.schema.properties_proxy), python3.3(couchdbkit.utils), python3.3(couchdbkit.wsgi), python3.3(couchdbkit.wsgi.handler), python3.3(couchdbkit.wsgi.proxy) Requires: /usr/lib/python3/site-packages, python3(anyjson) < 0, python3(asynchat) < 0, python3(asyncore) < 0, python3(base64) < 0, python3(calendar) < 0, python3(cgi) < 0, python3(codecs) < 0, python3(collections) < 0, python3(copy) < 0, python3(datetime) < 0, python3(decimal) < 0, python3(glob) < 0, python3(hashlib) < 0, python3(http) < 0, python3(io) < 0, python3(mimetypes) < 0, python3(os) < 0, python3(re) < 0, python3(restkit) < 0, python3(socket) < 0, python3(string) < 0, python3(traceback) < 0, python3(types) < 0, python3(urllib) < 0, python3(warnings) < 0, python3(webob) < 0 Wrote: /usr/src/RPM/RPMS/noarch/python-module-couchdbkit-0.4.10-alt1.2.1.noarch.rpm Wrote: /usr/src/RPM/RPMS/noarch/python3-module-couchdbkit-0.4.10-alt1.2.1.noarch.rpm 9.96user 0.69system 0:15.99elapsed 66%CPU (0avgtext+0avgdata 61592maxresident)k 0inputs+0outputs (0major+273307minor)pagefaults 0swaps 14.66user 3.26system 0:24.38elapsed 73%CPU (0avgtext+0avgdata 122128maxresident)k 0inputs+0outputs (0major+526751minor)pagefaults 0swaps --- python3-module-couchdbkit-0.4.10-alt1.2.1.noarch.rpm.repo 2016-03-13 23:15:34.000000000 +0000 +++ python3-module-couchdbkit-0.4.10-alt1.2.1.noarch.rpm.hasher 2019-04-14 01:30:02.976584512 +0000 @@ -1,27 +1,38 @@ /usr/lib/python3/site-packages/couchdbkit 40755 -/usr/lib/python3/site-packages/couchdbkit-0.4.10-py3.3.egg-info 40755 -/usr/lib/python3/site-packages/couchdbkit-0.4.10-py3.3.egg-info/PKG-INFO 100644 -/usr/lib/python3/site-packages/couchdbkit-0.4.10-py3.3.egg-info/SOURCES.txt 100644 -/usr/lib/python3/site-packages/couchdbkit-0.4.10-py3.3.egg-info/dependency_links.txt 100644 -/usr/lib/python3/site-packages/couchdbkit-0.4.10-py3.3.egg-info/not-zip-safe 100644 -/usr/lib/python3/site-packages/couchdbkit-0.4.10-py3.3.egg-info/requires.txt 100644 -/usr/lib/python3/site-packages/couchdbkit-0.4.10-py3.3.egg-info/top_level.txt 100644 +/usr/lib/python3/site-packages/couchdbkit-0.4.10-py3.5.egg-info 40755 +/usr/lib/python3/site-packages/couchdbkit-0.4.10-py3.5.egg-info/PKG-INFO 100644 +/usr/lib/python3/site-packages/couchdbkit-0.4.10-py3.5.egg-info/SOURCES.txt 100644 +/usr/lib/python3/site-packages/couchdbkit-0.4.10-py3.5.egg-info/dependency_links.txt 100644 +/usr/lib/python3/site-packages/couchdbkit-0.4.10-py3.5.egg-info/not-zip-safe 100644 +/usr/lib/python3/site-packages/couchdbkit-0.4.10-py3.5.egg-info/requires.txt 100644 +/usr/lib/python3/site-packages/couchdbkit-0.4.10-py3.5.egg-info/top_level.txt 100644 /usr/lib/python3/site-packages/couchdbkit/__init__.py 100644 /usr/lib/python3/site-packages/couchdbkit/__pycache__ 40755 -/usr/lib/python3/site-packages/couchdbkit/__pycache__/client.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/couchdbkit/__pycache__/client.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/couchdbkit/__pycache__/consumer.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/couchdbkit/__pycache__/consumer.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/couchdbkit/__pycache__/exceptions.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/couchdbkit/__pycache__/exceptions.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/couchdbkit/__pycache__/external.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/couchdbkit/__pycache__/external.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/couchdbkit/__pycache__/loaders.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/couchdbkit/__pycache__/loaders.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/couchdbkit/__pycache__/macros.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/couchdbkit/__pycache__/macros.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/couchdbkit/__pycache__/resource.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/couchdbkit/__pycache__/resource.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/couchdbkit/__pycache__/utils.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/couchdbkit/__pycache__/utils.cpython-33.pyo 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/__init__.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/__init__.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/__init__.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/client.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/client.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/client.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/consumer.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/consumer.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/consumer.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/exceptions.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/exceptions.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/exceptions.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/external.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/external.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/external.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/loaders.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/loaders.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/loaders.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/macros.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/macros.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/macros.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/resource.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/resource.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/resource.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/utils.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/utils.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/__pycache__/utils.cpython-35.pyc 100644 /usr/lib/python3/site-packages/couchdbkit/client.py 100644 @@ -32,2 +43,5 @@ /usr/lib/python3/site-packages/couchdbkit/ext/__pycache__ 40755 +/usr/lib/python3/site-packages/couchdbkit/ext/__pycache__/__init__.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/ext/__pycache__/__init__.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/ext/__pycache__/__init__.cpython-35.pyc 100644 /usr/lib/python3/site-packages/couchdbkit/ext/django 40755 @@ -35,8 +49,14 @@ /usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__ 40755 -/usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/forms.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/forms.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/loading.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/loading.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/schema.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/schema.cpython-33.pyo 100644 +/usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/__init__.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/__init__.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/__init__.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/forms.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/forms.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/forms.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/loading.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/loading.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/loading.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/schema.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/schema.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/ext/django/__pycache__/schema.cpython-35.pyc 100644 /usr/lib/python3/site-packages/couchdbkit/ext/django/forms.py 100644 @@ -51,8 +71,14 @@ /usr/lib/python3/site-packages/couchdbkit/schema/__pycache__ 40755 -/usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/base.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/base.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/properties.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/properties.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/properties_proxy.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/properties_proxy.cpython-33.pyo 100644 +/usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/__init__.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/__init__.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/__init__.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/base.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/base.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/base.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/properties.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/properties.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/properties.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/properties_proxy.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/properties_proxy.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/schema/__pycache__/properties_proxy.cpython-35.pyc 100644 /usr/lib/python3/site-packages/couchdbkit/schema/base.py 100644 @@ -64,6 +90,11 @@ /usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__ 40755 -/usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/handler.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/handler.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/proxy.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/proxy.cpython-33.pyo 100644 +/usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/__init__.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/__init__.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/__init__.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/handler.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/handler.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/handler.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/proxy.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/proxy.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/couchdbkit/wsgi/__pycache__/proxy.cpython-35.pyc 100644 /usr/lib/python3/site-packages/couchdbkit/wsgi/handler.py 100644 @@ -170,29 +201,28 @@ Requires: /usr/lib/python3/site-packages -Requires: python3.3(anyjson) -Requires: python3.3(asynchat) -Requires: python3.3(asyncore) -Requires: python3.3(base64) -Requires: python3.3(calendar) -Requires: python3.3(cgi) -Requires: python3.3(codecs) -Requires: python3.3(collections) -Requires: python3.3(copy) -Requires: python3.3(datetime) -Requires: python3.3(decimal) -Requires: python3.3(glob) -Requires: python3.3(hashlib) -Requires: python3.3(http) -Requires: python3.3(io) -Requires: python3.3(mimetypes) -Requires: python3.3(os) -Requires: python3.3(re) -Requires: python3.3(restkit) -Requires: python3.3(socket) -Requires: python3.3(string) -Requires: python3.3(time) -Requires: python3.3(traceback) -Requires: python3.3(types) -Requires: python3.3(urllib) -Requires: python3.3(warnings) -Requires: python3.3(webob) +Requires: python3(anyjson) < 0 +Requires: python3(asynchat) < 0 +Requires: python3(asyncore) < 0 +Requires: python3(base64) < 0 +Requires: python3(calendar) < 0 +Requires: python3(cgi) < 0 +Requires: python3(codecs) < 0 +Requires: python3(collections) < 0 +Requires: python3(copy) < 0 +Requires: python3(datetime) < 0 +Requires: python3(decimal) < 0 +Requires: python3(glob) < 0 +Requires: python3(hashlib) < 0 +Requires: python3(http) < 0 +Requires: python3(io) < 0 +Requires: python3(mimetypes) < 0 +Requires: python3(os) < 0 +Requires: python3(re) < 0 +Requires: python3(restkit) < 0 +Requires: python3(socket) < 0 +Requires: python3(string) < 0 +Requires: python3(traceback) < 0 +Requires: python3(types) < 0 +Requires: python3(urllib) < 0 +Requires: python3(warnings) < 0 +Requires: python3(webob) < 0 Requires: rpmlib(PayloadIsLzma)