<86>Dec 27 09:32:24 userdel[3080005]: delete user 'rooter' <86>Dec 27 09:32:24 userdel[3080005]: removed group 'rooter' owned by 'rooter' <86>Dec 27 09:32:24 userdel[3080005]: removed shadow group 'rooter' owned by 'rooter' <86>Dec 27 09:32:24 groupadd[3080021]: group added to /etc/group: name=rooter, GID=651 <86>Dec 27 09:32:24 groupadd[3080021]: group added to /etc/gshadow: name=rooter <86>Dec 27 09:32:24 groupadd[3080021]: new group: name=rooter, GID=651 <86>Dec 27 09:32:24 useradd[3080028]: new user: name=rooter, UID=651, GID=651, home=/root, shell=/bin/bash <86>Dec 27 09:32:24 userdel[3080046]: delete user 'builder' <86>Dec 27 09:32:24 userdel[3080046]: removed group 'builder' owned by 'builder' <86>Dec 27 09:32:24 userdel[3080046]: removed shadow group 'builder' owned by 'builder' <86>Dec 27 09:32:24 groupadd[3080061]: group added to /etc/group: name=builder, GID=652 <86>Dec 27 09:32:24 groupadd[3080061]: group added to /etc/gshadow: name=builder <86>Dec 27 09:32:24 groupadd[3080061]: new group: name=builder, GID=652 <86>Dec 27 09:32:24 useradd[3080071]: new user: name=builder, UID=652, GID=652, home=/usr/src, shell=/bin/bash <13>Dec 27 09:32:27 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Dec 27 09:32:27 rpmi: libexpat-2.2.10-alt1 p9+261554.100.1.1 1605103337 installed <13>Dec 27 09:32:27 rpmi: libp11-kit-0.23.15-alt2 p9+254920.2400.19.1 1601385903 installed <13>Dec 27 09:32:27 rpmi: libtasn1-4.14-alt1 p9+235792.100.2.1 1565425233 installed <13>Dec 27 09:32:27 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Dec 27 09:32:27 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Dec 27 09:32:27 rpmi: ca-certificates-2020.06.29-alt1 p9+258899.100.3.1 1601998604 installed <13>Dec 27 09:32:27 rpmi: ca-trust-0.1.2-alt1 p9+233349.100.1.1 1561655062 installed <13>Dec 27 09:32:27 rpmi: p11-kit-trust-0.23.15-alt2 p9+254920.2400.19.1 1601385903 installed <13>Dec 27 09:32:27 rpmi: libcrypto1.1-1.1.1i-alt1 p9+263105.100.1.1 1607446292 installed <13>Dec 27 09:32:27 rpmi: libssl1.1-1.1.1i-alt1 p9+263105.100.1.1 1607446292 installed <13>Dec 27 09:32:27 rpmi: python3-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Dec 27 09:32:27 rpmi: libpython3-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Dec 27 09:32:28 rpmi: python3-base-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Dec 27 09:32:28 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Dec 27 09:32:28 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Dec 27 09:32:33 rpmi: python3-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Dec 27 09:32:33 rpmi: python-modules-curses-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 27 09:32:33 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Dec 27 09:32:33 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Dec 27 09:32:33 rpmi: python3-dev-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Dec 27 09:32:33 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Dec 27 09:32:33 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512089 installed <13>Dec 27 09:32:33 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <86>Dec 27 09:32:33 groupadd[3085919]: group added to /etc/group: name=_keytab, GID=499 <86>Dec 27 09:32:33 groupadd[3085919]: group added to /etc/gshadow: name=_keytab <86>Dec 27 09:32:33 groupadd[3085919]: new group: name=_keytab, GID=499 <13>Dec 27 09:32:33 rpmi: libkrb5-1.17.2-alt1 p9+262110.100.3.1 1606242416 installed <13>Dec 27 09:32:33 rpmi: libtirpc-1.0.3-alt1 1532008017 installed <13>Dec 27 09:32:33 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Dec 27 09:32:33 rpmi: python-modules-compiler-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 27 09:32:33 rpmi: python-modules-email-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 27 09:32:33 rpmi: python-modules-unittest-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 27 09:32:33 rpmi: python-modules-encodings-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 27 09:32:34 rpmi: python-modules-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 27 09:32:34 rpmi: python-modules-nis-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 27 09:32:34 rpmi: python-modules-ctypes-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 27 09:32:34 rpmi: python-modules-multiprocessing-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 27 09:32:34 rpmi: python-modules-logging-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 27 09:32:34 rpmi: python-tools-2to3-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 27 09:32:34 rpmi: python-modules-xml-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 27 09:32:34 rpmi: python-modules-hotshot-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 27 09:32:34 rpmi: python-modules-bsddb-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 27 09:32:34 rpmi: python-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 27 09:32:34 rpmi: python-modules-distutils-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 27 09:32:34 rpmi: python-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Dec 27 09:32:34 rpmi: libnsl2-devel-1.1.0-alt1_1 1511548749 installed <13>Dec 27 09:32:34 rpmi: python-dev-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 27 09:32:34 rpmi: python-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Dec 27 09:32:34 rpmi: python3-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python-module-facegraph-0.0.36-alt1.git20140108.2.nosrc.rpm Installing python-module-facegraph-0.0.36-alt1.git20140108.2.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.76929 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-facegraph-0.0.36 + echo 'Source #0 (python-module-facegraph-0.0.36.tar):' Source #0 (python-module-facegraph-0.0.36.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-facegraph-0.0.36.tar + cd python-module-facegraph-0.0.36 + /bin/chmod -c -Rf u+rwX,go-w . + cp -fR . ../python3 + find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ../python3/tests/test_url_operations.py --- ../python3/tests/test_url_operations.py (original) +++ ../python3/tests/test_url_operations.py (refactored) @@ -6,115 +6,115 @@ class UrlOperationsTests(TestCase): def test_get_path(self): - self.assertEquals('', ops.get_path(u'http://a.com')) - self.assertEquals('/', ops.get_path(u'http://a.com/')) - self.assertEquals('/a', ops.get_path(u'http://a.com/a')) - self.assertEquals('/a/', ops.get_path(u'http://a.com/a/')) - self.assertEquals('/a/b', ops.get_path(u'http://a.com/a/b')) + self.assertEqual('', ops.get_path('http://a.com')) + self.assertEqual('/', ops.get_path('http://a.com/')) + self.assertEqual('/a', ops.get_path('http://a.com/a')) + self.assertEqual('/a/', ops.get_path('http://a.com/a/')) + self.assertEqual('/a/b', ops.get_path('http://a.com/a/b')) def test_get_host(self): - self.assertEquals('a.com', ops.get_host('http://a.com')) - self.assertEquals('a.com', ops.get_host('http://a.com/a/b')) - self.assertEquals('a.com', ops.get_host('http://a.com/a?a=b')) + self.assertEqual('a.com', ops.get_host('http://a.com')) + self.assertEqual('a.com', ops.get_host('http://a.com/a/b')) + self.assertEqual('a.com', ops.get_host('http://a.com/a?a=b')) def test_add_path(self): - url = u'http://a.com' - self.assertEquals('http://a.com/', ops.add_path(url, '')) - self.assertEquals('http://a.com/path', ops.add_path(url, 'path')) - self.assertEquals('http://a.com/path', ops.add_path(url, '/path')) - self.assertEquals('http://a.com/path/', ops.add_path(url, 'path/')) - self.assertEquals('http://a.com/path/', ops.add_path(url, '/path/')) + url = 'http://a.com' + self.assertEqual('http://a.com/', ops.add_path(url, '')) + self.assertEqual('http://a.com/path', ops.add_path(url, 'path')) + self.assertEqual('http://a.com/path', ops.add_path(url, '/path')) + self.assertEqual('http://a.com/path/', ops.add_path(url, 'path/')) + self.assertEqual('http://a.com/path/', ops.add_path(url, '/path/')) def test_add_path_trailing_slash(self): - url = u'http://a.com/' - self.assertEquals('http://a.com/path', ops.add_path(url, 'path')) - self.assertEquals('http://a.com/path', ops.add_path(url, '/path')) - self.assertEquals('http://a.com/path/', ops.add_path(url, 'path/')) - self.assertEquals('http://a.com/path/', ops.add_path(url, '/path/')) + url = 'http://a.com/' + self.assertEqual('http://a.com/path', ops.add_path(url, 'path')) + self.assertEqual('http://a.com/path', ops.add_path(url, '/path')) + self.assertEqual('http://a.com/path/', ops.add_path(url, 'path/')) + self.assertEqual('http://a.com/path/', ops.add_path(url, '/path/')) def test_add_path_existing_path(self): - url = u'http://a.com/path1' - self.assertEquals('http://a.com/path1/path2', ops.add_path(url, 'path2')) - self.assertEquals('http://a.com/path1/path2', ops.add_path(url, '/path2')) - self.assertEquals('http://a.com/path1/path2/', ops.add_path(url, 'path2/')) - self.assertEquals('http://a.com/path1/path2/', ops.add_path(url, '/path2/')) + url = 'http://a.com/path1' + self.assertEqual('http://a.com/path1/path2', ops.add_path(url, 'path2')) + self.assertEqual('http://a.com/path1/path2', ops.add_path(url, '/path2')) + self.assertEqual('http://a.com/path1/path2/', ops.add_path(url, 'path2/')) + self.assertEqual('http://a.com/path1/path2/', ops.add_path(url, '/path2/')) def test_add_path_trailing_slash_and_existing_path(self): - url = u'http://a.com/path1/' - self.assertEquals('http://a.com/path1/path2', ops.add_path(url, 'path2')) - self.assertEquals('http://a.com/path1/path2', ops.add_path(url, '/path2')) - self.assertEquals('http://a.com/path1/path2/', ops.add_path(url, 'path2/')) - self.assertEquals('http://a.com/path1/path2/', ops.add_path(url, '/path2/')) + url = 'http://a.com/path1/' + self.assertEqual('http://a.com/path1/path2', ops.add_path(url, 'path2')) + self.assertEqual('http://a.com/path1/path2', ops.add_path(url, '/path2')) + self.assertEqual('http://a.com/path1/path2/', ops.add_path(url, 'path2/')) + self.assertEqual('http://a.com/path1/path2/', ops.add_path(url, '/path2/')) def test_add_path_fragment(self): - url = u'http://a.com/path1/#anchor' - self.assertEquals('http://a.com/path1/path2#anchor', ops.add_path(url, 'path2')) - self.assertEquals('http://a.com/path1/path2/#anchor', ops.add_path(url, 'path2/')) + url = 'http://a.com/path1/#anchor' + self.assertEqual('http://a.com/path1/path2#anchor', ops.add_path(url, 'path2')) + self.assertEqual('http://a.com/path1/path2/#anchor', ops.add_path(url, 'path2/')) def test_add_path_query_string(self): - url = u'http://a.com/path1/?a=b' - self.assertEquals('http://a.com/path1/path2?a=b', ops.add_path(url, 'path2')) - self.assertEquals('http://a.com/path1/path2/?a=b', ops.add_path(url, 'path2/')) + url = 'http://a.com/path1/?a=b' + self.assertEqual('http://a.com/path1/path2?a=b', ops.add_path(url, 'path2')) + self.assertEqual('http://a.com/path1/path2/?a=b', ops.add_path(url, 'path2/')) def test_query_param(self): - self.assertEquals(('a', 'b'), ops._query_param('a', 'b')) + self.assertEqual(('a', 'b'), ops._query_param('a', 'b')) def test_query_param_unicode(self): # unicode objects should be encoded as utf-8 bytes - self.assertEquals(('a', 'b'), ops._query_param('a', u'b')) - self.assertEquals(('a', '\xc3\xa9'), ops._query_param('a', u'\xe9')) + self.assertEqual(('a', 'b'), ops._query_param('a', 'b')) + self.assertEqual(('a', '\xc3\xa9'), ops._query_param('a', '\xe9')) # bytes should be remain as bytes - self.assertEquals(('a', '\xc3\xa9'), ops._query_param('a', '\xc3\xa9')) + self.assertEqual(('a', '\xc3\xa9'), ops._query_param('a', '\xc3\xa9')) def test_add_query_params(self): - url = u'http://a.com' - self.assertEquals('http://a.com?a=b', ops.add_query_params(url, ('a', 'b'))) - self.assertEquals('http://a.com?a=b', ops.add_query_params(url, {'a': 'b'})) - self.assertEquals('http://a.com?a=%C3%A9', ops.add_query_params(url, {'a': '\xc3\xa9'})) + url = 'http://a.com' + self.assertEqual('http://a.com?a=b', ops.add_query_params(url, ('a', 'b'))) + self.assertEqual('http://a.com?a=b', ops.add_query_params(url, {'a': 'b'})) + self.assertEqual('http://a.com?a=%C3%A9', ops.add_query_params(url, {'a': '\xc3\xa9'})) - url = u'http://a.com/path' - self.assertEquals('http://a.com/path?a=b', ops.add_query_params(url, {'a': 'b'})) + url = 'http://a.com/path' + self.assertEqual('http://a.com/path?a=b', ops.add_query_params(url, {'a': 'b'})) - url = u'http://a.com?a=b' - self.assertEquals('http://a.com?a=b&a=c', ops.add_query_params(url, ('a', 'c'))) - self.assertEquals('http://a.com?a=b&c=d', ops.add_query_params(url, ('c', 'd'))) + url = 'http://a.com?a=b' + self.assertEqual('http://a.com?a=b&a=c', ops.add_query_params(url, ('a', 'c'))) + self.assertEqual('http://a.com?a=b&c=d', ops.add_query_params(url, ('c', 'd'))) def test_update_query_params(self): - url = u'http://a.com?a=b' - self.assertEquals('http://a.com?a=b', ops.update_query_params(url, {})) - self.assertEquals('http://a.com?a=c', ops.update_query_params(url, ('a', 'c'))) - self.assertEquals('http://a.com?a=b&c=d', ops.update_query_params(url, {'c': 'd'})) - self.assertEquals('http://a.com?a=%C4%A9', ops.update_query_params(url, {'a': '\xc4\xa9'})) + url = 'http://a.com?a=b' + self.assertEqual('http://a.com?a=b', ops.update_query_params(url, {})) + self.assertEqual('http://a.com?a=c', ops.update_query_params(url, ('a', 'c'))) + self.assertEqual('http://a.com?a=b&c=d', ops.update_query_params(url, {'c': 'd'})) + self.assertEqual('http://a.com?a=%C4%A9', ops.update_query_params(url, {'a': '\xc4\xa9'})) - url = u'http://a.com/path?a=b' - self.assertEquals('http://a.com/path?a=c', ops.update_query_params(url, {'a': 'c'})) + url = 'http://a.com/path?a=b' + self.assertEqual('http://a.com/path?a=c', ops.update_query_params(url, {'a': 'c'})) def test_escaping(self): - url = u'http://a.com' - self.assertEquals('http://a.com?my+key=c', ops.add_query_params(url, ('my key', 'c'))) - self.assertEquals('http://a.com?c=my+val', ops.add_query_params(url, ('c', 'my val'))) + url = 'http://a.com' + self.assertEqual('http://a.com?my+key=c', ops.add_query_params(url, ('my key', 'c'))) + self.assertEqual('http://a.com?c=my+val', ops.add_query_params(url, ('c', 'my val'))) def test_no_double_escaping_existing_params(self): url = 'http://a.com?a=%C4%A9' - self.assertEquals('http://a.com?a=%C4%A9&c=d', ops.update_query_params(url, {'c': 'd'})) + self.assertEqual('http://a.com?a=%C4%A9&c=d', ops.update_query_params(url, {'c': 'd'})) url = 'http://a.com?a=my+val' - self.assertEquals('http://a.com?a=my+val&c=d', ops.update_query_params(url, {'c': 'd'})) + self.assertEqual('http://a.com?a=my+val&c=d', ops.update_query_params(url, {'c': 'd'})) class GraphUrlTests(TestCase): def setUp(self): self.graph = graph.Graph() def test_initial_state(self): - self.assertEquals(graph.Graph.API_ROOT, self.graph.url) + self.assertEqual(graph.Graph.API_ROOT, self.graph.url) def test_getitem(self): expected = 'https://graph.facebook.com/path' - self.assertEquals(expected, self.graph.path.url) + self.assertEqual(expected, self.graph.path.url) expected = 'https://graph.facebook.com/path/path2' - self.assertEquals(expected, self.graph.path.path2.url) + self.assertEqual(expected, self.graph.path.path2.url) def test_getitem_slice(self): url = self.graph[0:20].url @@ -124,38 +124,38 @@ def test_getattr(self): expected = 'https://graph.facebook.com/path' - self.assertEquals(expected, self.graph['path'].url) + self.assertEqual(expected, self.graph['path'].url) expected = 'https://graph.facebook.com/path/path2' - self.assertEquals(expected, self.graph['path']['path2'].url) + self.assertEqual(expected, self.graph['path']['path2'].url) def test_update_params(self): expected = 'https://graph.facebook.com/?a=b' self.graph = self.graph & {'a': 'b'} - self.assertEquals(expected, self.graph.url) + self.assertEqual(expected, self.graph.url) expected += '&c=d' - self.assertEquals(expected, (self.graph & {'c': 'd'}).url) + self.assertEqual(expected, (self.graph & {'c': 'd'}).url) def test_set_params(self): expected = 'https://graph.facebook.com/?a=b' self.graph = self.graph | {'a': 'b'} - self.assertEquals(expected, self.graph.url) + self.assertEqual(expected, self.graph.url) expected = 'https://graph.facebook.com/?a=c' - self.assertEquals(expected, (self.graph | {'a': 'c'}).url) + self.assertEqual(expected, (self.graph | {'a': 'c'}).url) expected = 'https://graph.facebook.com/?a=b&c=d' - self.assertEquals(expected, (self.graph | {'c': 'd'}).url) + self.assertEqual(expected, (self.graph | {'c': 'd'}).url) def test_fields(self): expected = 'https://graph.facebook.com/?fields=a%2Cb' self.graph = self.graph.fields('a', 'b') - self.assertEquals(expected, self.graph.url) + self.assertEqual(expected, self.graph.url) def test_ids(self): expected = 'https://graph.facebook.com/?ids=a%2Cb' self.graph = self.graph.ids('a', 'b') - self.assertEquals(expected, self.graph.url) + self.assertEqual(expected, self.graph.url) claRefactoringTool: Refactored ../python3/src/facegraph/url_operations.py RefactoringTool: Refactored ../python3/src/facegraph/graph.py ss FQLTests(TestCase): --- ../python3/src/facegraph/url_operations.py (original) +++ ../python3/src/facegraph/url_operations.py (refactored) @@ -1,41 +1,41 @@ -import urllib -import urlparse +import urllib.request, urllib.parse, urllib.error +import urllib.parse def get_path(url): - scheme, host, path, query, fragment = urlparse.urlsplit(url) + scheme, host, path, query, fragment = urllib.parse.urlsplit(url) return path def get_host(url): - scheme, host, path, query, fragment = urlparse.urlsplit(url) + scheme, host, path, query, fragment = urllib.parse.urlsplit(url) return host def add_path(url, new_path): """Given a url and path, return a new url that combines the two. """ - scheme, host, path, query, fragment = urlparse.urlsplit(url) + scheme, host, path, query, fragment = urllib.parse.urlsplit(url) new_path = new_path.lstrip('/') if path.endswith('/'): path += new_path else: path += '/' + new_path - return urlparse.urlunsplit([scheme, host, path, query, fragment]) + return urllib.parse.urlunsplit([scheme, host, path, query, fragment]) def _query_param(key, value): """ensure that a query parameter's value is a string of bytes in UTF-8 encoding. """ - if isinstance(value, unicode): + if isinstance(value, str): pass elif isinstance(value, str): value = value.decode('utf-8') else: - value = unicode(value) + value = str(value) return key, value.encode('utf-8') def _make_query_tuples(params): if hasattr(params, 'items'): - return [_query_param(*param) for param in params.items()] + return [_query_param(*param) for param in list(params.items())] else: return [_query_param(*params)] @@ -53,17 +53,17 @@ If update is True, change any existing values to new values given in params. """ - scheme, host, path, query, fragment = urlparse.urlsplit(url) + scheme, host, path, query, fragment = urllib.parse.urlsplit(url) # urlparse.parse_qsl gives back url-decoded byte strings. Leave these as # they are: they will be re-urlencoded below - query_bits = [(k, v) for k, v in urlparse.parse_qsl(query)] + query_bits = [(k, v) for k, v in urllib.parse.parse_qsl(query)] if update: query_bits = dict(query_bits) query_bits.update(_make_query_tuples(params)) else: query_bits.extend(_make_query_tuples(params)) - query = urllib.urlencode(query_bits) - return urlparse.urlunsplit([scheme, host, path, query, fragment]) + query = urllib.parse.urlencode(query_bits) + return urllib.parse.urlunsplit([scheme, host, path, query, fragment]) --- ../python3/src/facegraph/graph.py (original) +++ ../python3/src/facegraph/graph.py (refactored) @@ -1,12 +1,12 @@ # -*- coding: utf-8 -*- import logging import re -import urllib +import urllib.request, urllib.parse, urllib.error try: import urllib2 as default_urllib2 except ImportError: import urllib.request as default_urllib2 -import httplib as default_httplib +import http.client as default_httplib import traceback from facegraph.url_operations import (add_path, get_host, @@ -140,12 +140,12 @@ self.__dict__.update(state) if urllib2 is None: try: - import urllib2 + import urllib.request, urllib.error, urllib.parse except ImportError: import urllib.request as urllib2 self.urllib2 = urllib2 if httplib is None: - import httplib + import http.client self.httplib = httplib def __repr__(self): @@ -166,7 +166,7 @@ log.debug('Deprecated magic slice!') log.debug( traceback.format_stack()) return self._range(item.start, item.stop) - return self.copy(url=add_path(self.url, unicode(item))) + return self.copy(url=add_path(self.url, str(item))) def __getattr__(self, attr): return self[attr] @@ -261,14 +261,14 @@ RefactoringTool: Refactored ../python3/src/facegraph/fql.py RefactoringTool: Refactored ../python3/src/facegraph/api.py retries=self.retries, **params) else: - params = dict([(k, v.encode('UTF-8')) for (k,v) in params.iteritems() if v is not None]) + params = dict([(k, v.encode('UTF-8')) for (k,v) in params.items() if v is not None]) fetch = partial(self.fetch, self.url, urllib2=self.urllib2, httplib=self.httplib, timeout=self.timeout, retries=self.retries, - data=urllib.urlencode(params)) + data=urllib.parse.urlencode(params)) data = json.loads(fetch()) return self.process_response(data, params, "post") @@ -290,10 +290,10 @@ boundary = "graphBoundary" # UTF8 params - utf8_kwargs = dict([(k, v.encode('UTF-8')) for (k,v) in kwargs.iteritems() if k != 'file' and v is not None]) + utf8_kwargs = dict([(k, v.encode('UTF-8')) for (k,v) in kwargs.items() if k != 'file' and v is not None]) # Add args - for (k,v) in utf8_kwargs.iteritems(): + for (k,v) in utf8_kwargs.items(): body.append("--"+boundary) body.append('Content-Disposition: form-data; name="%s"' % k) body.append('') @@ -320,7 +320,7 @@ kwargs = {} if timeout: kwargs = {'timeout': timeout} - r = httplib.HTTPSConnection(get_host(url), **kwargs) + r = http.client.HTTPSConnection(get_host(url), **kwargs) headers = {'Content-Type': 'multipart/form-data; boundary=%s' % boundary, 'Content-Length': str(len(body)), 'MIME-Version': '1.0'} @@ -330,7 +330,7 @@ while True: try: return r.getresponse().read() - except (httplib.BadStatusLine, IOError): + except (http.client.BadStatusLine, IOError): if attempt < retries: attempt += 1 else: @@ -359,11 +359,11 @@ kwargs = {} if timeout: kwargs = {'timeout': timeout} - conn = urllib2.urlopen(url, data=data, **kwargs) + conn = urllib.request.urlopen(url, data=data, **kwargs) return conn.read() - except urllib2.HTTPError, e: + except urllib.error.HTTPError as e: return e.fp.read() - except (httplib.BadStatusLine, IOError): + except (http.client.BadStatusLine, IOError): if attempt < retries: attempt += 1 else: --- ../python3/src/facegraph/fql.py (original) +++ ../python3/src/facegraph/fql.py (refactored) @@ -1,14 +1,14 @@ # -*- coding: utf-8 -*- try: - import urllib2 + import urllib.request, urllib.error, urllib.parse except ImportError: import urllib.request as urllib2 import bunch import ujson as json -from graph import GraphException -from url_operations import add_path, update_query_params +from .graph import GraphException +from .url_operations import add_path, update_query_params class FQL(object): @@ -123,7 +123,7 @@ @staticmethod def fetch(url, data=None): - conn = urllib2.urlopen(url, data=data) + conn = urllib.request.urlopen(url, data=data) try: return conn.read() finally: --- ../python3/src/facegraph/api.py (original) +++ ../python3/src/facegraph/api.py (refactored) @@ -1,6 +1,6 @@ import socket import ujson as json -from urllib import urlencode, unquote +from urllib.parse import urlencode, unquote FB_READ_TIMEOUT = 180 @@ -19,12 +19,12 @@ if urllib2 is None: try: - import urllib2 + import urllib.request, urllib.error, urllib.parse except ImportError: import urllib.request as urllib2 self.urllib2 = urllRefactoringTool: No changes to ../python3/src/facegraph/__init__.py RefactoringTool: Refactored ../python3/setup.py RefactoringTool: Refactored ../python3/distribute_setup.py RefactoringTool: Files that were modified: RefactoringTool: ../python3/tests/test_url_operations.py RefactoringTool: ../python3/src/facegraph/url_operations.py RefactoringTool: ../python3/src/facegraph/graph.py RefactoringTool: ../python3/src/facegraph/fql.py RefactoringTool: ../python3/src/facegraph/api.py RefactoringTool: ../python3/src/facegraph/__init__.py RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/distribute_setup.py RefactoringTool: Warnings/messages while refactoring: RefactoringTool: ### In file ../python3/src/facegraph/graph.py ### RefactoringTool: Line 6: could not convert: import urllib2 as default_urllib2 RefactoringTool: This module is now multiple modules RefactoringTool: Line 6: could not convert: import urllib2 as default_urllib2 RefactoringTool: This module is now multiple modules RefactoringTool: Line 6: could not convert: import urllib2 as default_urllib2 RefactoringTool: This module is now multiple modules RefactoringTool: Line 6: could not convert: import urllib2 as default_urllib2 RefactoringTool: This module is now multiple modules RefactoringTool: Line 6: could not convert: import urllib2 as default_urllib2 RefactoringTool: This module is now multiple modules RefactoringTool: Line 6: could not convert: import urllib2 as default_urllib2 RefactoringTool: This module is now multiple modules RefactoringTool: Line 6: could not convert: import urllib2 as default_urllib2 RefactoringTool: This module is now multiple modules RefactoringTool: Line 6: could not convert: import urllib2 as default_urllib2 RefactoringTool: This module is now multiple modules RefactoringTool: Line 6: could not convert: import urllib2 as default_urllib2 RefactoringTool: This module is now multiple modules ib2 if httplib is None: - import httplib + import http.client self.httplib = httplib self.timeout = timeout @@ -36,13 +36,13 @@ self.check_cookie(request, app_id) def __sentry__(self): - return u'FB(method: %s, access_token: %s)' % (self.__method(), self.access_token) + return 'FB(method: %s, access_token: %s)' % (self.__method(), self.access_token) def __repr__(self): return '' % (self.__method(), id(self)) def __method(self): - return u".".join(self.stack) + return ".".join(self.stack) def __getitem__(self, name): """ @@ -76,7 +76,7 @@ # UTF8 utf8_kwargs = {} - for (k,v) in kwargs.iteritems(): + for (k,v) in kwargs.items(): try: v = v.encode('UTF-8') except AttributeError: pass @@ -92,7 +92,7 @@ try: response = self.urllib2.urlopen(url, timeout=self.timeout).read() break - except self.urllib2.HTTPError, e: + except self.urllib2.HTTPError as e: response = e.fp.read() break except (self.httplib.BadStatusLine, IOError): @@ -133,7 +133,7 @@ # UTF8 utf8_kwargs = {} - for (k,v) in kwargs.iteritems(): + for (k,v) in kwargs.items(): try: v = v.encode('UTF-8') except AttributeError: pass @@ -141,7 +141,7 @@ # Add args utf8_kwargs.update({'access_token': self.access_token}) - for (k,v) in utf8_kwargs.iteritems(): + for (k,v) in utf8_kwargs.items(): if k=='photo': continue body.append("--"+boundary) body.append('Content-Disposition: form-data; name="%s"' % k) @@ -213,7 +213,7 @@ def __fetch(self, url): try: response = self.urllib2.urlopen(url, timeout=self.timeout) - except self.urllib2.HTTPError, e: + except self.urllib2.HTTPError as e: response = e.fp return json.load(response) --- ../python3/setup.py (original) +++ ../python3/setup.py (refactored) @@ -9,7 +9,7 @@ from setuptools import setup, find_packages rel_file = lambda *args: os.path.join(os.path.dirname(os.path.abspath(__file__)), *args) -cleanup = lambda lines: filter(None, map(lambda s: s.strip(), lines)) +cleanup = lambda lines: [_f for _f in [s.strip() for s in lines] if _f] def read_from(filename): fp = open(filename) --- ../python3/distribute_setup.py (original) +++ ../python3/distribute_setup.py (refactored) @@ -182,7 +182,7 @@ try: from urllib.request import urlopen except ImportError: - from urllib2 import urlopen + from urllib.request import urlopen tgz_name = "distribute-%s.tar.gz" % version url = download_base + tgz_name saveto = os.path.join(to_dir, tgz_name) + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.18799 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-facegraph-0.0.36 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/facegraph copying src/facegraph/url_operations.py -> build/lib/facegraph copying src/facegraph/graph.py -> build/lib/facegraph copying src/facegraph/fql.py -> build/lib/facegraph copying src/facegraph/api.py -> build/lib/facegraph copying src/facegraph/__init__.py -> build/lib/facegraph + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-facegraph-0.0.36 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/facegraph copying src/facegraph/url_operations.py -> build/lib/facegraph copying src/facegraph/graph.py -> build/lib/facegraph copying src/facegraph/fql.py -> build/lib/facegraph copying src/facegraph/api.py -> build/lib/facegraph copying src/facegraph/__init__.py -> build/lib/facegraph + popd ~/RPM/BUILD/python-module-facegraph-0.0.36 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.81182 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-facegraph-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-facegraph-buildroot + cd python-module-facegraph-0.0.36 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-facegraph-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-facegraph-buildroot creating /usr/src/tmp/python-module-facegraph-buildroot/usr creating /usr/src/tmp/python-module-facegraph-buildroot/usr/lib creating /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages creating /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph copying build/lib/facegraph/__init__.py -> /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph copying build/lib/facegraph/api.py -> /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph copying build/lib/facegraph/fql.py -> /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph copying build/lib/facegraph/graph.py -> /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph copying build/lib/facegraph/url_operations.py -> /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph byte-compiling /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/api.py to api.pyc byte-compiling /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/fql.py to fql.pyc byte-compiling /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/graph.py to graph.pyc byte-compiling /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/url_operations.py to url_operations.pyc running install_egg_info running egg_info creating src/pyfacegraph.egg-info writing requirements to src/pyfacegraph.egg-info/requires.txt writing src/pyfacegraph.egg-info/PKG-INFO writing top-level names to src/pyfacegraph.egg-info/top_level.txt writing dependency_links to src/pyfacegraph.egg-info/dependency_links.txt writing manifest file 'src/pyfacegraph.egg-info/SOURCES.txt' reading manifest file 'src/pyfacegraph.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'src/pyfacegraph.egg-info/SOURCES.txt' Copying src/pyfacegraph.egg-info to /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/pyfacegraph-0.0.36-py2.7.egg-info running install_scripts + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-facegraph-0.0.36 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-facegraph-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph copying build/lib/facegraph/__init__.py -> /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph copying build/lib/facegraph/api.py -> /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph copying build/lib/facegraph/fql.py -> /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph copying build/lib/facegraph/graph.py -> /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph copying build/lib/facegraph/url_operations.py -> /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph byte-compiling /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/__init__.py to __init__.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/api.py to api.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/fql.py to fql.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/graph.py to graph.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/url_operations.py to url_operations.cpython-37.pyc running install_egg_info running egg_info creating src/pyfacegraph.egg-info writing src/pyfacegraph.egg-info/PKG-INFO writing dependency_links to src/pyfacegraph.egg-info/dependency_links.txt writing requirements to src/pyfacegraph.egg-info/requires.txt writing top-level names to src/pyfacegraph.egg-info/top_level.txt writing manifest file 'src/pyfacegraph.egg-info/SOURCES.txt' reading manifest file 'src/pyfacegraph.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'src/pyfacegraph.egg-info/SOURCES.txt' Copying src/pyfacegraph.egg-info to /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/pyfacegraph-0.0.36-py3.7.egg-info running install_scripts + popd ~/RPM/BUILD/python-module-facegraph-0.0.36 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-facegraph-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-facegraph-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/python-module-facegraph-buildroot/ (default) Compressing files in /usr/src/tmp/python-module-facegraph-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-facegraph-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-facegraph-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-facegraph-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/__init__.pyc unlink /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/api.pyc unlink /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/fql.pyc unlink /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/graph.pyc unlink /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/url_operations.pyc compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/__init__.py compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/api.py compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/fql.py compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/graph.py compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/url_operations.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-facegraph-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/__init__.py compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/api.py compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/fql.py compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/graph.py compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/url_operations.py Bytecompiling python3 modules in /usr/src/tmp/python-module-facegraph-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/__pycache__/__init__.cpython-37.pyc unlink /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/__pycache__/api.cpython-37.pyc unlink /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/__pycache__/fql.cpython-37.pyc unlink /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/__pycache__/graph.cpython-37.pyc unlink /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/__pycache__/url_operations.cpython-37.pyc compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/__init__.py compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/api.py compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/fql.py compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/graph.py compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/url_operations.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-facegraph-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/__init__.py compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/api.py compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/fql.py compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/graph.py compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/url_operations.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-facegraph-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/__init__.py compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/api.py compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/fql.py compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/graph.py compile /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/url_operations.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/facegraph/__pycache__/url_operations.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/facegraph/__pycache__/url_operations.cpython-37.pyc' './usr/lib/python3/site-packages/facegraph/__pycache__/graph.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/facegraph/__pycache__/graph.cpython-37.pyc' './usr/lib/python3/site-packages/facegraph/__pycache__/fql.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/facegraph/__pycache__/fql.cpython-37.pyc' './usr/lib/python3/site-packages/facegraph/__pycache__/api.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/facegraph/__pycache__/api.cpython-37.pyc' './usr/lib/python3/site-packages/facegraph/__pycache__/__init__.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/facegraph/__pycache__/__init__.cpython-37.pyc' './usr/lib/python3/site-packages/facegraph/__pycache__/__init__.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/facegraph/__pycache__/__init__.cpython-37.opt-1.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/facegraph/url_operations.pyo' => './usr/lib/python2.7/site-packages/facegraph/url_operations.pyc' './usr/lib/python2.7/site-packages/facegraph/graph.pyo' => './usr/lib/python2.7/site-packages/facegraph/graph.pyc' './usr/lib/python2.7/site-packages/facegraph/fql.pyo' => './usr/lib/python2.7/site-packages/facegraph/fql.pyc' './usr/lib/python2.7/site-packages/facegraph/api.pyo' => './usr/lib/python2.7/site-packages/facegraph/api.pyc' './usr/lib/python2.7/site-packages/facegraph/__init__.pyo' => './usr/lib/python2.7/site-packages/facegraph/__init__.pyc' Processing files: python-module-facegraph-0.0.36-alt1.git20140108.2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.42839 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-facegraph-0.0.36 + DOCDIR=/usr/src/tmp/python-module-facegraph-buildroot/usr/share/doc/python-module-facegraph-0.0.36 + export DOCDIR + rm -rf /usr/src/tmp/python-module-facegraph-buildroot/usr/share/doc/python-module-facegraph-0.0.36 + /bin/mkdir -p /usr/src/tmp/python-module-facegraph-buildroot/usr/share/doc/python-module-facegraph-0.0.36 + cp -prL README.md UNLICENSE /usr/src/tmp/python-module-facegraph-buildroot/usr/share/doc/python-module-facegraph-0.0.36 + chmod -R go-w /usr/src/tmp/python-module-facegraph-buildroot/usr/share/doc/python-module-facegraph-0.0.36 + chmod -R a+rX /usr/src/tmp/python-module-facegraph-buildroot/usr/share/doc/python-module-facegraph-0.0.36 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.nXI0je 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.Cyd15T find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) python.req: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/__init__.py: hiding facegraph, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/__init__.py: hiding facegraph, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/__init__.py: hiding facegraph, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/__init__.py: hiding facegraph, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/__init__.py: hiding facegraph, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/api.py: line=22 IGNORE (for REQ=slight and deep=19) module=urllib2 /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/api.py: line=24 IGNORE (for REQ=slight and deep=19) module=urllib /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/api.py: line=27 IGNORE (for REQ=slight and deep=15) module=httplib /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/fql.py: line=4 IGNORE (for REQ=slight and deep=8) module=urllib2 /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/fql.py: line=6 IGNORE (for REQ=slight and deep=8) module=urllib python.req: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/fql.py: hiding graph, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/fql.py: hiding url_operations, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/graph.py: line=6 IGNORE (for REQ=slight and deep=8) module=urllib2 /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/graph.py: line=8 IGNORE (for REQ=slight and deep=8) module=urllib python.req: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/graph.py: hiding facegraph, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/graph.py: line=143 IGNORE (for REQ=slight and deep=19) module=urllib2 /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/graph.py: line=145 IGNORE (for REQ=slight and deep=19) module=urllib /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python2.7/site-packages/facegraph/graph.py: line=148 IGNORE (for REQ=slight and deep=15) module=httplib Provides: python2.7(facegraph), python2.7(facegraph.api), python2.7(facegraph.fql), python2.7(facegraph.graph), python2.7(facegraph.url_operations) Requires: /usr/lib/python2.7/site-packages, python-modules, python2.7(bunch), python2.7(logging), python2.7(ujson) Processing files: python3-module-facegraph-0.0.36-alt1.git20140108.2 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.60730 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-facegraph-0.0.36 + DOCDIR=/usr/src/tmp/python-module-facegraph-buildroot/usr/share/doc/python3-module-facegraph-0.0.36 + export DOCDIR + rm -rf /usr/src/tmp/python-module-facegraph-buildroot/usr/share/doc/python3-module-facegraph-0.0.36 + /bin/mkdir -p /usr/src/tmp/python-module-facegraph-buildroot/usr/share/doc/python3-module-facegraph-0.0.36 + cp -prL README.md UNLICENSE /usr/src/tmp/python-module-facegraph-buildroot/usr/share/doc/python3-module-facegraph-0.0.36 + chmod -R go-w /usr/src/tmp/python-module-facegraph-buildroot/usr/share/doc/python3-module-facegraph-0.0.36 + chmod -R a+rX /usr/src/tmp/python-module-facegraph-buildroot/usr/share/doc/python3-module-facegraph-0.0.36 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.nflePS 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.uynElt find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/api.py: line=22 IGNORE (for REQ=slight and deep=19) module=urllib.request /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/api.py: line=22 IGNORE (for REQ=slight and deep=19) module=urllib.error /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/api.py: line=22 IGNORE (for REQ=slight and deep=19) module=urllib.parse /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/api.py: line=24 IGNORE (for REQ=slight and deep=19) module=urllib.request /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/api.py: line=27 IGNORE (for REQ=slight and deep=15) module=http.client /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/fql.py: line=4 IGNORE (for REQ=slight and deep=8) module=urllib.request /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/fql.py: line=4 IGNORE (for REQ=slight and deep=8) module=urllib.error /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/fql.py: line=4 IGNORE (for REQ=slight and deep=8) module=urllib.parse /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/fql.py: line=6 IGNORE (for REQ=slight and deep=8) module=urllib.request /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/fql.py: line=10 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/fql.py: line=11 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/graph.py: line=6 IGNORE (for REQ=slight and deep=8) module=urllib2 /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/graph.py: line=8 IGNORE (for REQ=slight and deep=8) module=urllib.request /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/graph.py: line=143 IGNORE (for REQ=slight and deep=19) module=urllib.request /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/graph.py: line=143 IGNORE (for REQ=slight and deep=19) module=urllib.error /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/graph.py: line=143 IGNORE (for REQ=slight and deep=19) module=urllib.parse /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/graph.py: line=145 IGNORE (for REQ=slight and deep=19) module=urllib.request /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/graph.py: line=148 IGNORE (for REQ=slight and deep=15) module=http.client Provides: python3(facegraph), python3(facegraph.api), python3(facegraph.fql), python3(facegraph.graph), python3(facegraph.url_operations) Requires: /usr/lib/python3/site-packages, python3(bunch) < 0, python3(functools) < 0, python3(http.client) < 0, python3(logging) < 0, python3(re) < 0, python3(socket) < 0, python3(traceback) < 0, python3(ujson) < 0, python3(urllib.error) < 0, python3(urllib.parse) < 0, python3(urllib.request) < 0 Wrote: /usr/src/RPM/RPMS/noarch/python-module-facegraph-0.0.36-alt1.git20140108.2.noarch.rpm Wrote: /usr/src/RPM/RPMS/noarch/python3-module-facegraph-0.0.36-alt1.git20140108.2.noarch.rpm 13.99user 1.61system 0:17.84elapsed 87%CPU (0avgtext+0avgdata 19240maxresident)k 0inputs+0outputs (0major+205789minor)pagefaults 0swaps 27.27user 8.37system 0:36.82elapsed 96%CPU (0avgtext+0avgdata 116292maxresident)k 0inputs+0outputs (0major+622054minor)pagefaults 0swaps