<86>Dec 11 07:22:30 userdel[42302]: delete user 'rooter' <86>Dec 11 07:22:30 userdel[42302]: removed group 'rooter' owned by 'rooter' <86>Dec 11 07:22:30 userdel[42302]: removed shadow group 'rooter' owned by 'rooter' <86>Dec 11 07:22:31 groupadd[42445]: group added to /etc/group: name=rooter, GID=672 <86>Dec 11 07:22:31 groupadd[42445]: group added to /etc/gshadow: name=rooter <86>Dec 11 07:22:31 groupadd[42445]: new group: name=rooter, GID=672 <86>Dec 11 07:22:31 useradd[42615]: new user: name=rooter, UID=672, GID=672, home=/root, shell=/bin/bash <86>Dec 11 07:22:31 userdel[43043]: delete user 'builder' <86>Dec 11 07:22:31 groupadd[43397]: group added to /etc/group: name=builder, GID=673 <86>Dec 11 07:22:31 groupadd[43397]: group added to /etc/gshadow: name=builder <86>Dec 11 07:22:31 groupadd[43397]: new group: name=builder, GID=673 <86>Dec 11 07:22:31 useradd[43450]: new user: name=builder, UID=673, GID=673, home=/usr/src, shell=/bin/bash <13>Dec 11 07:22:34 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Dec 11 07:22:34 rpmi: libexpat-2.2.4-alt1 1503305345 installed <13>Dec 11 07:22:34 rpmi: libtasn1-4.13-alt2 1521133850 installed <13>Dec 11 07:22:34 rpmi: libp11-kit-0.23.9-alt5 1525798298 installed <13>Dec 11 07:22:34 rpmi: rpm-macros-alternatives-0.4.5-alt1.1 1404382149 installed <13>Dec 11 07:22:34 rpmi: alternatives-0.4.5-alt1.1 1404382149 installed <13>Dec 11 07:22:34 rpmi: ca-certificates-2018.11.12-alt1 sisyphus.216395.300 1542114035 installed <13>Dec 11 07:22:34 rpmi: ca-trust-0.1.1-alt2 1515595785 installed <13>Dec 11 07:22:34 rpmi: p11-kit-trust-0.23.9-alt5 1525798298 installed <13>Dec 11 07:22:34 rpmi: libcrypto1.1-1.1.0j-alt1 sisyphus.216647.100 1542743878 installed <13>Dec 11 07:22:34 rpmi: libssl1.1-1.1.0j-alt1 sisyphus.216647.100 1542743878 installed <13>Dec 11 07:22:34 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Dec 11 07:22:34 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Dec 11 07:22:34 rpmi: python3-3.6.5-alt1.1 1535734576 installed <13>Dec 11 07:22:35 rpmi: python3-base-3.6.5-alt1.1 1535734576 installed <13>Dec 11 07:22:35 rpmi: libpython3-3.6.5-alt1.1 1535734576 installed <13>Dec 11 07:22:41 rpmi: python3-module-pkg_resources-1:40.5.0-alt1 sisyphus.216029.100 1541106477 installed <13>Dec 11 07:22:41 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus.215627.200 1540831974 installed <13>Dec 11 07:22:41 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus.215627.200 1540831974 installed <13>Dec 11 07:22:41 rpmi: python3-dev-3.6.5-alt1.1 1535734576 installed <13>Dec 11 07:22:41 rpmi: python-modules-curses-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Dec 11 07:22:41 rpmi: libverto-0.3.0-alt1_5 1525957714 installed <13>Dec 11 07:22:41 rpmi: libkeyutils-1.6-alt2 sisyphus.217337.100 1544003161 installed <13>Dec 11 07:22:41 rpmi: libcom_err-1.44.3-alt1 1532134732 installed <86>Dec 11 07:22:41 groupadd[83606]: group added to /etc/group: name=_keytab, GID=499 <86>Dec 11 07:22:41 groupadd[83606]: group added to /etc/gshadow: name=_keytab <86>Dec 11 07:22:41 groupadd[83606]: new group: name=_keytab, GID=499 <13>Dec 11 07:22:41 rpmi: libkrb5-1.16.2-alt2 sisyphus.216877.200 1543483297 installed <13>Dec 11 07:22:41 rpmi: libtirpc-1.0.3-alt1 1532008017 installed <13>Dec 11 07:22:41 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Dec 11 07:22:41 rpmi: python-modules-email-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Dec 11 07:22:41 rpmi: python-modules-unittest-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Dec 11 07:22:41 rpmi: python-modules-nis-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Dec 11 07:22:41 rpmi: python-modules-encodings-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Dec 11 07:22:42 rpmi: python-modules-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Dec 11 07:22:42 rpmi: python-modules-compiler-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Dec 11 07:22:42 rpmi: python-modules-ctypes-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Dec 11 07:22:42 rpmi: python-modules-multiprocessing-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Dec 11 07:22:42 rpmi: python-modules-logging-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Dec 11 07:22:42 rpmi: python-tools-2to3-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Dec 11 07:22:42 rpmi: python-module-pkg_resources-1:40.5.0-alt1 sisyphus.216029.100 1541106477 installed <13>Dec 11 07:22:42 rpmi: python-modules-xml-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Dec 11 07:22:42 rpmi: python-modules-hotshot-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Dec 11 07:22:42 rpmi: python-modules-bsddb-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Dec 11 07:22:42 rpmi: python-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Dec 11 07:22:42 rpmi: python-modules-distutils-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Dec 11 07:22:42 rpmi: libnsl2-devel-1.1.0-alt1_1 1511548749 installed <13>Dec 11 07:22:42 rpmi: python-dev-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Dec 11 07:22:42 rpmi: python-module-setuptools-1:40.5.0-alt1 sisyphus.216029.100 1541106477 installed <13>Dec 11 07:22:42 rpmi: python3-module-setuptools-1:40.5.0-alt1 sisyphus.216029.100 1541106477 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.35725 + 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.35063 + 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.38325 + 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-36.pyc byte-compiling /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/api.py to api.cpython-36.pyc byte-compiling /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/fql.py to fql.cpython-36.pyc byte-compiling /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/graph.py to graph.cpython-36.pyc byte-compiling /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/url_operations.py to url_operations.cpython-36.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.6.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-36.pyc unlink /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/__pycache__/api.cpython-36.pyc unlink /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/__pycache__/fql.cpython-36.pyc unlink /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/__pycache__/graph.cpython-36.pyc unlink /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/__pycache__/url_operations.cpython-36.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-36.opt-1.pyc' => './usr/lib/python3/site-packages/facegraph/__pycache__/url_operations.cpython-36.pyc' './usr/lib/python3/site-packages/facegraph/__pycache__/graph.cpython-36.opt-1.pyc' => './usr/lib/python3/site-packages/facegraph/__pycache__/graph.cpython-36.pyc' './usr/lib/python3/site-packages/facegraph/__pycache__/fql.cpython-36.opt-1.pyc' => './usr/lib/python3/site-packages/facegraph/__pycache__/fql.cpython-36.pyc' './usr/lib/python3/site-packages/facegraph/__pycache__/api.cpython-36.opt-1.pyc' => './usr/lib/python3/site-packages/facegraph/__pycache__/api.cpython-36.pyc' './usr/lib/python3/site-packages/facegraph/__pycache__/__init__.cpython-36.opt-1.pyc' => './usr/lib/python3/site-packages/facegraph/__pycache__/__init__.cpython-36.pyc' './usr/lib/python3/site-packages/facegraph/__pycache__/__init__.cpython-36.opt-2.pyc' => './usr/lib/python3/site-packages/facegraph/__pycache__/__init__.cpython-36.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.596 + 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.yw0m14 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.U86jyU find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) python.req: /usr/src/tmp/python-module-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.34709 + 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.5JFiDU 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.WFzWr2 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-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 11.90user 0.55system 0:23.08elapsed 53%CPU (0avgtext+0avgdata 21744maxresident)k 0inputs+0outputs (0major+213845minor)pagefaults 0swaps 24.88user 3.50system 0:47.60elapsed 59%CPU (0avgtext+0avgdata 122448maxresident)k 0inputs+0outputs (0major+730848minor)pagefaults 0swaps