<86>Apr 21 01:12:50 userdel[9921]: delete user 'rooter' <86>Apr 21 01:12:50 groupadd[9958]: group added to /etc/group: name=rooter, GID=639 <86>Apr 21 01:12:50 groupadd[9958]: group added to /etc/gshadow: name=rooter <86>Apr 21 01:12:50 groupadd[9958]: new group: name=rooter, GID=639 <86>Apr 21 01:12:50 useradd[9980]: new user: name=rooter, UID=639, GID=639, home=/root, shell=/bin/bash <86>Apr 21 01:12:50 userdel[10006]: delete user 'builder' <86>Apr 21 01:12:50 userdel[10006]: removed group 'builder' owned by 'builder' <86>Apr 21 01:12:50 userdel[10006]: removed shadow group 'builder' owned by 'builder' <86>Apr 21 01:12:50 groupadd[10026]: group added to /etc/group: name=builder, GID=640 <86>Apr 21 01:12:50 groupadd[10026]: group added to /etc/gshadow: name=builder <86>Apr 21 01:12:50 groupadd[10026]: new group: name=builder, GID=640 <86>Apr 21 01:12:50 useradd[10038]: new user: name=builder, UID=640, GID=640, home=/usr/src, shell=/bin/bash <13>Apr 21 01:12:53 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 21 01:12:53 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 21 01:12:53 rpmi: libtinfo-devel-5.9-alt8 1456756459 installed <13>Apr 21 01:12:53 rpmi: libncurses-devel-5.9-alt8 1456756459 installed <13>Apr 21 01:12:53 rpmi: python-modules-curses-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:53 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 21 01:12:53 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 21 01:12:53 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Apr 21 01:12:53 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 21 01:12:53 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 21 01:12:53 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <86>Apr 21 01:12:53 groupadd[25347]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 21 01:12:53 groupadd[25347]: group added to /etc/gshadow: name=_keytab <86>Apr 21 01:12:53 groupadd[25347]: new group: name=_keytab, GID=499 <13>Apr 21 01:12:53 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 21 01:12:54 rpmi: python3-base-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 01:12:54 rpmi: python3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 01:12:54 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:54 rpmi: rpm-build-python3-0.1.10.10-alt1.M80P.1 1530521451 installed <13>Apr 21 01:12:54 rpmi: libpython3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 01:12:54 rpmi: python3-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 21 01:12:54 rpmi: python3-dev-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 01:12:54 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:54 rpmi: python3-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 21 01:12:54 rpmi: python3-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 21 01:12:54 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:55 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:55 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:55 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:55 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:55 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:55 rpmi: python-tools-2to3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:55 rpmi: python-modules-xml-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:55 rpmi: python-modules-hotshot-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:55 rpmi: python-modules-bsddb-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:55 rpmi: python-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:55 rpmi: python-dev-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:55 rpmi: python-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 21 01:12:55 rpmi: python-modules-json-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 01:12:55 rpmi: python-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 21 01:12:55 rpmi: python-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed Installing python-module-google-apputils-0.4.0-alt2.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.78500 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-google-apputils-0.4.0 + echo 'Source #0 (python-module-google-apputils-0.4.0.tar):' Source #0 (python-module-google-apputils-0.4.0.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-google-apputils-0.4.0.tar + cd python-module-google-apputils-0.4.0 + /bin/chmod -c -Rf u+rwX,go-w . + cp -fR . ../python3 + find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: No changes to ../python3/tests/stopwatch_unittest.py RefactoringTool: No changes to ../python3/tests/shellutil_unittest.py RefactoringTool: No changes to ../python3/tests/sh_test.py RefactoringTool: No changes to ../python3/tests/resources_test.py RefactoringTool: Refactored ../python3/tests/humanize_test.py WARNING: couldn't encode ../python3/tests/humanize_test.py's diff for your terminal RefactoringTool: Refactored ../python3/tests/file_util_test.py RefactoringTool: Refactored ../python3/tests/datelib_unittest.py --- ../python3/tests/humanize_test.py (original) +++ ../python3/tests/humanize_test.py (refactored) @@ -81,7 +81,7 @@ humanize.DecimalPrefix(-0.004, 'm', min_scale=None)) self.assertEqual('0 m', humanize.DecimalPrefix(0, 'm', min_scale=None)) self.assertEqual( --- ../python3/tests/file_util_test.py (original) +++ ../python3/tests/file_util_test.py (refactored) @@ -17,7 +17,7 @@ -import __builtin__ +import builtins import errno import os import posix @@ -64,7 +64,7 @@ file_util.Write(self.file_path, 'original contents') file_util.Write(self.file_path, self.sample_contents) with open(self.file_path) as fp: - self.assertEquals(fp.read(), self.sample_contents) + self.assertEqual(fp.read(), self.sample_contents) def testWriteExclusive(self): file_util.Write(self.file_path, 'original contents') @@ -72,7 +72,7 @@ self.sample_contents, overwrite_existing=False) def testWriteMode(self): - mode = 0744 + mode = 0o744 file_util.Write(self.file_path, self.sample_contents, mode=mode) s = os.stat(self.file_path) self.assertEqual(stat.S_IMODE(s.st_mode), mode) @@ -80,10 +80,10 @@ def testAtomicWriteSuccessful(self): file_util.AtomicWrite(self.file_path, self.sample_contents) with open(self.file_path) as fp: - self.assertEquals(fp.read(), self.sample_contents) + self.assertEqual(fp.read(), self.sample_contents) def testAtomicWriteMode(self): - mode = 0745 + mode = 0o745 file_util.AtomicWrite(self.file_path, self.sample_contents, mode=mode) s = os.stat(self.file_path) self.assertEqual(stat.S_IMODE(s.st_mode), mode) @@ -125,7 +125,7 @@ self.mox.ReplayAll() try: - self.assertEquals(file_util.Read(self.file_path), self.sample_contents) + self.assertEqual(file_util.Read(self.file_path), self.sample_contents) self.mox.VerifyAll() finally: # Because we mock out the built-in open() function, which the unittest @@ -142,7 +142,7 @@ self.mox.StubOutWithMock(os, 'chown') gid = 'new gid' os.open(self.file_path, os.O_WRONLY | os.O_TRUNC | os.O_CREAT, - 0666).AndReturn(self.fd) + 0o666).AndReturn(self.fd) os.write(self.fd, self.sample_contents) os.close(self.fd) os.chown(self.file_path, -1, gid) @@ -211,7 +211,7 @@ file_util.AtomicWrite(self.file_path, self.sample_contents, mode=self.mode) except OSError as e: - self.assertEquals(str(e), + self.assertEqual(str(e), 'A problem renaming!. Additional errors cleaning up: ' 'A problem removing!') else: @@ -258,10 +258,10 @@ def testNoErrorsAbsoluteOneDirWithForceMode(self): # record, replay os.mkdir('/foo') - os.chmod('/foo', 0707) - self.mox.ReplayAll() - # test, verify - file_util.MkDirs('/foo', force_mode=0707) + os.chmod('/foo', 0o707) + self.mox.ReplayAll() + # test, verify + file_util.MkDirs('/foo', force_mode=0o707) self.mox.VerifyAll() def testNoErrorsExistingDirWithForceMode(self): @@ -272,7 +272,7 @@ os.path.isdir('/foo').AndReturn(True) self.mox.ReplayAll() # test, verify - file_util.MkDirs('/foo', force_mode=0707) + file_util.MkDirs('/foo', force_mode=0o707) self.mox.VerifyAll() def testNoErrorsAbsoluteSlashDot(self): @@ -308,10 +308,10 @@ os.mkdir('/foo').AndRaise(exist_error) # /foo exists os.path.isdir('/foo').AndReturn(True) os.mkdir('/foo/bar') # bar does not - os.chmod('/foo/bar', 0707) - self.mox.ReplayAll() - # test, verify - file_util.MkDirs('/foo/bar', force_mode=0707) + os.chmod('/foo/bar', 0o707) + self.mox.ReplayAll() + # test, verify + file_util.MkDirs('/foo/bar', force_mode=0o707) self.mox.VerifyAll() def testNoErrorsRelativeOneDir(self): --- ../python3/tests/datelib_unittest.py (original) +++ ../python3/tests/datelib_unittest.py (refactored) @@ -38,12 +38,12 @@ def testTzRandomConverRefactoringTool: Refactored ../python3/tests/basetest_test.py sion(self): random.seed(self.seed) - for unused_i in xrange(100): + for unused_i in range(100): stz = pytz.timezone(random.choice(pytz.all_timezones)) a = datelib.Timestamp.FromString('2008-04-12T10:00:00', stz) b = a - for unused_j in xrange(100): + for unused_j in range(100): b = b.astimezone(pytz.timezone(random.choice(pytz.all_timezones))) self.assertEqual(a, b) random.seed() @@ -59,7 +59,7 @@ IsEq(datelib.MAXIMUM_MICROSECOND_TIMESTAMP) random.seed(self.seed) - for _ in xrange(100): + for _ in range(100): IsEq(random.randint(0, datelib.MAXIMUM_MICROSECOND_TIMESTAMP)) def testMicroTimestampKnown(self): @@ -80,7 +80,7 @@ datelib.Timestamp.FromMicroTimestamp(b))) random.seed(self.seed) - for unused_i in xrange(100): + for unused_i in range(100): IsEq( random.randint(0, datelib.MAXIMUM_MICROSECOND_TIMESTAMP), random.randint(0, datelib.MAXIMUM_MICROSECOND_TIMESTAMP)) @@ -118,7 +118,7 @@ datelib.Timestamp(1970, 1, 1, 0, 0, 0, 0, datelib.UTC)) startdate = datelib.Timestamp(2009, 1, 1, 3, 0, 0, 0, datelib.US_PACIFIC) - for day in xrange(1, 366): + for day in range(1, 366): self.assertEqual( datelib.Timestamp.FromString(startdate.isoformat()), startdate, @@ -131,7 +131,7 @@ The result shall always be the same as tz.localize(naive_time). """ baseday = datelib.datetime.date(2009, 1, 1).toordinal() - for day_offset in xrange(0, 365): + for day_offset in range(0, 365): day = datelib.datetime.date.fromordinal(baseday + day_offset) naive_day = datelib.datetime.datetime.combine( day, datelib.datetime.time(0, 45, 9)) @@ -171,9 +171,9 @@ self.assertEqual( 0, datelib.DatetimeToUTCMicros(_EpochToDatetime(0))) self.assertEqual( - 1001 * long(datelib._MICROSECONDS_PER_SECOND), + 1001 * int(datelib._MICROSECONDS_PER_SECOND), datelib.DatetimeToUTCMicros(_EpochToDatetime(1001))) - self.assertEqual(long(self.now * datelib._MICROSECONDS_PER_SECOND), + self.assertEqual(int(self.now * datelib._MICROSECONDS_PER_SECOND), datelib.DatetimeToUTCMicros(_EpochToDatetime(self.now))) # tzinfo shouldn't change the result @@ -184,8 +184,8 @@ self.assertEqual( 0, datelib.DatetimeToUTCMillis(_EpochToDatetime(0))) self.assertEqual( - 1001 * 1000L, datelib.DatetimeToUTCMillis(_EpochToDatetime(1001))) - self.assertEqual(long(self.now * 1000), + 1001 * 1000, datelib.DatetimeToUTCMillis(_EpochToDatetime(1001))) + self.assertEqual(int(self.now * 1000), datelib.DatetimeToUTCMillis(_EpochToDatetime(self.now))) # tzinfo shouldn't change the result @@ -197,7 +197,7 @@ self.assertEqual(_EpochToDatetime(1.000001), datelib.UTCMicrosToDatetime(1000001)) self.assertEqual(_EpochToDatetime(self.now), datelib.UTCMicrosToDatetime( - long(self.now * datelib._MICROSECONDS_PER_SECOND))) + int(self.now * datelib._MICROSECONDS_PER_SECOND))) # Check timezone-aware comparisons self.assertEqual(_EpochToDatetime(0, self.pst), @@ -212,7 +212,7 @@ dt = _EpochToDatetime(t) # truncate sub-milli time dt -= datelib.datetime.timedelta(microseconds=dt.microsecond % 1000) - self.assertEqual(dt, datelib.UTCMillisToDatetime(long(t * 1000))) + self.assertEqual(dt, datelib.UTCMillisToDatetime(int(t * 1000))) # Check timezone-aware comparisons self.assertEqual(_EpochToDatetime(0, self.pst), --- ../python3/tests/basetest_test.py (original) +++ ../python3/tests/basetest_test.py (refactored) @@ -181,8 +181,8 @@ def testFlags(self): if FLAGS.testid == 1: self.assertEqual(FLAGS.test_random_seed, 301) - self.assert_(FLAGS.test_tmpdir.startswith('/')) - self.assert_(os.access(FLAGS.test_tmpdir, os.W_OK)) + self.assertTrue(FLAGS.test_tmpdir.startswith('/')) + self.assertTrue(os.access(FLAGS.test_tmpdir, os.W_OK)) elif FLAGS.testid == 2: self.assertEqual(FLAGS.test_random_seed, 321) self.assertEqual(FLAGS.test_srcdir, 'cba') @@ -284,15 +284,15 @@ try: # Ensure we use equality as the sole measure of elements, not type, since # that is consistent with dict equality. - self.assertDictEqual({1: 1L, 2: 2}, {1: 1, 2: 3}) - except AssertionError, e: + self.assertDictEqual({1: 1, 2: 2}, {1: 1, 2: 3}) + except AssertionError as e: self.assertMultiLineEqual('{1: 1L, 2: 2} != {1: 1, 2: 3}\n' 'repr() of differing entries:\n2: 2 != 3\n', str(e)) try: self.assertDictEqual({}, {'x': 1}) - except AssertionError, e: + except AssertionError as e: self.assertMultiLineEqual("{} != {'x': 1}\n" "Missing entries:\n'x': 1\n", str(e)) @@ -301,7 +301,7 @@ try: self.assertDictEqual({}, {'x': 1}, 'a message') - except AssertionError, e: + except AssertionError as e: self.assertIn('a message', str(e)) else: self.fail('Expecting AssertionError') @@ -310,7 +310,7 @@ seen = {'a': 2, 'c': 3, 'd': 4} try: self.assertDictEqual(expected, seen) - except AssertionError, e: + except AssertionError as e: self.assertMultiLineEqual("""\ {'a': 1, 'b': 2, 'c': 3} != {'a': 2, 'c': 3, 'd': 4} Unexpected, but present entries: @@ -343,7 +343,7 @@ self.assertDictEqual( {'a': Obj('A'), Obj('b'): Obj('B'), Obj('c'): Obj('C')}, {'a': Obj('A'), Obj('d'): Obj('D'), Obj('e'): Obj('E')}) - except AssertionError, e: + except AssertionError as e: # Do as best we can not to be misleading when objects have the same repr # but aren't equal. self.assertMultiLineEqual("""\ @@ -379,7 +379,7 @@ # prefix or a basetest_test prefix, so strip that for comparison. error_msg = re.sub( r'( at 0x[^>]+)|__main__\.|basetest_test\.', '', str(e)) - self.assertEquals("""\ + self.assertEqual("""\ {: } != \ {: } Unexpected, but present entries: @@ -504,14 +504,14 @@ self.assertNotAlmostEqual(1.0000001, 1.0) def testAssertAlmostEqualsWithDelta(self): - self.assertAlmostEquals(3.14, 3, delta=0.2) - self.assertAlmostEquals(2.81, 3.14, delta=1) - self.assertAlmostEquals(-1, 1, delta=3) - self.assertRaises(AssertionError, self.assertAlmostEquals, + self.assertAlmostEqual(3.14, 3, delta=0.2) + self.assertAlmostEqual(2.81, 3.14, delta=1) + self.assertAlmostEqual(-1, 1, delta=3) + self.assertRaises(AssertionError, self.assertAlmostEqual, 3.14, 2.81, delta=0.1) - self.assertRaises(AssertionError, self.assertAlmostEquals, + self.assertRaises(AssertionError, self.assertAlmostEqual, 1, 2, delta=0.5) - self.assertNotAlmostEquals(3.14, 2.81, delta=0.1) + self.assertNotAlmostEqual(3.14, 2.81, delta=0.1) def testGetCommandString_listOfStringArgument(self): expected = "'command' 'arg-0'" @@ -523,7 +523,7 @@ def testGetCommandString_listOfUnicodeStringArgument(self): expected = "'command' 'arg-0'" - observed = basetest.GetCommandString([u'command', u'arg-0']) + observed = basetest.GetCommandString(['command', 'arg-0']) self.assertEqual(expected, observed) @@ -537,7 +537,7 @@ def testGetCommandString_unicodeStringArgument(self): expected = 'command arg-0' - observed = basetest.GetCommandString(u'command arg-0') + observed = basetest.GetCommandString('command arg-0') self.assertEqual(expected, observed) @@ -568,11 +568,11 @@ def testAssertRegexMatch_unicodeVsBytes(self): """Ensure proper utf-8 encoding or decoding happens automatically.""" - self.assertRegexMatch(u'str', [b'str']) - self.assertRegexMatch(b'str', [u'str']) + self.assertRegexMatch('str', [b'str']) + self.assertRegexMatch(b'str', ['str']) def testAssertRegexMatch_unicode(self): - self.assertRegexMatch(u'foo str', [u'str']) + self.assertRegexMatch('foo str', ['str']) def testAssertRegexMatch_bytes(self): self.assertRegexMatch(b'foo str', [b'str']) @@ -580,7 +580,7 @@ def testAssertRegexMatch_allTheSameType(self): self.assertRaisesWithRegexpMatch( AssertionError, 'regexes .* same type', - self.assertRegexMatch, 'foo str', [b'str', u'foo']) + self.assertRegexMatch, 'foo str', [b'str', 'foo']) def testAssertCommandFailsStderr(self): # TODO(user): Gross! These should use sys.executable instead of @@ -593,13 +593,13 @@ self.assertCommandFails(['false'], ['']) def testAssertCommandFailsWithListOfUnicodeString(self): - self.assertCommandFails([u'false'], ['']) + self.assertCommandFails(['false'], ['']) def testAssertCommandFailsWithUnicodeString(self): - self.assertCommandFails(u'false', [u'']) + self.assertCommandFails('false', ['']) def testAssertCommandFailsWithUnicodeStringBytesRegex(self): - self.assertCommandFails(u'false', [b'']) + self.assertCommandFails('false', [b'']) def testAssertCommandSucceedsStderr(self): expected_re = re.compile(r'(.|\n)*FAIL at -e line 1\.', re.MULTILINE) @@ -611,7 +611,7 @@ ['/usr/bin/perl', '-e', 'die "FAIL";']) def testAssertCommandSucceedsWithMatchingUnicodeRegexes(self): - self.assertCommandSucceeds(['echo', 'SUCCESS'], regexes=[u'SUCCESS']) + self.assertCommandSucceeds(['echo', 'SUCCESS'], regexes=['SUCCESS']) def testAssertCommandSucceedsWithMatchingBytesRegexes(self): self.assertCommandSucceeds(['echo', 'SUCCESS'], regexes=[b'SUCCESS']) @@ -630,10 +630,10 @@ self.assertCommandSucceeds(['true']) def testAssertCommandSucceedsWithListOfUnicodeString(self): - self.assertCommandSucceeds([u'true']) + self.assertCommandSucceeds(['true']) def testAssertCommandSucceedsWithUnicodeString(self): - self.assertCommandSucceeds(u'true') + self.assertCommandSucceeds('true') def testInequality(self): # Try ints @@ -679,44 +679,44 @@ self.assertRaises(AssertionError, self.assertLessEqual, 'bug', 'ant') # Try Unicode - self.assertGreater(u'bug', u'ant') - self.assertGreaterEqual(u'bug', u'ant') - self.assertGreaterEqual(u'ant', u'ant') - self.assertLess(u'ant', u'bug') - self.assertLessEqual(u'ant', u'bug') - self.assertLessEqual(u'ant', u'ant') - self.assertRaises(AssertionError, self.assertGreater, u'ant', u'bug') - self.assertRaises(AssertionError, self.assertGreater, u'ant', u'ant') - self.assertRaises(AssertionError, self.assertGreaterEqual, u'ant', u'bug') - self.assertRaises(AssertionError, self.assertLess, u'bug', u'ant') - self.assertRaises(AssertionError, self.assertLess, u'ant', u'ant') - self.assertRaises(AssertionError, self.assertLessEqual, u'bug', u'ant') + self.assertGreater('bug', 'ant') + self.assertGreaterEqual('bug', 'ant') + self.assertGreaterEqual('ant', 'ant') + self.assertLess('ant', 'bug') + self.assertLessEqual('ant', 'bug') + self.assertLessEqual('ant', 'ant') + self.assertRaises(AssertionError, self.assertGreater, 'ant', 'bug') + self.assertRaises(AssertionError, self.assertGreater, 'ant', 'ant') + self.assertRaises(AssertionError, self.assertGreaterEqual, 'ant', 'bug') + self.assertRaises(AssertionError, self.assertLess, 'bug', 'ant') + self.assertRaises(AssertionError, self.assertLess, 'ant', 'ant') + self.assertRaises(AssertionError, self.assertLessEqual, 'bug', 'ant') # Try Mixed String/Unicode - self.assertGreater('bug', u'ant') - self.assertGreater(u'bug', 'ant') - self.assertGreaterEqual('bug', u'ant') - self.assertGreaterEqual(u'bug', 'ant') - self.assertGreaterEqual('ant', u'ant') - self.assertGreaterEqual(u'ant', 'ant') - self.assertLess('ant', u'bug') - self.assertLess(u'ant', 'bug') - self.assertLessEqual('ant', u'bug') - self.assertLessEqual(u'ant', 'bug') - self.assertLessEqual('ant', u'ant') - self.assertLessEqual(u'ant', 'ant') - self.assertRaises(AssertionError, self.assertGreater, 'ant', u'bug') - self.assertRaises(AssertionError, self.assertGreater, u'ant', 'bug') - self.assertRaises(AssertionError, self.assertGreater, 'ant', u'ant') - self.assertRaises(AssertionError, self.assertGreater, u'ant', 'ant') - self.assertRaises(AssertionError, self.assertGreaterEqual, 'ant', u'bug') - self.assertRaises(AssertionError, self.assertGreaterEqual, u'ant', 'bug') - self.assertRaises(AssertionError, self.assertLess, 'bug', u'ant') - self.assertRaises(AssertionError, self.assertLess, u'bug', 'ant') - self.assertRaises(AssertionError, self.assertLess, 'ant', u'ant') - self.assertRaises(AssertionError, self.assertLess, u'ant', 'ant') - self.assertRaises(AssertionError, self.assertLessEqual, 'bug', u'ant') - self.assertRaises(AssertionError, self.assertLessEqual, u'bug', 'ant') + self.assertGreater('bug', 'ant') + self.assertGreater('bug', 'ant') + self.assertGreaterEqual('bug', 'ant') + self.assertGreaterEqual('bug', 'ant') + self.assertGreaterEqual('ant', 'ant') + self.assertGreaterEqual('ant', 'ant') + self.assertLess('ant', 'bug') + self.assertLess('ant', 'bug') + self.assertLessEqual('ant', 'bug') + self.assertLessEqual('ant', 'bug') + self.assertLessEqual('ant', 'ant') + self.assertLessEqual('ant', 'ant') + self.assertRaises(AssertionError, self.assertGreater, 'ant', 'bug') + self.assertRaises(AssertionError, self.assertGreater, 'ant', 'bug') + self.assertRaises(AssertionError, self.assertGreater, 'ant', 'ant') + self.assertRaises(AssertionError, self.assertGreater, 'ant', 'ant') + self.assertRaises(AssertionError, self.assertGreaterEqual, 'ant', 'bug') + self.assertRaises(AssertionError, self.assertGreaterEqual, 'ant', 'bug') + self.assertRaises(AssertionError, self.assertLess, 'bug', 'ant') + self.assertRaises(AssertionError, self.assertLess, 'bug', 'ant') + self.assertRaises(AssertionError, self.assertLess, 'ant', 'ant') + self.assertRaises(AssertionError, self.assertLess, 'ant', 'ant') + self.assertRaises(AssertionError, self.assertLessEqual, 'bug', 'ant') + self.assertRaises(AssertionError, self.assertLessEqual, 'bug', 'ant') def testAssertMultiLineEqual(self): sample_text = """\ @@ -742,8 +742,8 @@ + own implementation that does not subclass from TestCase, of course. """ - for type1 in (str, unicode): - for type2 in (str, unicode): + for type1 in (str, str): + for type2 in (str, str): self.assertRaisesWithLiteralMatch(AssertionError, sample_text_error, self.assertMultiLineEqual, type1(sample_text), @@ -858,7 +858,7 @@ self.assertRaisesWithRegexpMatch(ExceptionMock, re.compile('expect$'), Stub) self.assertRaisesWithRegexpMatch(ExceptionMock, 'expect$', Stub) - self.assertRaisesWithRegexpMatch(ExceptionMock, u'expect$', Stub) + self.assertRaisesWithRegexpMatch(ExceptionMock, 'expect$', Stub) def testAssertNotRaisesWithRegexpMatch(self): self.assertRaisesWithRegexpMatch( @@ -870,7 +870,7 @@ self.assertRaisesWithRegexpMatch, Exception, 'x', lambda: None) self.assertRaisesWithRegexpMatch( AssertionError, '^Exception not raised', - self.assertRaisesWithRegexpMatch, Exception, u'x', lambda: None) + self.assertRaisesWithRegexpMatch, Exception, 'x', lambda: None) def testAssertRaisesWithRegexpMismatch(self): def Stub(): @@ -996,14 +996,14 @@ self.assertRaises(AssertionError, self.assertTotallyOrdered, [1, 2]) def testShortDescriptionWithoutDocstring(self): - self.assertEquals( + self.assertEqual( self.shortDescription(), ('testShortDescriptionWithoutDocstring ' '(%s.GoogleTestBaseUnitTest)' % __name__)) def testShortDescriptionWithOneLineDocstring(self): """Tests shortDescription() for a method with a docstring.""" - self.assertEquals( + self.assertEqual( self.shortDescription(), ('testShortDescriptionWithOneLineDocstring ' '(%s.GoogleTestBaseUnitTest)\n' @@ -1016,7 +1016,7 @@ returned used in the short description, no matter how long the whole thing is. """ - self.assertEquals( + self.assertEqual( self.shortDescription(), ('testShortDescriptionWithMultiLineDocstring ' '(%s.GoogleTestBaseUnitTest)\n' @@ -1026,7 +1026,7 @@ def testRecordedProperties(self): """Tests that a test can record a property and then retrieve it.""" self.recordProperty('test_property', 'test_value') - self.assertEquals(self.getRecordedProperties(), + self.assertEqual(self.getRecordedProperties(), {'test_property': 'test_value'}) def testAssertUrlEqualSame(self): @@ -1072,7 +1072,7 @@ self.assertSameStructure({}, {}) self.assertSameStructure({'one': 1}, {'one': 1}) # int and long should always be treated as the same type. - self.assertSameStructure({3L: 3}, {3: 3L}) + self.assertSameStructure({3: 3}, {3: 3}) def testSameStructure_different(self): # Different type @@ -1292,22 +1292,22 @@ # Compare two distinct objects self.assertFalse(i1 is i2) self.assertRaises(AssertionError, self.assertEqual, i1, i2) - self.assertRaises(AssertionError, self.assertEquals, i1, i2) - self.assertRaises(AssertionError, self.failUnlessEqual, i1, i2) + self.assertRaises(AssertionError, self.assertEqual, i1, i2) + self.assertRaises(AssertionError, self.assertEqual, i1, i2) self.assertRaises(AssertionError, self.assertNotEqual, i1, i2) - self.assertRaises(AssertionError, self.assertNotEquals, i1, i2) - self.assertRaises(AssertionError, self.failIfEqual, i1, i2) + self.assertRaises(AssertionError, self.assertNotEqual, i1, i2) + self.assertRaises(AssertionError, self.assertNotEqual, i1, i2) # A NeverEqual object should not compare equal to itself either. i2 = i1 self.assertTrue(i1 is i2) self.assertFalse(i1 == i2) self.assertFalse(i1 != i2) self.assertRaises(AssertionError, self.assertEqual, i1, i2) - self.assertRaises(AssertionError, self.assertEquals, i1, i2) - self.assertRaises(AssertionError, self.failUnlessEqual, i1, i2) + self.assertRaises(AssertionError, self.assertEqual, i1, i2) + self.assertRaises(AssertionError, self.assertEqual, i1, i2) self.assertRaises(AssertionError, self.assertNotEqual, i1, i2) - self.assertRaises(AssertionError, self.assertNotEquals, i1, i2) - self.assertRaises(AssertionError, self.failIfEqual, i1, i2) + self.assertRaises(AssertionError, self.assertNotEqual, i1, i2) + self.assertRaises(AssertionError, self.assertNotEqual, i1, i2) def testAllComparisonsSucceed(self): a = self.AllSame() @@ -1316,11 +1316,11 @@ self.assertTrue(a == b) self.assertFalse(a != b) self.assertEqual(a, b) - self.assertEquals(a, b) - self.failUnlessEqual(a, b) + self.assertEqual(a, b) + self.assertEqual(a, b) self.assertRaises(AssertionError, self.assertNotEqual, a, b) - self.assertRaises(AssertionError, self.assertNotEquals, a, b) - self.assertRaises(AssertionError, self.failIfEqual, a, b) + self.assertRaises(AssertionError, self.assertNotEqual, a, b) + self.assertRaises(AssertionError, self.assertNotEqual, a, b) def _PerformAppleAppleOrangeChecks(self, same_a, same_b, different): """Perform consistency checks with two apples and an orange. @@ -1337,8 +1337,8 @@ self.assertTrue(same_a == same_b) self.assertFalse(same_a != same_b) self.assertEqual(same_a, same_b) - self.assertEquals(same_a, same_b) - self.failUnlessEqual(same_a, same_b) + self.assertEqual(same_a, same_b) + self.assertEqual(same_a, same_b) if PY_VERSION_2: # Python 3 removes the global cmp function self.assertEqual(0, cmp(same_a, same_b)) @@ -1346,16 +1346,16 @@ self.assertFalse(same_a == different) self.assertTrue(same_a != different) self.assertNotEqual(same_a, different) - self.assertNotEquals(same_a, different) - self.failIfEqual(same_a, different) + self.assertNotEqual(same_a, different) + self.assertNotEqual(same_a, different) if PY_VERSION_2: self.assertNotEqual(0, cmp(same_a, different)) self.assertFalse(same_b == different) self.assertTrue(same_b != different) self.assertNotEqual(same_b, different) - self.assertNotEquals(same_b, different) - self.failIfEqual(same_b, different) + self.assertNotEqual(same_b, different) + self.assertNotEqual(same_b, different) if PY_VERSION_2: self.assertNotEqual(0, cmp(same_b, different)) @@ -1395,22 +1395,22 @@ def testSetUpCalledForEachTestMethod(self): self.RunTestCaseTests(SetUpSpy) - self.assertEquals(2, SetUpSpy.set_up_counter) + self.assertEqual(2, SetUpSpy.set_up_counter) def testSetUpTestCaseCalledExactlyOnce(self): self.RunTestCaseTests(SetUpTestCaseSpy) - self.assertEquals(1, SetUpTestCaseSpy.set_up_test_case_counter) + self.assertEqual(1, SetUpTestCaseSpy.set_up_test_case_counter) def testTearDownCalledForEachTestMethod(self): self.RunTestCaseTests(TearDownSpy) - self.assertEquals(2, TearDownSpy.tear_down_counter) + self.assertEqual(2, TearDownSpy.tear_down_counter) def testTearDownTestCaseCalledExactlyOnce(self): self.RunTestCaseTests(TearDownTestCaseSpy) - self.assertEquals(1, TearDownTestCaseSpy.tear_down_test_case_counter) + self.assertEqual(1, TearDownTestCaseSpy.tear_down_test_case_counter) def testDefaultSetUpTestCaseExists(self): self.assertTrue( @@ -1489,9 +1489,7 @@ return wrapper @add_arguments(named='blah') - class TestClass(basetest.TestCase): - __metaclass__ = basetest.BeforeAfterTestCaseMeta - + class TestClass(basetest.TestCase, metaclass=basetest.BeforeAfterTestCaseMeta): def testMain(self, named): self.assertEqual('blah', named) @@ -1511,8 +1509,7 @@ pass -class SetUpSpy(StubPrefixedTestMethodsTestCase): - __metaclass__ = basetest.BeforeAfterTestCaseMeta +class SetUpSpy(StubPrefixedTestMethodsTestCase, metaclass=basetest.BeforeAfterTestCaseMeta): set_up_counter = 0 def setUp(self): @@ -1520,9 +1517,7 @@ SetUpSpy.set_up_counter += 1 -class SetUpTestCaseSpy(StubPrefixedTestMethodsTestCase): - - __metaclass__ = basetest.BeforeAfterTestCaseMeta +class SetUpTestCaseSpy(StubPrefixedTestMethodsTestCase, metaclass=basetest.BeforeAfterTestCaseMeta): set_up_test_case_counter = 0 @@ -1531,9 +1526,7 @@ SetUpTestCaseSpy.set_up_test_case_counter += 1 -class TearDownSpy(StubPrefixedTestMethodsTestCase): - - __metaclass__ = basetest.BeforeAfterTestCaseMeta +class TearDownSpy(StubPrefixedTestMethodsTestCase, metaclass=basetest.BeforeAfterTestCaseMeta): tear_down_counter = 0 @@ -1542,9 +1535,7 @@ StubPrefixedTestMethodsTestCase.tearDown(self) -class TearDownTestCaseSpy(StubPrefixedTestMethodsTestCase): - - __metaclass__ = basetest.BeforeAfterTestCaseMeta +class TearDownTestCaseSpy(StubPrefixedTestMethodsTestCase, metaclass=basetest.BeforeAfterTestCaseMeta): tear_down_test_case_counter = 0 @@ -1553,9 +1544,9 @@ StubPrefixedTestMethodsTestCase.tearDownTestCase(self) -class OnlyBeforeAfterTestCaseMetaDefinedSpy(basetest.TestCase): - - __metaclass__ = basetest.BeforeAfterTestCaseMeta +class OnlyBeforeAfterTestCaseMetaDefinedSpy(basetest.TestCase, metaclass=basetest.BeforeAfterTestCaseMeta): + + pass # Here we define 3 classes: a base class and two subclasses inheriting from it. @@ -1575,9 +1566,7 @@ # it would go from 3 to 1 to -1, skipping 0 entirely. -class InheritanceSpyBaseClass(basetest.TestCase): - - __metaclass__ = basetest.BeforeAfterTestCaseMeta +class InheritanceSpyBaseClass(basetest.TestCase, metaclass=basetest.BeforeAfterTestCaseMeta): calls_made = [] @@ -1642,9 +1631,7 @@ # We define another pair of base/subclass here to verify that tearDown # and tearDownTestCase always happen in the correct order. -class TearDownOrderWatcherBaRefactoringTool: Refactored ../python3/tests/appcommands_example.py RefactoringTool: No changes to ../python3/tests/app_test_helper.py RefactoringTool: No changes to ../python3/tests/app_test.py RefactoringTool: No changes to ../python3/setup.py RefactoringTool: Refactored ../python3/google/apputils/stopwatch.py RefactoringTool: No changes to ../python3/google/apputils/shellutil.py RefactoringTool: Refactored ../python3/google/apputils/setup_command.py RefactoringTool: Refactored ../python3/google/apputils/run_script_module.py RefactoringTool: No changes to ../python3/google/apputils/resources.py RefactoringTool: Refactored ../python3/google/apputils/humanize.py seClass(basetest.TestCase): - __metaclass__ = basetest.BeforeAfterTestCaseMeta - +class TearDownOrderWatcherBaseClass(basetest.TestCase, metaclass=basetest.BeforeAfterTestCaseMeta): calls_made = [] @staticmethod @@ -1703,9 +1690,7 @@ """ -class MultipleMetaInstanceClass(basetest.TestCase): - __metaclass__ = MultipleMetaBeforeAfter - +class MultipleMetaInstanceClass(basetest.TestCase, metaclass=MultipleMetaBeforeAfter): def testOtherMetaInitCalled(self): self.assertTrue(hasattr(MultipleMetaInstanceClass, 'other_meta_called')) @@ -1777,7 +1762,7 @@ def __init__(self): pass - Subclass().assertEquals({}, {}) + Subclass().assertEqual({}, {}) def testMultipleInheritance(self): @@ -1788,7 +1773,7 @@ class Subclass(Foo, basetest.TestCase): pass - Subclass().assertEquals({}, {}) + Subclass().assertEqual({}, {}) if __name__ == '__main__': --- ../python3/tests/appcommands_example.py (original) +++ ../python3/tests/appcommands_example.py (refactored) @@ -55,11 +55,11 @@ Returns: Value of flag fail1 """ - print 'Command1' + print('Command1') if FLAGS.hint: - print "Hint1:'%s'" % FLAGS.hint - print "Foo1:'%s'" % FLAGS.foo - print "Bar1:'%s'" % FLAGS.bar + print("Hint1:'%s'" % FLAGS.hint) + print("Foo1:'%s'" % FLAGS.foo) + print("Bar1:'%s'" % FLAGS.bar) return FLAGS.fail1 * 1 @@ -83,22 +83,22 @@ Returns: Value of flag fail2 """ - print 'Command2' + print('Command2') if FLAGS.hint: - print "Hint2:'%s'" % FLAGS.hint - print "Foo2:'%s'" % FLAGS.foo - print "Bar2:'%s'" % FLAGS.bar + print("Hint2:'%s'" % FLAGS.hint) + print("Foo2:'%s'" % FLAGS.foo) + print("Bar2:'%s'" % FLAGS.bar) return FLAGS.fail2 * 1 def Test3(unused_argv): """Help for test3.""" - print 'Command3' + print('Command3') def Test4(unused_argv): """Help for test4.""" - print 'Command4' + print('Command4') def main(unused_argv): --- ../python3/google/apputils/stopwatch.py (original) +++ ../python3/google/apputils/stopwatch.py (refactored) @@ -46,7 +46,7 @@ all_this. """ -import StringIO +import io import time @@ -150,7 +150,7 @@ if total == 0.0: return 0.0 - all_timers = sum(self.accum.itervalues()) + all_timers = sum(self.accum.values()) return total - (all_timers - total) def results(self, verbose=False): @@ -166,7 +166,7 @@ """ now = time.time() - all_names = self.accum.keys() + all_names = list(self.accum.keys()) names = [] if 'total' in all_names: @@ -193,7 +193,7 @@ Returns: A string describing the stopwatch. """ - output = StringIO.StringIO() + output = io.StringIO() results = self.results(verbose=verbose) maxlength = max([len(result[0]) for result in results]) for result in results: --- ../python3/google/apputils/setup_command.py (original) +++ ../python3/google/apputils/setup_command.py (refactored) @@ -126,7 +126,7 @@ sys.argv = [module.__file__] + self.test_args # Late import since this must be run with the project's sys.path. - import basetest + from . import basetest try: try: sys.stderr.write('Testing %s\n' % module_name) --- ../python3/google/apputils/run_script_module.py (original) +++ ../python3/google/apputils/run_script_module.py (refactored) @@ -119,7 +119,7 @@ def PrintOurUsage(): """Print usage for the stub script.""" - print 'Stub script %s (auto-generated). Options:' % sys.argv[0] + print('Stub script %s (auto-generated). Options:' % sys.argv[0]) print ('--helpstub ' 'Show help for stub script.') print ('--debug_binary ' @@ -204,8 +204,8 @@ args = [sys.executable] + args if show_command_and_exit: - print 'program: "%s"' % program - print 'args:', args + print('program: "%s"' % program) + print('args:', args) sys.exit(0) try: --- ../python3/google/apputils/humanize.py (original) +++ ../python3/google/apputils/humanWARNING: couldn't encode ../python3/google/apputils/humanize.py's diff for your terminal RefactoringTool: Refactored ../python3/google/apputils/file_util.py RefactoringTool: No changes to ../python3/google/apputils/debug.py RefactoringTool: No changes to ../python3/google/apputils/datelib.py RefactoringTool: Refactored ../python3/google/apputils/basetest.py ize.py (refactored) @@ -270,7 +270,7 @@ units (string). """ if min_scale is None or min_scale < 0: --- ../python3/google/apputils/file_util.py (original) +++ ../python3/google/apputils/file_util.py (refactored) @@ -42,7 +42,7 @@ return fp.read() -def Write(filename, contents, overwrite_existing=True, mode=0666, gid=None): +def Write(filename, contents, overwrite_existing=True, mode=0o666, gid=None): """Create a file 'filename' with 'contents', with the mode given in 'mode'. The 'mode' is modified by the umask, as in open(2). If @@ -70,7 +70,7 @@ os.chown(filename, -1, gid) -def AtomicWrite(filename, contents, mode=0666, gid=None): +def AtomicWrite(filename, contents, mode=0o666, gid=None): """Create a file 'filename' with 'contents' atomically. As in Write, 'mode' is modified by the umask. This creates and moves @@ -97,10 +97,10 @@ if gid is not None: os.chown(tmp_filename, -1, gid) os.rename(tmp_filename, filename) - except OSError, exc: + except OSError as exc: try: os.remove(tmp_filename) - except OSError, e: + except OSError as e: exc = OSError('%s. Additional errors cleaning up: %s' % (exc, e)) raise exc @@ -158,7 +158,7 @@ # only chmod if we created if force_mode is not None: os.chmod(path, force_mode) - except OSError, exc: + except OSError as exc: if not (exc.errno == errno.EEXIST and os.path.isdir(path)): raise @@ -174,7 +174,7 @@ """ try: shutil.rmtree(dir_name) - except OSError, err: + except OSError as err: if err.errno != errno.ENOENT: raise @@ -183,12 +183,12 @@ while parent_directory: try: os.rmdir(parent_directory) - except OSError, err: + except OSError as err: if err.errno != errno.ENOENT: raise parent_directory = os.path.dirname(parent_directory) - except OSError, err: + except OSError as err: if err.errno not in (errno.EACCES, errno.ENOTEMPTY): raise --- ../python3/google/apputils/basetest.py (original) +++ ../python3/google/apputils/basetest.py (refactored) @@ -32,7 +32,7 @@ import sys import tempfile import types -import urlparse +import urllib.parse try: import faulthandler @@ -438,9 +438,9 @@ # has a different error format. However, I find this slightly more readable. def assertMultiLineEqual(self, first, second, msg=None): """Assert that two multi-line strings are equal.""" - assert isinstance(first, types.StringTypes), ( + assert isinstance(first, (str,)), ( 'First argument is not a string: %r' % (first,)) - assert isinstance(second, types.StringTypes), ( + assert isinstance(second, (str,)), ( 'Second argument is not a string: %r' % (second,)) if first == second: @@ -459,8 +459,8 @@ """Asserts that value is between minv and maxv (inclusive).""" if msg is None: msg = '"%r" unexpectedly not between "%r" and "%r"' % (value, minv, maxv) - self.assert_(minv <= value, msg) - self.assert_(maxv >= value, msg) + self.assertTrue(minv <= value, msg) + self.assertTrue(maxv >= value, msg) def assertRegexMatch(self, actual_str, regexes, message=None): """Asserts that at least one regex in regexes matches str. @@ -494,7 +494,7 @@ See "Notes" above for detailed notes on how this is interpreted. message: The message to be printed if the test fails. """ - if isinstance(regexes, basestring): + if isinstance(regexes, str): self.fail('regexes is a string; use assertRegexpMatches instead.') if not regexes: self.fail('No regexes specified.') @@ -504,15 +504,15 @@ if type(regex) is not regex_type: self.fail('regexes list must all be the same type.') - if regex_type is bytes and isinstance(actual_str, unicode): + if regex_type is bytes and isinstance(actual_str, str): regexes = [regex.decode('utf-8') for regex in regexes] - regex_type = unicode - elif regex_type is unicode and isinstance(actual_str, bytes): + regex_type = str + elif regex_type is str and isinstance(actual_str, bytes): regexes = [regex.encode('utf-8') for regex in regexes] regex_type = bytes - if regex_type is unicode: - regex = u'(?:%s)' % u')|(?:'.join(regexes) + if regex_type is str: + regex = '(?:%s)' % ')|(?:'.join(regexes) elif regex_type is bytes: regex = b'(?:' + (b')|(?:'.join(regexes)) + b')' else: @@ -537,7 +537,7 @@ # Accommodate code which listed their output regexes w/o the b'' prefix by # converting them to bytes for the user. - if isinstance(regexes[0], unicode): + if isinstance(regexes[0], str): regexes = [regex.encode('utf-8') for regex in regexes] command_string = GetCommandString(command) @@ -575,7 +575,7 @@ # Accommodate code which listed their output regexes w/o the b'' prefix by # converting them to bytes for the user. - if isinstance(regexes[0], unicode): + if isinstance(regexes[0], str): regexes = [regex.encode('utf-8') for regex in regexes] command_string = GetCommandString(command) @@ -611,7 +611,7 @@ try: callable_obj(*args, **kwargs) except expected_exception as err: - self.assert_(predicate(err), + self.assertTrue(predicate(err), '%r does not match predicate %r' % (err, predicate)) else: self.fail(expected_exception.__name__ + ' not raised') @@ -637,7 +637,7 @@ callable_obj(*args, **kwargs) except expected_exception as err: actual_exception_message = str(err) - self.assert_(expected_exception_message == actual_exception_message, + self.assertTrue(expected_exception_message == actual_exception_message, 'Exception message does not match.\n' 'Expected: %r\n' 'Actual: %r' % (expected_exception_message, @@ -662,7 +662,7 @@ """ # TODO(user): this is a good candidate for a global # search-and-replace. - self.assertRaisesRegexp( + self.assertRaisesRegex( expected_exception, expected_regexp, callable_obj, @@ -808,8 +808,8 @@ if a == b: return - a_items = Sorted(a.iteritems()) - b_items = Sorted(b.iteritems()) + a_items = Sorted(iter(a.items())) + b_items = Sorted(iter(b.items())) unexpected = [] missing = [] @@ -822,7 +822,7 @@ # Sort the entries based on their repr, not based on their sort order, # which will be non-deterministic across executions, for many types. entries = sorted((safe_repr(k), safe_repr(v)) - for k, v in dikt.iteritems()) + for k, v in dikt.items()) return '{%s}' % (', '.join('%s: %s' % pair for pair in entries)) message = ['%s != %s%s' % (Repr(a), Repr(b), ' (%s)' % msg if msg else '')] @@ -859,16 +859,16 @@ def assertUrlEqual(self, a, b): """Asserts that urls are equal, ignoring ordering of query params.""" - parsed_a = urlparse.urlparse(a) - parsed_b = urlparse.urlparse(b) + parsed_a = urllib.parse.urlparse(a) + parsed_b = urllib.parse.urlparse(b) self.assertEqual(parsed_a.scheme, parsed_b.scheme) self.assertEqual(parsed_a.netloc, parsed_b.netloc) self.assertEqual(parsed_a.path, parsed_b.path) self.assertEqual(parsed_a.fragment, parsed_b.fragment) self.assertEqual(sorted(parsed_a.params.split(';')), sorted(parsed_b.params.split(';'))) - self.assertDictEqual(urlparse.parse_qs(parsed_a.query), - urlparse.parse_qs(parsed_b.query)) + self.assertDictEqual(urllib.parse.parse_qs(parsed_a.query), + urllib.parse.parse_qs(parsed_b.query)) def assertSameStructure(self, a, b, aname='a', bname='b', msg=None): """Asserts that two values contain the same structural content. @@ -1042,7 +1042,7 @@ # Open file to save stream to cap_fd = os.open(self._filename, os.O_CREAT | os.O_TRUNC | os.O_WRONLY, - 0600) + 0o600) # Send stream to this file self._stream.flush() @@ -1057,7 +1057,7 @@ # Append stream to file cap_fd = os.open(self._filename, os.O_CREAT | os.O_APPEND | os.O_WRONLY, - 0600) + 0o600) # Send stream to this file self._stream.flush() @@ -1088,7 +1088,7 @@ stream: Should be sys.stdout or sys.stderr. filename: File where output should be stored. """ - assert not _captured_streams.has_key(stream) + assert stream not in _captured_streams _captured_streams[stream] = CapturedStream(stream, filename) @@ -1099,10 +1099,10 @@ stream: Should be sys.stdout or sys.stderr. golden_filename: Absolute path to golden file. """ - assert _captured_streams.has_key(stream) + assert stream in _captured_streams cap = _captured_streams[stream] - for cap_stream in _captured_streams.itervalues(): + for cap_stream in _captured_streams.values(): cap_stream.StopCapture() try: @@ -1111,7 +1111,7 @@ # remove the current stream del _captured_streams[stream] # restore other stream capture - for cap_stream in _captured_streams.itervalues(): + for cap_stream in _captured_streams.values(): cap_stream.RestartCapture() @@ -1179,7 +1179,7 @@ os.close(fd) -_INT_TYPES = (int, long) # Sadly there is no types.IntTypes defined for us. +_INT_TYPES = (int, int) # Sadly there is no types.IntTypes defined for us. def _WalkStructureForProblems(a, b, aname, bname, problem_list): @@ -1206,15 +1206,15 @@ problem_list.append('%s lacks [%r] but %s has it' % (aname, k, bname)) # Strings are Sequences but we'll just do those with regular != - elif isinstance(a, collections.Sequence) and not isinstance(a, basestring): + elif isinstance(a, collections.Sequence) and not isinstance(a, str): minlen = min(len(a), len(b)) - for i in xrange(minlen): + for i in range(minlen): _WalkStructureForProblems(a[i], b[i], '%s[%d]' % (aname, i), '%s[%d]' % (bname, i), problem_list) - for i in xrange(minlen, len(a)): + for i in range(minlen, len(a)): problem_list.append('%s has [%i] but %s does not' % (aname, i, bname)) - for i in xrange(minlen, len(b)): + for i in range(minlen, len(b)): problem_list.append('%s lacks [%i] but %s has it' % (aname, i, bname)) else: @@ -1302,7 +1302,7 @@ Returns: A string suitable for use as a shell command. """ - if isinstance(command, types.StringTypes): + if isinstance(command, (str,)): return command else: return shellutil.ShellEscapeList(command) @@ -1326,7 +1326,7 @@ if os.environ.get('PYTHON_RUNFILES') and not env.get('PYTHON_RUNFILES'): env['PYTHON_RUNFILES'] = os.environ['PYTHON_RUNFILES'] - use_shell = isinstance(command, types.StringTypes) + use_shell = isinstance(command, (str,)) process = subprocess.Popen( command, close_fds=close_fds, @@ -1457,7 +1457,7 @@ # Save command-line flags so the side effects of FLAGS(sys.argv) can be # undone. saved_flags = dict((f.name, SavedFlag(f)) - for f in FLAGS.FlagDict().itervalues()) + for f in FLAGS.FlagDict().values()) # Here we'd like to change the default of alsologtostderr from False to # True, so the test programs's stderr will contain all the log messages. @@ -1494,7 +1494,7 @@ # after the command-line has been parsed. So we have the for loop below # to change back flags to their old values. argv = FLAGS(sys.argv) - for saved_flag in saved_flags.itervalues(): + for saved_flag in saved_flags.values(): saved_flag.RestoreFlag() @@ -1535,7 +1535,7 @@ # Run main module setup, if it exists main_mod = sys.modules['__main__'] - if hasattr(main_mod, 'setUp') and callable(main_mod.setUp): + if hasattr(main_mod, 'setUp') and isinstance(main_mod.setUp, collections.Callable): main_mod.setUp() # Let unitRefactoringTool: Refactored ../python3/google/apputils/appcommands.py RefactoringTool: Refactored ../python3/google/apputils/app.py RefactoringTool: No changes to ../python3/google/apputils/__init__.py RefactoringTool: No changes to ../python3/google/__init__.py RefactoringTool: Refactored ../python3/ez_setup.py test.TestProgram.__init__ called by @@ -1554,7 +1554,7 @@ result = test_program.testRunner.run(test_program.test) finally: # Run main module teardown, if it exists - if hasattr(main_mod, 'tearDown') and callable(main_mod.tearDown): + if hasattr(main_mod, 'tearDown') and isinstance(main_mod.tearDown, collections.Callable): main_mod.tearDown() sys.exit(not result.wasSuccessful()) --- ../python3/google/apputils/appcommands.py (original) +++ ../python3/google/apputils/appcommands.py (refactored) @@ -177,7 +177,7 @@ def GetFullCommandList(): """Return list of registered commands, including aliases.""" all_cmds = dict(GetCommandList()) - for cmd_alias, cmd_name in GetCommandAliasList().iteritems(): + for cmd_alias, cmd_name in GetCommandAliasList().items(): all_cmds[cmd_alias] = all_cmds.get(cmd_name) return all_cmds @@ -287,7 +287,7 @@ else: assert isinstance(ret, int) return ret - except app.UsageError, error: + except app.UsageError as error: app.usage(shorthelp=1, detailed_error=error, exitcode=error.exitcode) except: if FLAGS.pdb_post_mortem: @@ -629,7 +629,7 @@ else: # Show list of commands if show_cmd is None or show_cmd == 'help': - cmd_names = GetCommandList().keys() + cmd_names = list(GetCommandList().keys()) cmd_names.sort() stdfile.write('Any of the following commands:\n') doc = ', '.join(cmd_names) @@ -641,7 +641,7 @@ elif FLAGS.help or FLAGS.helpshort or shorthelp: cmd_names = [] else: - cmd_names = GetCommandList().keys() # show all commands + cmd_names = list(GetCommandList().keys()) # show all commands cmd_names.sort() # Show the command help (none, one specific, or all) for name in cmd_names: @@ -708,7 +708,7 @@ try: _cmd_argv = FLAGS(argv) return _cmd_argv - except flags.FlagsError, error: + except flags.FlagsError as error: ShortHelpAndExit('FATAL Flags parsing error: %s' % error) @@ -763,9 +763,9 @@ try: sys.modules['__main__'].main(GetCommandArgv()) # If sys.exit was called, return with error code. - except SystemExit, e: + except SystemExit as e: sys.exit(e.code) - except Exception, error: + except Exception as error: traceback.print_exc() # Print a backtrace to stderr. ShortHelpAndExit('\nFATAL error in main: %s' % error) --- ../python3/google/apputils/app.py (original) +++ ../python3/google/apputils/app.py (refactored) @@ -91,8 +91,8 @@ if arg: usage(shorthelp=1, writeto_stdout=1) # Advertise --helpfull on stdout, since usage() was on stdout. - print - print 'Try --helpfull to get a list of all flags.' + print() + print('Try --helpfull to get a list of all flags.') sys.exit(1) @@ -146,7 +146,7 @@ try: argv = FLAGS(args) return argv - except flags.FlagsError, error: + except flags.FlagsError as error: sys.stderr.write('FATAL Flags parsing error: %s\n' % error) sys.stderr.write('Pass --helpshort or --helpfull to see help on flags.\n') sys.exit(1) @@ -218,7 +218,7 @@ sys.exit(retval) else: sys.exit(main(argv)) - except UsageError, error: + except UsageError as error: usage(shorthelp=1, detailed_error=error, exitcode=error.exitcode) except: if FLAGS.pdb_post_mortem: @@ -265,9 +265,9 @@ try: really_start() - except SystemExit, e: + except SystemExit as e: raise - except Exception, e: + except Exception as e: # Call any installed exception handlers which may, for example, # log to a file or send email. for handler in EXCEPTION_HANDLERS: @@ -323,7 +323,7 @@ stdfile.write('\n') if detailed_error is not None: stdfile.write('\n%s\n' % detailed_error) - except IOError, e: + except IOError as e: # We avoid printing a huge backtrace if we get EPIPE, because # "foo.par --help | less" is a frequent use case. if e.errno != errno.EPIPE: --- ../python3/ez_setup.py (original) +++ ../pRefactoringTool: Files that were modified: RefactoringTool: ../python3/tests/stopwatch_unittest.py RefactoringTool: ../python3/tests/shellutil_unittest.py RefactoringTool: ../python3/tests/sh_test.py RefactoringTool: ../python3/tests/resources_test.py RefactoringTool: ../python3/tests/humanize_test.py RefactoringTool: ../python3/tests/file_util_test.py RefactoringTool: ../python3/tests/datelib_unittest.py RefactoringTool: ../python3/tests/basetest_test.py RefactoringTool: ../python3/tests/appcommands_example.py RefactoringTool: ../python3/tests/app_test_helper.py RefactoringTool: ../python3/tests/app_test.py RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/google/apputils/stopwatch.py RefactoringTool: ../python3/google/apputils/shellutil.py RefactoringTool: ../python3/google/apputils/setup_command.py RefactoringTool: ../python3/google/apputils/run_script_module.py RefactoringTool: ../python3/google/apputils/resources.py RefactoringTool: ../python3/google/apputils/humanize.py RefactoringTool: ../python3/google/apputils/file_util.py RefactoringTool: ../python3/google/apputils/debug.py RefactoringTool: ../python3/google/apputils/datelib.py RefactoringTool: ../python3/google/apputils/basetest.py RefactoringTool: ../python3/google/apputils/appcommands.py RefactoringTool: ../python3/google/apputils/app.py RefactoringTool: ../python3/google/apputils/__init__.py RefactoringTool: ../python3/google/__init__.py RefactoringTool: ../python3/ez_setup.py ython3/ez_setup.py (refactored) @@ -43,10 +43,10 @@ if egg_name in md5_data: digest = md5(data).hexdigest() if digest != md5_data[egg_name]: - print >>sys.stderr, ( + print(( "md5 validation of %s failed! (Possible download problem?)" % egg_name - ) + ), file=sys.stderr) sys.exit(2) return data @@ -76,14 +76,14 @@ return do_download() try: pkg_resources.require("setuptools>="+version); return - except pkg_resources.VersionConflict, e: + except pkg_resources.VersionConflict as e: if was_imported: - print >>sys.stderr, ( + print(( "The required version of setuptools (>=%s) is not available, and\n" "can't be installed while this script is running. Please install\n" " a more recent version first, using 'easy_install -U setuptools'." "\n\n(Currently using %r)" - ) % (version, e.args[0]) + ) % (version, e.args[0]), file=sys.stderr) sys.exit(2) except pkg_resources.DistributionNotFound: pass @@ -102,7 +102,7 @@ with a '/'). `to_dir` is the directory where the egg will be downloaded. `delay` is the number of seconds to pause before an actual download attempt. """ - import urllib2, shutil + import urllib.request, urllib.error, urllib.parse, shutil egg_name = "setuptools-%s-py%s.egg" % (version,sys.version[:3]) url = download_base + egg_name saveto = os.path.join(to_dir, egg_name) @@ -128,7 +128,7 @@ version, download_base, delay, url ); from time import sleep; sleep(delay) log.warn("Downloading %s", url) - src = urllib2.urlopen(url) + src = urllib.request.urlopen(url) # Read/write all in one block, so we don't create a corrupt file # if the download is interrupted. data = _validate_md5(egg_name, src.read()) @@ -189,10 +189,10 @@ os.unlink(egg) else: if setuptools.__version__ == '0.0.1': - print >>sys.stderr, ( + print(( "You have an obsolete version of setuptools installed. Please\n" "remove it from your system entirely before rerunning this script." - ) + ), file=sys.stderr) sys.exit(2) req = "setuptools>="+version @@ -211,8 +211,8 @@ from setuptools.command.easy_install import main main(argv) else: - print "Setuptools version",version,"or greater has been installed." - print '(Run "ez_setup.py -U setuptools" to reinstall or upgrade.)' + print("Setuptools version",version,"or greater has been installed.") + print('(Run "ez_setup.py -U setuptools" to reinstall or upgrade.)') def update_md5(filenames): """Update our built-in md5 registry""" @@ -225,7 +225,7 @@ md5_data[base] = md5(f.read()).hexdigest() f.close() - data = [" %r: %r,\n" % it for it in md5_data.items()] + data = [" %r: %r,\n" % it for it in list(md5_data.items())] data.sort() repl = "".join(data) @@ -235,7 +235,7 @@ match = re.search("\nmd5_data = {\n([^}]+)}", src) if not match: - print >>sys.stderr, "Internal error!" + print("Internal error!", file=sys.stderr) sys.exit(2) src = src[:match.start(1)] + repl + src[match.end(1):] + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.73330 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-google-apputils-0.4.0 + 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 --debug running build running build_py creating build creating build/lib creating build/lib/google copying google/__init__.py -> build/lib/google creating build/lib/google/apputils copying google/apputils/stopwatch.py -> build/lib/google/apputils copying google/apputils/shellutil.py -> build/lib/google/apputils copying google/apputils/setup_command.py -> build/lib/google/apputils copying google/apputils/run_script_module.py -> build/lib/google/apputils copying google/apputils/resources.py -> build/lib/google/apputils copying google/apputils/humanize.py -> build/lib/google/apputils copying google/apputils/file_util.py -> build/lib/google/apputils copying google/apputils/debug.py -> build/lib/google/apputils copying google/apputils/datelib.py -> build/lib/google/apputils copying google/apputils/basetest.py -> build/lib/google/apputils copying google/apputils/appcommands.py -> build/lib/google/apputils copying google/apputils/app.py -> build/lib/google/apputils copying google/apputils/__init__.py -> build/lib/google/apputils + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-google-apputils-0.4.0 + 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 --debug running build running build_py creating build creating build/lib creating build/lib/google copying google/__init__.py -> build/lib/google creating build/lib/google/apputils copying google/apputils/stopwatch.py -> build/lib/google/apputils copying google/apputils/shellutil.py -> build/lib/google/apputils copying google/apputils/setup_command.py -> build/lib/google/apputils copying google/apputils/run_script_module.py -> build/lib/google/apputils copying google/apputils/resources.py -> build/lib/google/apputils copying google/apputils/humanize.py -> build/lib/google/apputils copying google/apputils/file_util.py -> build/lib/google/apputils copying google/apputils/debug.py -> build/lib/google/apputils copying google/apputils/datelib.py -> build/lib/google/apputils copying google/apputils/basetest.py -> build/lib/google/apputils copying google/apputils/appcommands.py -> build/lib/google/apputils copying google/apputils/app.py -> build/lib/google/apputils copying google/apputils/__init__.py -> build/lib/google/apputils + popd ~/RPM/BUILD/python-module-google-apputils-0.4.0 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.73330 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-google-apputils-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-google-apputils-buildroot + cd python-module-google-apputils-0.4.0 + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-google-apputils-buildroot --force running install running install_lib Skipping installation of /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/__init__.py (namespace package) copying google/apputils/__init__.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils copying google/apputils/app.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils copying google/apputils/appcommands.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils copying google/apputils/basetest.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils copying google/apputils/datelib.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils copying google/apputils/debug.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils copying google/apputils/file_util.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils copying google/apputils/humanize.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils copying google/apputils/resources.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils copying google/apputils/run_script_module.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils copying google/apputils/setup_command.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils copying google/apputils/shellutil.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils copying google/apputils/stopwatch.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils/app.py to app.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils/appcommands.py to appcommands.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils/basetest.py to basetest.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils/datelib.py to datelib.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils/debug.py to debug.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils/file_util.py to file_util.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils/humanize.py to humanize.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils/resources.py to resources.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils/run_script_module.py to run_script_module.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils/setup_command.py to setup_command.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils/shellutil.py to shellutil.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google/apputils/stopwatch.py to stopwatch.pyc running install_egg_info running egg_info writing requirements to google_apputils.egg-info/requires.txt writing google_apputils.egg-info/PKG-INFO writing namespace_packages to google_apputils.egg-info/namespace_packages.txt writing top-level names to google_apputils.egg-info/top_level.txt writing dependency_links to google_apputils.egg-info/dependency_links.txt writing entry points to google_apputils.egg-info/entry_points.txt reading manifest file 'google_apputils.egg-info/SOURCES.txt' writing manifest file 'google_apputils.egg-info/SOURCES.txt' Copying google_apputils.egg-info to /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google_apputils-0.4.0-py2.7.egg-info Installing /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google_apputils-0.4.0-py2.7-nspkg.pth running install_scripts + install -d /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages + mv /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google_apputils-0.4.0-py2.7-nspkg.pth /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python2.7/site-packages/google_apputils-0.4.0-py2.7.egg-info /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/ + install -p -m644 google/__init__.py /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/ + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-google-apputils-0.4.0 + python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-google-apputils-buildroot --force running install running install_lib Skipping installation of /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/__init__.py (namespace package) copying google/apputils/__init__.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils copying google/apputils/app.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils copying google/apputils/appcommands.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils copying google/apputils/basetest.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils copying google/apputils/datelib.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils copying google/apputils/debug.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils copying google/apputils/file_util.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils copying google/apputils/humanize.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils copying google/apputils/resources.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils copying google/apputils/run_script_module.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils copying google/apputils/setup_command.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils copying google/apputils/shellutil.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils copying google/apputils/stopwatch.py -> /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils/app.py to app.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils/appcommands.py to appcommands.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils/basetest.py to basetest.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils/datelib.py to datelib.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils/debug.py to debug.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils/file_util.py to file_util.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils/humanize.py to humanize.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils/resources.py to resources.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils/run_script_module.py to run_script_module.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils/setup_command.py to setup_command.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils/shellutil.py to shellutil.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google/apputils/stopwatch.py to stopwatch.cpython-35.pyc running install_egg_info running egg_info writing namespace_packages to google_apputils.egg-info/namespace_packages.txt writing entry points to google_apputils.egg-info/entry_points.txt writing requirements to google_apputils.egg-info/requires.txt writing google_apputils.egg-info/PKG-INFO writing dependency_links to google_apputils.egg-info/dependency_links.txt writing top-level names to google_apputils.egg-info/top_level.txt reading manifest file 'google_apputils.egg-info/SOURCES.txt' writing manifest file 'google_apputils.egg-info/SOURCES.txt' Copying google_apputils.egg-info to /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google_apputils-0.4.0-py3.5.egg-info Installing /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google_apputils-0.4.0-py3.5-nspkg.pth running install_scripts + install -d /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages + mv /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google_apputils-0.4.0-py3.5-nspkg.pth /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib/python3/site-packages/google_apputils-0.4.0-py3.5.egg-info /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/ + install -p -m644 google/__init__.py /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/ + popd ~/RPM/BUILD/python-module-google-apputils-0.4.0 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-google-apputils-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-google-apputils-buildroot (binconfig,pkgconfig,libtool,desktop) Compressing files in /usr/src/tmp/python-module-google-apputils-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-google-apputils-buildroot ./usr/lib64: ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-google-apputils-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-google-apputils-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/__init__.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/app.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/appcommands.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/basetest.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/datelib.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/debug.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/file_util.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/humanize.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/resources.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/run_script_module.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/setup_command.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/shellutil.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/stopwatch.pyc compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/__init__.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/app.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/appcommands.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/basetest.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/datelib.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/debug.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/file_util.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/humanize.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/resources.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/run_script_module.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/setup_command.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/shellutil.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/stopwatch.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/__init__.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-google-apputils-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/__init__.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/app.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/appcommands.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/basetest.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/datelib.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/debug.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/file_util.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/humanize.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/resources.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/run_script_module.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/setup_command.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/shellutil.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/stopwatch.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/__init__.py Bytecompiling python3 modules in /usr/src/tmp/python-module-google-apputils-buildroot using python3 unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/__pycache__/app.cpython-35.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/__pycache__/appcommands.cpython-35.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/__pycache__/basetest.cpython-35.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/__pycache__/datelib.cpython-35.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/__pycache__/debug.cpython-35.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/__pycache__/file_util.cpython-35.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/__pycache__/humanize.cpython-35.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/__pycache__/resources.cpython-35.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/__pycache__/run_script_module.cpython-35.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/__pycache__/setup_command.cpython-35.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/__pycache__/shellutil.cpython-35.pyc unlink /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/__pycache__/stopwatch.cpython-35.pyc compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/__init__.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/app.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/appcommands.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/basetest.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/datelib.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/debug.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/file_util.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/humanize.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/resources.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/run_script_module.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/setup_command.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/shellutil.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/stopwatch.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/__init__.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-google-apputils-buildroot using python3 -O compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/__init__.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/app.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/appcommands.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/basetest.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/datelib.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/debug.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/file_util.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/humanize.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/resources.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/run_script_module.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/setup_command.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/shellutil.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/stopwatch.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/__init__.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-google-apputils-buildroot using python3 -OO compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/__init__.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/app.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/appcommands.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/basetest.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/datelib.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/debug.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/file_util.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/humanize.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/resources.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/run_script_module.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/setup_command.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/shellutil.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/stopwatch.py compile /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/__init__.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib64/python3/site-packages/google/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/google/__pycache__/__init__.cpython-35.pyc' './usr/lib64/python3/site-packages/google/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib64/python3/site-packages/google/__pycache__/__init__.cpython-35.opt-1.pyc' './usr/lib64/python3/site-packages/google/apputils/__pycache__/stopwatch.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/google/apputils/__pycache__/stopwatch.cpython-35.pyc' './usr/lib64/python3/site-packages/google/apputils/__pycache__/shellutil.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/google/apputils/__pycache__/shellutil.cpython-35.pyc' './usr/lib64/python3/site-packages/google/apputils/__pycache__/setup_command.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/google/apputils/__pycache__/setup_command.cpython-35.pyc' './usr/lib64/python3/site-packages/google/apputils/__pycache__/resources.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/google/apputils/__pycache__/resources.cpython-35.pyc' './usr/lib64/python3/site-packages/google/apputils/__pycache__/humanize.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/google/apputils/__pycache__/humanize.cpython-35.pyc' './usr/lib64/python3/site-packages/google/apputils/__pycache__/file_util.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/google/apputils/__pycache__/file_util.cpython-35.pyc' './usr/lib64/python3/site-packages/google/apputils/__pycache__/debug.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/google/apputils/__pycache__/debug.cpython-35.pyc' './usr/lib64/python3/site-packages/google/apputils/__pycache__/datelib.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/google/apputils/__pycache__/datelib.cpython-35.pyc' './usr/lib64/python3/site-packages/google/apputils/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib64/python3/site-packages/google/apputils/__pycache__/__init__.cpython-35.pyc' './usr/lib64/python3/site-packages/google/apputils/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib64/python3/site-packages/google/apputils/__pycache__/__init__.cpython-35.opt-1.pyc' Hardlinking identical .pyc and .pyo files './usr/lib64/python2.7/site-packages/google/__init__.pyo' => './usr/lib64/python2.7/site-packages/google/__init__.pyc' './usr/lib64/python2.7/site-packages/google/apputils/stopwatch.pyo' => './usr/lib64/python2.7/site-packages/google/apputils/stopwatch.pyc' './usr/lib64/python2.7/site-packages/google/apputils/shellutil.pyo' => './usr/lib64/python2.7/site-packages/google/apputils/shellutil.pyc' './usr/lib64/python2.7/site-packages/google/apputils/setup_command.pyo' => './usr/lib64/python2.7/site-packages/google/apputils/setup_command.pyc' './usr/lib64/python2.7/site-packages/google/apputils/resources.pyo' => './usr/lib64/python2.7/site-packages/google/apputils/resources.pyc' './usr/lib64/python2.7/site-packages/google/apputils/humanize.pyo' => './usr/lib64/python2.7/site-packages/google/apputils/humanize.pyc' './usr/lib64/python2.7/site-packages/google/apputils/file_util.pyo' => './usr/lib64/python2.7/site-packages/google/apputils/file_util.pyc' './usr/lib64/python2.7/site-packages/google/apputils/debug.pyo' => './usr/lib64/python2.7/site-packages/google/apputils/debug.pyc' './usr/lib64/python2.7/site-packages/google/apputils/datelib.pyo' => './usr/lib64/python2.7/site-packages/google/apputils/datelib.pyc' './usr/lib64/python2.7/site-packages/google/apputils/__init__.pyo' => './usr/lib64/python2.7/site-packages/google/apputils/__init__.pyc' Processing files: python-module-google-apputils-0.4.0-alt2.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.67451 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-google-apputils-0.4.0 + DOCDIR=/usr/src/tmp/python-module-google-apputils-buildroot/usr/share/doc/python-module-google-apputils-0.4.0 + export DOCDIR + rm -rf /usr/src/tmp/python-module-google-apputils-buildroot/usr/share/doc/python-module-google-apputils-0.4.0 + /bin/mkdir -p /usr/src/tmp/python-module-google-apputils-buildroot/usr/share/doc/python-module-google-apputils-0.4.0 + cp -prL LICENSE README /usr/src/tmp/python-module-google-apputils-buildroot/usr/share/doc/python-module-google-apputils-0.4.0 + chmod -R go-w /usr/src/tmp/python-module-google-apputils-buildroot/usr/share/doc/python-module-google-apputils-0.4.0 + chmod -R a+rX /usr/src/tmp/python-module-google-apputils-buildroot/usr/share/doc/python-module-google-apputils-0.4.0 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.8Zlk3w 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.AkMLUC 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-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/__init__.py: line=3 IGNORE (for REQ=slight and deep=8) module=pkg_resources /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/__init__.py: line=6 IGNORE (for REQ=slight and deep=8) module=pkgutil python.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/app.py: skipping errno python.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/app.py: skipping sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/app.py: line=207 IGNORE (for REQ=slight and deep=20) module=atexit /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/app.py: line=209 IGNORE (for REQ=slight and deep=24) module=cProfile /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/app.py: line=211 IGNORE (for REQ=slight and deep=24) module=profile python.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/appcommands.py: skipping sys python.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/basetest.py: skipping sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/basetest.py: line=38 IGNORE (for REQ=slight and deep=8) module=faulthandler /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/basetest.py: line=50 IGNORE (for REQ=slight and deep=8) module=unittest2 /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/basetest.py: line=52 IGNORE (for REQ=slight and deep=8) module=unittest python.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/datelib.py: skipping sys python.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/debug.py: skipping sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/debug.py: line=49 IGNORE (for REQ=slight and deep=12) module=traceback /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/debug.py: line=50 IGNORE (for REQ=slight and deep=12) module=pdb python.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/file_util.py: skipping errno python.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/file_util.py: skipping pwd python.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/run_script_module.py: skipping sys python.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/setup_command.py: skipping imp python.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/setup_command.py: skipping sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/setup_command.py: line=129 IGNORE (for REQ=slight and deep=11) module=basetest shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/__init__.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/app.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/appcommands.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/basetest.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/datelib.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/debug.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/file_util.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/humanize.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/resources.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/run_script_module.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/setup_command.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/shellutil.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/apputils/stopwatch.py is not executable Provides: python2.7(google.apputils), python2.7(google.apputils.app), python2.7(google.apputils.appcommands), python2.7(google.apputils.basetest), python2.7(google.apputils.datelib), python2.7(google.apputils.debug), python2.7(google.apputils.file_util), python2.7(google.apputils.humanize), python2.7(google.apputils.resources), python2.7(google.apputils.run_script_module), python2.7(google.apputils.setup_command), python2.7(google.apputils.shellutil), python2.7(google.apputils.stopwatch) Requires: python-module-google = 0.4.0-alt2.1, /usr/lib64/python2.7/site-packages, python-modules, python2.7(dateutil), python2.7(distutils), python2.7(gflags), python2.7(google), python2.7(json), python2.7(pkg_resources), python2.7(pytz), python2.7(setuptools) Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.4Ne1KL Processing files: python-module-google-0.4.0-alt2.1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.eRO9xX 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.QYLgkc 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-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/__init__.py: line=3 IGNORE (for REQ=slight and deep=8) module=pkg_resources /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/__init__.py: line=6 IGNORE (for REQ=slight and deep=8) module=pkgutil shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python2.7/site-packages/google/__init__.py is not executable Provides: python2.7(google) Requires: /usr/lib64/python2.7/site-packages Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.s0zy3t Processing files: python3-module-google-apputils-0.4.0-alt2.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.14813 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-google-apputils-0.4.0 + DOCDIR=/usr/src/tmp/python-module-google-apputils-buildroot/usr/share/doc/python3-module-google-apputils-0.4.0 + export DOCDIR + rm -rf /usr/src/tmp/python-module-google-apputils-buildroot/usr/share/doc/python3-module-google-apputils-0.4.0 + /bin/mkdir -p /usr/src/tmp/python-module-google-apputils-buildroot/usr/share/doc/python3-module-google-apputils-0.4.0 + cp -prL LICENSE README /usr/src/tmp/python-module-google-apputils-buildroot/usr/share/doc/python3-module-google-apputils-0.4.0 + chmod -R go-w /usr/src/tmp/python-module-google-apputils-buildroot/usr/share/doc/python3-module-google-apputils-0.4.0 + chmod -R a+rX /usr/src/tmp/python-module-google-apputils-buildroot/usr/share/doc/python3-module-google-apputils-0.4.0 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.oavW4O 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.kwsD3c 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-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/__init__.py: line=3 IGNORE (for REQ=slight and deep=8) module=pkg_resources /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/__init__.py: line=6 IGNORE (for REQ=slight and deep=8) module=pkgutil python3.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/app.py: skipping errno python3.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/app.py: skipping sys python3.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/app.py: skipping time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/app.py: line=207 IGNORE (for REQ=slight and deep=20) module=atexit /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/app.py: line=209 IGNORE (for REQ=slight and deep=24) module=cProfile /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/app.py: line=211 IGNORE (for REQ=slight and deep=24) module=profile python3.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/appcommands.py: skipping sys python3.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/basetest.py: skipping itertools python3.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/basetest.py: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/basetest.py: line=38 IGNORE (for REQ=slight and deep=8) module=faulthandler /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/basetest.py: line=50 IGNORE (for REQ=slight and deep=8) module=unittest2 /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/basetest.py: line=52 IGNORE (for REQ=slight and deep=8) module=unittest python3.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/datelib.py: skipping sys python3.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/datelib.py: skipping time python3.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/debug.py: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/debug.py: line=49 IGNORE (for REQ=slight and deep=12) module=traceback /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/debug.py: line=50 IGNORE (for REQ=slight and deep=12) module=pdb python3.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/file_util.py: skipping errno python3.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/file_util.py: skipping pwd python3.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/resources.py: skipping atexit python3.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/run_script_module.py: skipping sys python3.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/setup_command.py: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/setup_command.py: line=129 possible relative import from ., UNIMPLEMENTED python3.req: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/stopwatch.py: skipping time shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/__init__.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/app.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/appcommands.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/basetest.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/datelib.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/debug.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/file_util.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/humanize.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/resources.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/run_script_module.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/setup_command.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/shellutil.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/apputils/stopwatch.py is not executable Provides: python3(google.apputils), python3.3(google.apputils), python3(google.apputils.app), python3(google.apputils.appcommands), python3(google.apputils.basetest), python3(google.apputils.datelib), python3(google.apputils.debug), python3(google.apputils.file_util), python3(google.apputils.humanize), python3(google.apputils.resources), python3(google.apputils.run_script_module), python3(google.apputils.setup_command), python3(google.apputils.shellutil), python3(google.apputils.stopwatch), python3.3(google.apputils.app), python3.3(google.apputils.appcommands), python3.3(google.apputils.basetest), python3.3(google.apputils.datelib), python3.3(google.apputils.debug), python3.3(google.apputils.file_util), python3.3(google.apputils.humanize), python3.3(google.apputils.resources), python3.3(google.apputils.run_script_module), python3.3(google.apputils.setup_command), python3.3(google.apputils.shellutil), python3.3(google.apputils.stopwatch) Requires: python3-module-google = 0.4.0-alt2.1, /usr/lib64/python3/site-packages, python3(calendar) < 0, python3(collections) < 0, python3(contextlib) < 0, python3(copy) < 0, python3(datetime) < 0, python3(dateutil) < 0, python3(difflib) < 0, python3(distutils) < 0, python3(getpass) < 0, python3(gflags) < 0, python3(google) < 0, python3(imp) < 0, python3(io) < 0, python3(json) < 0, python3(math) < 0, python3(os) < 0, python3(pdb) < 0, python3(pkg_resources) < 0, python3(pytz) < 0, python3(re) < 0, python3(setuptools) < 0, python3(shlex) < 0, python3(shutil) < 0, python3(socket) < 0, python3(stat) < 0, python3(struct) < 0, python3(subprocess) < 0, python3(tempfile) < 0, python3(traceback) < 0, python3(types) < 0, python3(urllib) < 0, python3(warnings) < 0 Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.sCIdCG Processing files: python3-module-google-0.4.0-alt2.1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.upI57c 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.og0YAM 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-google-apputils-buildroot/usr/lib64/python3/site-packages/google/__init__.py: line=3 IGNORE (for REQ=slight and deep=8) module=pkg_resources /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/__init__.py: line=6 IGNORE (for REQ=slight and deep=8) module=pkgutil shebang.req.files: executable script /usr/src/tmp/python-module-google-apputils-buildroot/usr/lib64/python3/site-packages/google/__init__.py is not executable Provides: python3(google), python3.3(google) Requires: /usr/lib64/python3/site-packages Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.WBzT0o Removing 1 extra deps from python-module-google-apputils due to dependency on python-module-google Removing 1 extra deps from python3-module-google-apputils due to dependency on python3-module-google Removing 1 extra deps from python-module-google-apputils due to repentancy on python-module-google Removing 1 extra deps from python3-module-google-apputils due to repentancy on python3-module-google Wrote: /usr/src/RPM/RPMS/x86_64/python-module-google-apputils-0.4.0-alt2.1.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/python-module-google-0.4.0-alt2.1.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/python3-module-google-apputils-0.4.0-alt2.1.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/python3-module-google-0.4.0-alt2.1.x86_64.rpm 9.12user 1.01system 0:21.24elapsed 47%CPU (0avgtext+0avgdata 46392maxresident)k 0inputs+0outputs (0major+382138minor)pagefaults 0swaps 14.11user 3.23system 0:28.87elapsed 60%CPU (0avgtext+0avgdata 123864maxresident)k 0inputs+0outputs (0major+662741minor)pagefaults 0swaps --- python3-module-google-0.4.0-alt2.1.x86_64.rpm.repo 2016-03-14 15:15:28.000000000 +0000 +++ python3-module-google-0.4.0-alt2.1.x86_64.rpm.hasher 2019-04-21 01:13:18.053464644 +0000 @@ -1,3 +1,5 @@ /usr/lib64/python3/site-packages/google/__init__.py 100644 -/usr/lib64/python3/site-packages/google/__pycache__/__init__.cpython-33.pyc 100644 +/usr/lib64/python3/site-packages/google/__pycache__/__init__.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/google/__pycache__/__init__.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/google/__pycache__/__init__.cpython-35.pyc 100644 Requires: /usr/lib64/python3/site-packages --- python3-module-google-apputils-0.4.0-alt2.1.x86_64.rpm.repo 2016-03-14 15:15:28.000000000 +0000 +++ python3-module-google-apputils-0.4.0-alt2.1.x86_64.rpm.hasher 2019-04-21 01:13:18.084464636 +0000 @@ -5,26 +5,41 @@ /usr/lib64/python3/site-packages/google/apputils/__pycache__ 40755 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/app.cpython-33.pyc 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/app.cpython-33.pyo 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/appcommands.cpython-33.pyc 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/appcommands.cpython-33.pyo 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/basetest.cpython-33.pyc 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/basetest.cpython-33.pyo 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/datelib.cpython-33.pyc 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/datelib.cpython-33.pyo 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/debug.cpython-33.pyc 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/debug.cpython-33.pyo 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/file_util.cpython-33.pyc 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/file_util.cpython-33.pyo 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/humanize.cpython-33.pyc 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/humanize.cpython-33.pyo 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/resources.cpython-33.pyc 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/resources.cpython-33.pyo 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/run_script_module.cpython-33.pyc 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/run_script_module.cpython-33.pyo 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/setup_command.cpython-33.pyc 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/setup_command.cpython-33.pyo 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/shellutil.cpython-33.pyc 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/shellutil.cpython-33.pyo 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/stopwatch.cpython-33.pyc 100644 -/usr/lib64/python3/site-packages/google/apputils/__pycache__/stopwatch.cpython-33.pyo 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/__init__.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/__init__.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/__init__.cpython-35.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/app.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/app.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/app.cpython-35.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/appcommands.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/appcommands.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/appcommands.cpython-35.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/basetest.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/basetest.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/basetest.cpython-35.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/datelib.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/datelib.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/datelib.cpython-35.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/debug.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/debug.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/debug.cpython-35.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/file_util.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/file_util.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/file_util.cpython-35.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/humanize.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/humanize.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/humanize.cpython-35.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/resources.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/resources.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/resources.cpython-35.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/run_script_module.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/run_script_module.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/run_script_module.cpython-35.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/setup_command.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/setup_command.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/setup_command.cpython-35.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/shellutil.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/shellutil.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/shellutil.cpython-35.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/stopwatch.cpython-35.opt-1.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/stopwatch.cpython-35.opt-2.pyc 100644 +/usr/lib64/python3/site-packages/google/apputils/__pycache__/stopwatch.cpython-35.pyc 100644 /usr/lib64/python3/site-packages/google/apputils/app.py 100644 @@ -41,11 +56,11 @@ /usr/lib64/python3/site-packages/google/apputils/stopwatch.py 100644 -/usr/lib64/python3/site-packages/google_apputils-0.4.0-py3.3-nspkg.pth 100644 -/usr/lib64/python3/site-packages/google_apputils-0.4.0-py3.3.egg-info 40755 -/usr/lib64/python3/site-packages/google_apputils-0.4.0-py3.3.egg-info/PKG-INFO 100644 -/usr/lib64/python3/site-packages/google_apputils-0.4.0-py3.3.egg-info/SOURCES.txt 100644 -/usr/lib64/python3/site-packages/google_apputils-0.4.0-py3.3.egg-info/dependency_links.txt 100644 -/usr/lib64/python3/site-packages/google_apputils-0.4.0-py3.3.egg-info/entry_points.txt 100644 -/usr/lib64/python3/site-packages/google_apputils-0.4.0-py3.3.egg-info/namespace_packages.txt 100644 -/usr/lib64/python3/site-packages/google_apputils-0.4.0-py3.3.egg-info/requires.txt 100644 -/usr/lib64/python3/site-packages/google_apputils-0.4.0-py3.3.egg-info/top_level.txt 100644 +/usr/lib64/python3/site-packages/google_apputils-0.4.0-py3.5-nspkg.pth 100644 +/usr/lib64/python3/site-packages/google_apputils-0.4.0-py3.5.egg-info 40755 +/usr/lib64/python3/site-packages/google_apputils-0.4.0-py3.5.egg-info/PKG-INFO 100644 +/usr/lib64/python3/site-packages/google_apputils-0.4.0-py3.5.egg-info/SOURCES.txt 100644 +/usr/lib64/python3/site-packages/google_apputils-0.4.0-py3.5.egg-info/dependency_links.txt 100644 +/usr/lib64/python3/site-packages/google_apputils-0.4.0-py3.5.egg-info/entry_points.txt 100644 +/usr/lib64/python3/site-packages/google_apputils-0.4.0-py3.5.egg-info/namespace_packages.txt 100644 +/usr/lib64/python3/site-packages/google_apputils-0.4.0-py3.5.egg-info/requires.txt 100644 +/usr/lib64/python3/site-packages/google_apputils-0.4.0-py3.5.egg-info/top_level.txt 100644 /usr/share/doc/python3-module-google-apputils-0.4.0 40755 @@ -54,2 +69,33 @@ Requires: python3-module-google = 0.4.0-alt2.1 +Requires: python3(calendar) < 0 +Requires: python3(collections) < 0 +Requires: python3(contextlib) < 0 +Requires: python3(copy) < 0 +Requires: python3(datetime) < 0 +Requires: python3(dateutil) < 0 +Requires: python3(difflib) < 0 +Requires: python3(distutils) < 0 +Requires: python3(getpass) < 0 +Requires: python3(gflags) < 0 +Requires: python3(imp) < 0 +Requires: python3(io) < 0 +Requires: python3(json) < 0 +Requires: python3(math) < 0 +Requires: python3(os) < 0 +Requires: python3(pdb) < 0 +Requires: python3(pkg_resources) < 0 +Requires: python3(pytz) < 0 +Requires: python3(re) < 0 +Requires: python3(setuptools) < 0 +Requires: python3(shlex) < 0 +Requires: python3(shutil) < 0 +Requires: python3(socket) < 0 +Requires: python3(stat) < 0 +Requires: python3(struct) < 0 +Requires: python3(subprocess) < 0 +Requires: python3(tempfile) < 0 +Requires: python3(traceback) < 0 +Requires: python3(types) < 0 +Requires: python3(urllib) < 0 +Requires: python3(warnings) < 0 Requires: rpmlib(PayloadIsLzma) @@ -57,2 +103,26 @@ Provides: python3.3(google.apputils) +Provides: python3(google.apputils.app) +Provides: python3(google.apputils.appcommands) +Provides: python3(google.apputils.basetest) +Provides: python3(google.apputils.datelib) +Provides: python3(google.apputils.debug) +Provides: python3(google.apputils.file_util) +Provides: python3(google.apputils.humanize) +Provides: python3(google.apputils.resources) +Provides: python3(google.apputils.run_script_module) +Provides: python3(google.apputils.setup_command) +Provides: python3(google.apputils.shellutil) +Provides: python3(google.apputils.stopwatch) +Provides: python3.3(google.apputils.app) +Provides: python3.3(google.apputils.appcommands) +Provides: python3.3(google.apputils.basetest) +Provides: python3.3(google.apputils.datelib) +Provides: python3.3(google.apputils.debug) +Provides: python3.3(google.apputils.file_util) +Provides: python3.3(google.apputils.humanize) +Provides: python3.3(google.apputils.resources) +Provides: python3.3(google.apputils.run_script_module) +Provides: python3.3(google.apputils.setup_command) +Provides: python3.3(google.apputils.shellutil) +Provides: python3.3(google.apputils.stopwatch) Provides: python3-module-google-apputils = 0.4.0-alt2.1