<86>Apr 21 00:51:03 userdel[66391]: delete user 'rooter' <86>Apr 21 00:51:03 userdel[66391]: removed group 'rooter' owned by 'rooter' <86>Apr 21 00:51:03 userdel[66391]: removed shadow group 'rooter' owned by 'rooter' <86>Apr 21 00:51:03 groupadd[66399]: group added to /etc/group: name=rooter, GID=663 <86>Apr 21 00:51:03 groupadd[66399]: group added to /etc/gshadow: name=rooter <86>Apr 21 00:51:03 groupadd[66399]: new group: name=rooter, GID=663 <86>Apr 21 00:51:03 useradd[66405]: new user: name=rooter, UID=663, GID=663, home=/root, shell=/bin/bash <86>Apr 21 00:51:03 userdel[66413]: delete user 'builder' <86>Apr 21 00:51:03 userdel[66413]: removed group 'builder' owned by 'builder' <86>Apr 21 00:51:03 userdel[66413]: removed shadow group 'builder' owned by 'builder' <86>Apr 21 00:51:03 groupadd[66424]: group added to /etc/group: name=builder, GID=664 <86>Apr 21 00:51:03 groupadd[66424]: group added to /etc/gshadow: name=builder <86>Apr 21 00:51:03 groupadd[66424]: new group: name=builder, GID=664 <86>Apr 21 00:51:03 useradd[66442]: new user: name=builder, UID=664, GID=664, home=/usr/src, shell=/bin/bash <13>Apr 21 00:51:06 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 21 00:51:06 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 21 00:51:06 rpmi: libtinfo-devel-5.9-alt8 1456756459 installed <13>Apr 21 00:51:06 rpmi: libncurses-devel-5.9-alt8 1456756459 installed <13>Apr 21 00:51:06 rpmi: python-modules-curses-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:51:06 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 21 00:51:06 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 21 00:51:06 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Apr 21 00:51:06 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 21 00:51:06 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 21 00:51:06 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <86>Apr 21 00:51:06 groupadd[75840]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 21 00:51:06 groupadd[75840]: group added to /etc/gshadow: name=_keytab <86>Apr 21 00:51:06 groupadd[75840]: new group: name=_keytab, GID=499 <13>Apr 21 00:51:07 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 21 00:51:08 rpmi: python3-base-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 00:51:08 rpmi: python3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 00:51:08 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:51:08 rpmi: rpm-build-python3-0.1.10.10-alt1.M80P.1 1530521451 installed <13>Apr 21 00:51:08 rpmi: libpython3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 00:51:08 rpmi: python3-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 21 00:51:08 rpmi: python3-dev-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 00:51:08 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:51:09 rpmi: python3-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 21 00:51:09 rpmi: python3-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 21 00:51:09 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:51:09 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:51:09 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:51:09 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:51:09 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:51:09 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:51:09 rpmi: python-tools-2to3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:51:09 rpmi: python-modules-xml-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:51:09 rpmi: python-modules-hotshot-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:51:09 rpmi: python-modules-bsddb-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:51:09 rpmi: python-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:51:09 rpmi: python-dev-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:51:09 rpmi: python-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 21 00:51:09 rpmi: python-modules-json-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:51:09 rpmi: python-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 21 00:51:09 rpmi: python-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed Installing python-module-facegraph-0.0.36-alt1.git20140108.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.76661 + 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.10635 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-facegraph-0.0.36 + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + /usr/bin/python setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/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 -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + python3 setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/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.10635 + 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 + /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 + 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-35.pyc byte-compiling /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/api.py to api.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/fql.py to fql.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/graph.py to graph.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/url_operations.py to url_operations.cpython-35.pyc running install_egg_info running egg_info creating src/pyfacegraph.egg-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 src/pyfacegraph.egg-info/PKG-INFO writing requirements to src/pyfacegraph.egg-info/requires.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.5.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) 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 python3 unlink /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/__pycache__/api.cpython-35.pyc unlink /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/__pycache__/fql.cpython-35.pyc unlink /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/__pycache__/graph.cpython-35.pyc unlink /usr/src/tmp/python-module-facegraph-buildroot/usr/lib/python3/site-packages/facegraph/__pycache__/url_operations.cpython-35.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 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 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-35.opt-1.pyc' => './usr/lib/python3/site-packages/facegraph/__pycache__/url_operations.cpython-35.pyc' './usr/lib/python3/site-packages/facegraph/__pycache__/graph.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/facegraph/__pycache__/graph.cpython-35.pyc' './usr/lib/python3/site-packages/facegraph/__pycache__/fql.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/facegraph/__pycache__/fql.cpython-35.pyc' './usr/lib/python3/site-packages/facegraph/__pycache__/api.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/facegraph/__pycache__/api.cpython-35.pyc' './usr/lib/python3/site-packages/facegraph/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/facegraph/__pycache__/__init__.cpython-35.pyc' './usr/lib/python3/site-packages/facegraph/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/facegraph/__pycache__/__init__.cpython-35.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.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.10369 + 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.WPqO04 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.gWxx6Y 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.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.99864 + 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.AQanQW 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.8jO2EX 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 /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 /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 /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 /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 /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 /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 /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 /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 /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 /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 /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 /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 /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 /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 Provides: python3(facegraph), python3(facegraph.api), python3(facegraph.fql), python3(facegraph.graph), python3(facegraph.url_operations), python3.3(facegraph), python3.3(facegraph.api), python3.3(facegraph.fql), python3.3(facegraph.graph), python3.3(facegraph.url_operations) Requires: /usr/lib/python3/site-packages, python3(bunch) < 0, python3(functools) < 0, python3(http) < 0, python3(logging) < 0, python3(re) < 0, python3(socket) < 0, python3(traceback) < 0, python3(ujson) < 0, python3(urllib) < 0 Wrote: /usr/src/RPM/RPMS/noarch/python-module-facegraph-0.0.36-alt1.git20140108.1.noarch.rpm Wrote: /usr/src/RPM/RPMS/noarch/python3-module-facegraph-0.0.36-alt1.git20140108.1.noarch.rpm 4.78user 0.72system 0:08.67elapsed 63%CPU (0avgtext+0avgdata 30388maxresident)k 0inputs+0outputs (0major+214572minor)pagefaults 0swaps 11.55user 3.58system 0:18.97elapsed 79%CPU (0avgtext+0avgdata 122056maxresident)k 0inputs+0outputs (0major+457464minor)pagefaults 0swaps --- python3-module-facegraph-0.0.36-alt1.git20140108.1.noarch.rpm.repo 2016-03-14 08:21:46.000000000 +0000 +++ python3-module-facegraph-0.0.36-alt1.git20140108.1.noarch.rpm.hasher 2019-04-21 00:51:20.285185742 +0000 @@ -3,10 +3,17 @@ /usr/lib/python3/site-packages/facegraph/__pycache__ 40755 -/usr/lib/python3/site-packages/facegraph/__pycache__/api.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/facegraph/__pycache__/api.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/facegraph/__pycache__/fql.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/facegraph/__pycache__/fql.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/facegraph/__pycache__/graph.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/facegraph/__pycache__/graph.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/facegraph/__pycache__/url_operations.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/facegraph/__pycache__/url_operations.cpython-33.pyo 100644 +/usr/lib/python3/site-packages/facegraph/__pycache__/__init__.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/facegraph/__pycache__/__init__.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/facegraph/__pycache__/__init__.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/facegraph/__pycache__/api.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/facegraph/__pycache__/api.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/facegraph/__pycache__/api.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/facegraph/__pycache__/fql.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/facegraph/__pycache__/fql.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/facegraph/__pycache__/fql.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/facegraph/__pycache__/graph.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/facegraph/__pycache__/graph.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/facegraph/__pycache__/graph.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/facegraph/__pycache__/url_operations.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/facegraph/__pycache__/url_operations.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/facegraph/__pycache__/url_operations.cpython-35.pyc 100644 /usr/lib/python3/site-packages/facegraph/api.py 100644 @@ -15,8 +22,8 @@ /usr/lib/python3/site-packages/facegraph/url_operations.py 100644 -/usr/lib/python3/site-packages/pyfacegraph-0.0.36-py3.3.egg-info 40755 -/usr/lib/python3/site-packages/pyfacegraph-0.0.36-py3.3.egg-info/PKG-INFO 100644 -/usr/lib/python3/site-packages/pyfacegraph-0.0.36-py3.3.egg-info/SOURCES.txt 100644 -/usr/lib/python3/site-packages/pyfacegraph-0.0.36-py3.3.egg-info/dependency_links.txt 100644 -/usr/lib/python3/site-packages/pyfacegraph-0.0.36-py3.3.egg-info/requires.txt 100644 -/usr/lib/python3/site-packages/pyfacegraph-0.0.36-py3.3.egg-info/top_level.txt 100644 +/usr/lib/python3/site-packages/pyfacegraph-0.0.36-py3.5.egg-info 40755 +/usr/lib/python3/site-packages/pyfacegraph-0.0.36-py3.5.egg-info/PKG-INFO 100644 +/usr/lib/python3/site-packages/pyfacegraph-0.0.36-py3.5.egg-info/SOURCES.txt 100644 +/usr/lib/python3/site-packages/pyfacegraph-0.0.36-py3.5.egg-info/dependency_links.txt 100644 +/usr/lib/python3/site-packages/pyfacegraph-0.0.36-py3.5.egg-info/requires.txt 100644 +/usr/lib/python3/site-packages/pyfacegraph-0.0.36-py3.5.egg-info/top_level.txt 100644 /usr/share/doc/python3-module-facegraph-0.0.36 40755 @@ -25,11 +32,11 @@ Requires: /usr/lib/python3/site-packages -Requires: python3.3(bunch) -Requires: python3.3(functools) -Requires: python3.3(http) -Requires: python3.3(logging) -Requires: python3.3(re) -Requires: python3.3(socket) -Requires: python3.3(traceback) -Requires: python3.3(ujson) -Requires: python3.3(urllib) +Requires: python3(bunch) < 0 +Requires: python3(functools) < 0 +Requires: python3(http) < 0 +Requires: python3(logging) < 0 +Requires: python3(re) < 0 +Requires: python3(socket) < 0 +Requires: python3(traceback) < 0 +Requires: python3(ujson) < 0 +Requires: python3(urllib) < 0 Requires: rpmlib(PayloadIsLzma)