<86>Apr 14 01:26:54 userdel[65171]: delete user 'rooter' <86>Apr 14 01:26:54 groupadd[65194]: group added to /etc/group: name=rooter, GID=615 <86>Apr 14 01:26:54 groupadd[65194]: group added to /etc/gshadow: name=rooter <86>Apr 14 01:26:54 groupadd[65194]: new group: name=rooter, GID=615 <86>Apr 14 01:26:54 useradd[65210]: new user: name=rooter, UID=615, GID=615, home=/root, shell=/bin/bash <86>Apr 14 01:26:54 userdel[65251]: delete user 'builder' <86>Apr 14 01:26:54 userdel[65251]: removed group 'builder' owned by 'builder' <86>Apr 14 01:26:54 userdel[65251]: removed shadow group 'builder' owned by 'builder' <86>Apr 14 01:26:54 groupadd[65274]: group added to /etc/group: name=builder, GID=616 <86>Apr 14 01:26:54 groupadd[65274]: group added to /etc/gshadow: name=builder <86>Apr 14 01:26:54 groupadd[65274]: new group: name=builder, GID=616 <86>Apr 14 01:26:54 useradd[65293]: new user: name=builder, UID=616, GID=616, home=/usr/src, shell=/bin/bash <13>Apr 14 01:26:57 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 14 01:26:57 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 14 01:26:57 rpmi: libtinfo-devel-5.9-alt8 1456756459 installed <13>Apr 14 01:26:57 rpmi: libncurses-devel-5.9-alt8 1456756459 installed <13>Apr 14 01:26:57 rpmi: python-modules-curses-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:26:57 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 14 01:26:57 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 14 01:26:57 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Apr 14 01:26:57 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 14 01:26:57 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 14 01:26:57 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <86>Apr 14 01:26:57 groupadd[73867]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 14 01:26:57 groupadd[73867]: group added to /etc/gshadow: name=_keytab <86>Apr 14 01:26:57 groupadd[73867]: new group: name=_keytab, GID=499 <13>Apr 14 01:26:57 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 14 01:26:58 rpmi: python3-base-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 01:26:58 rpmi: python3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 01:26:58 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:26:58 rpmi: rpm-build-python3-0.1.10.10-alt1.M80P.1 1530521451 installed <13>Apr 14 01:26:58 rpmi: libpython3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 01:26:58 rpmi: python3-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 14 01:26:58 rpmi: python3-dev-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 01:26:58 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:26:59 rpmi: python3-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 14 01:26:59 rpmi: python3-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 14 01:26:59 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:26:59 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:26:59 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:26:59 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:26:59 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:26:59 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:26:59 rpmi: python-tools-2to3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:26:59 rpmi: python-modules-xml-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:26:59 rpmi: python-modules-hotshot-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:26:59 rpmi: python-modules-bsddb-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:26:59 rpmi: python-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:26:59 rpmi: python-dev-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:26:59 rpmi: python-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 14 01:26:59 rpmi: python-modules-json-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 01:26:59 rpmi: python-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 14 01:26:59 rpmi: python-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed Installing python-module-twitter-2.0-alt2.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.30129 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-twitter-2.0 + echo 'Source #0 (python-module-twitter-2.0.tar):' Source #0 (python-module-twitter-2.0.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-twitter-2.0.tar + cd python-module-twitter-2.0 + /bin/chmod -c -Rf u+rwX,go-w . + cp -fR . ../python3 + find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ../python3/twitter_test.py WARNING: couldn't encode ../python3/twitter_test.py's diff for your terminal RefactoringTool: Refactored ../python3/twitter/user.py RefactoringTool: No changes to ../python3/twitter/url.py RefactoringTool: No changes to ../python3/twitter/trend.py RefactoringTool: Refactored ../python3/twitter/status.py RefactoringTool: Refactored ../python3/twitter/parse_tweet.py RefactoringTool: Refactored ../python3/twitter/list.py --- ../python3/twitter_test.py (original) +++ ../python3/twitter_test.py (refactored) @@ -25,19 +25,19 @@ import time import calendar import unittest -import urllib +import urllib.request, urllib.parse, urllib.error import twitter class StatusTest(unittest.TestCase): - SAMPLE_JSON = '''{"created_at": "Fri Jan 26 23:17:14 +0000 2007", "id": 4391023, "text": "A l\u00e9gp\u00e1rn\u00e1s haj\u00f3m tele van angoln\u00e1kkal.", "user": {"description": "Canvas. JC Penny. Three ninety-eight.", "id": 718443, "location": "Okinawa, Japan", "name": "Kesuke Miyagi", "profile_image_url": "https://twitter.com/system/user/profile_image/718443/normal/kesuke.png", "screen_name": "kesuke", "url": "https://twitter.com/kesuke"}}''' + SAMPLE_JSON = '''{"created_at": "Fri Jan 26 23:17:14 +0000 2007", "id": 4391023, "text": "A l\\u00e9gp\\u00e1rn\\u00e1s haj\\u00f3m tele van angoln\\u00e1kkal.", "user": {"description": "Canvas. JC Penny. Three ninety-eight.", "id": 718443, "location": "Okinawa, Japan", "name": "Kesuke Miyagi", "profile_image_url": "https://twitter.com/system/user/profile_image/718443/normal/kesuke.png", "screen_name": "kesuke", "url": "https://twitter.com/kesuke"}}''' def _GetSampleUser(self): return twitter.User(id=718443, name='Kesuke Miyagi', screen_name='kesuke', - description=u'Canvas. JC Penny. Three ninety-eight.', + description='Canvas. JC Penny. Three ninety-eight.', location='Okinawa, Japan', url='https://twitter.com/kesuke', profile_image_url='https://twitter.com/system/user/pro' @@ -47,14 +47,14 @@ def _GetSampleStatus(self): return twitter.Status(created_at='Fri Jan 26 23:17:14 +0000 2007', id=4391023, --- ../python3/twitter/user.py (original) +++ ../python3/twitter/user.py (refactored) @@ -34,7 +34,7 @@ 'following': None, 'followed_by': None} - for (param, default) in param_defaults.iteritems(): + for (param, default) in param_defaults.items(): setattr(self, param, kwargs.get(param, default)) def GetFollowedBy(self): @@ -193,7 +193,7 @@ 'created_at': None, 'listed_count': None} - for (param, default) in param_defaults.iteritems(): + for (param, default) in param_defaults.items(): setattr(self, param, kwargs.get(param, default)) --- ../python3/twitter/status.py (original) +++ ../python3/twitter/status.py (refactored) @@ -118,7 +118,7 @@ 'withheld_in_countries': None, 'withheld_scope': None} - for (param, default) in param_defaults.iteritems(): + for (param, default) in param_defaults.items(): setattr(self, param, kwargs.get(param, default)) def GetCreatedAt(self): @@ -348,7 +348,7 @@ A human readable string representing the posting time ''' fudge = 1.25 - delta = long(self.now) - long(self.created_at_in_seconds) + delta = int(self.now) - int(self.created_at_in_seconds) if delta < (1 * fudge): return 'about a second ago' --- ../python3/twitter/parse_tweet.py (original) +++ ../python3/twitter/parse_tweet.py (refactored) @@ -8,7 +8,7 @@ # compile once on import regexp = { "RT": "^RT", "MT":r"^MT", "ALNUM": r"(@[a-zA-Z0-9_]+)", "HASHTAG": r"(#[\w\d]+)", "URL": r"([http://]?[a-zA-Z\d\/]+[\.]+[a-zA-Z\d\/\.]+)" } - regexp = dict((key,re.compile(value)) for key,value in regexp.items()) + regexp = dict((key,re.compile(value)) for key,value in list(regexp.items())) def __init__(self,timeline_owner,tweet): ''' timeline_owner : twitter handle of user account. tweet - 140 chars from feed; object does all computation on construction --- ../python3/twitter/list.py (original) +++ ../python3/twitter/list.py (refactored) @@ -32,7 +32,7 @@ 'following': None, 'user': None} - for (param, default) in param_defaults.iteRefactoringTool: No changes to ../python3/twitter/hashtag.py RefactoringTool: No changes to ../python3/twitter/error.py RefactoringTool: No changes to ../python3/twitter/direct_message.py RefactoringTool: Refactored ../python3/twitter/api.py ritems(): + for (param, default) in param_defaults.items(): setattr(self, param, kwargs.get(param, default)) def GetId(self): --- ../python3/twitter/api.py (original) +++ ../python3/twitter/api.py (refactored) @@ -27,12 +27,12 @@ import sys import textwrap import types -import urllib -import urllib2 -import urlparse +import urllib.request, urllib.parse, urllib.error +import urllib.request, urllib.error, urllib.parse +import urllib.parse import requests from requests_oauthlib import OAuth1 -import StringIO +import io from twitter import (__version__, _FileCache, simplejson, DirectMessage, List, Status, Trend, TwitterError, User) @@ -181,9 +181,9 @@ if consumer_key is not None and (access_token_key is None or access_token_secret is None): - print >> sys.stderr, 'Twitter now requires an oAuth Access Token for API calls.' - print >> sys.stderr, 'If your using this library from a command line utility, please' - print >> sys.stderr, 'run the included get_access_token.py tool to generate one.' + print('Twitter now requires an oAuth Access Token for API calls.', file=sys.stderr) + print('If your using this library from a command line utility, please', file=sys.stderr) + print('run the included get_access_token.py tool to generate one.', file=sys.stderr) raise TwitterError('Twitter requires oAuth Access Token for all API access') @@ -191,8 +191,8 @@ if debugHTTP: import logging - import httplib - httplib.HTTPConnection.debuglevel = 1 + import http.client + http.client.HTTPConnection.debuglevel = 1 logging.basicConfig() # you need to initialize logging, otherwise you will not see anything from requests logging.getLogger().setLevel(logging.DEBUG) @@ -314,13 +314,13 @@ if since_id: try: - parameters['since_id'] = long(since_id) + parameters['since_id'] = int(since_id) except ValueError: raise TwitterError("since_id must be an integer") if max_id: try: - parameters['max_id'] = long(max_id) + parameters['max_id'] = int(max_id) except ValueError: raise TwitterError("max_id must be an integer") @@ -518,12 +518,12 @@ parameters['count'] = count if since_id: try: - parameters['since_id'] = long(since_id) + parameters['since_id'] = int(since_id) except ValueError: raise TwitterError("'since_id' must be an integer") if max_id: try: - parameters['max_id'] = long(max_id) + parameters['max_id'] = int(max_id) except ValueError: raise TwitterError("'max_id' must be an integer") if trim_user: @@ -599,12 +599,12 @@ parameters['screen_name'] = screen_name if since_id: try: - parameters['since_id'] = long(since_id) + parameters['since_id'] = int(since_id) except ValueError: raise TwitterError("since_id must be an integer") if max_id: try: - parameters['max_id'] = long(max_id) + parameters['max_id'] = int(max_id) except ValueError: raise TwitterError("max_id must be an integer") if count: @@ -661,7 +661,7 @@ parameters = {} try: - parameters['id'] = long(id) + parameters['id'] = int(id) except ValueError: raise TwitterError("'id' must be an integer.") @@ -730,7 +730,7 @@ if id is not None: try: - parameters['id'] = long(id) + parameters['id'] = int(id) except ValueError: raise TwitterError("'id' must be an integer.") elif url is not None: @@ -781,7 +781,7 @@ raise TwitterError("API must be authenticated.") try: - post_data = {'id': long(id)} + post_data = {'id': int(id)} except ValueError: raise TwitterError("id must be an integer") url = '%s/statuses/destroy/%s.json' % (self.base_url, id) @@ -855,10 +855,10 @@ url = '%s/statuses/update.json' % self.base_url - if isinstance(status, unicode) or self._input_encoding is None: + if isinstance(status, str) or self._input_encoding is None: u_status = status else: - u_status = unicode(status, self._input_encoding) + u_status = str(status, self._input_encoding) # if self._calculate_status_length(u_status, self._shortlink_size) > CHARACTER_LIMIT: # raise TwitterError("Text must be less than or equal to %d characters. " @@ -920,15 +920,15 @@ url = '%s/statuses/update_with_media.json' % self.base_url - if isinstance(status, unicode) or self._input_encoding is None: + if isinstance(status, str) or self._input_encoding is None: u_status = status else: - u_status = unicode(status, self._input_encoding) + u_status = str(status, self._input_encoding) data = {'status': status} if not hasattr(media, 'read'): if media.startswith('http'): - data['media'] = urllib2.urlopen(media).read() + data['media'] = urllib.request.urlopen(media).read() else: with open(str(media), 'rb') as f: data['media'] = f.read() @@ -969,7 +969,7 @@ continuation: The character string, if any, to be appended to all but the last message. Note that Twitter strips trailing '...' strings - from messages. Consider using the unicode \u2026 character + from messages. Consider using the unicode \\u2026 character (horizontal ellipsis) instead. [Defaults to None] **kwargs: See api.PostUpdate for a list of accepted parameters. @@ -1643,7 +1643,7 @@ json = self._RequestUrl(url, 'GET', data=parameters) try: data = self._ParseAndCheckTwitter(json.content) - except TwitterError, e: + except TwitterError as e: _, e, _ = sys.exc_info() t = e.args[0] if len(t) == 1 and ('code' in t[0]) and (t[0]['code'] == 34): @@ -2064,12 +2064,12 @@ parameters['screen_name'] = screen_name if since_id: try: - parameters['since_id'] = long(since_id) + parameters['since_id'] = int(since_id) except ValueError: raise TwitterError("since_id must be an integer") if max_id: try: - parameters['max_id'] = long(max_id) + parameters['max_id'] = int(max_id) except ValueError: raise TwitterError("max_id must be an integer") if count: @@ -2134,12 +2134,12 @@ raise TwitterError("count must be an integer") if since_id: try: - parameters['since_id'] = long(since_id) + parameters['since_id'] = int(since_id) except ValueError: raise TwitterError("since_id must be an integer") if max_id: try: - parameters['max_id'] = long(max_id) + parameters['max_id'] = int(max_id) except ValueError: raise TwitterError("max_id must be an integer") if trim_user: @@ -2236,14 +2236,14 @@ data = {} if list_id: try: - data['list_id'] = long(list_id) + data['list_id'] = int(list_id) except ValueError: raise TwitterError("list_id must be an integer") elif slug: data['slug'] = slug if owner_id: try: - data['owner_id'] = long(owner_id) + data['owner_id'] = int(owner_id) except ValueError: raise TwitterError("owner_id must be an integer") elif owner_screen_name: @@ -2288,14 +2288,14 @@ data = {} if list_id: try: - data['list_id'] = long(list_id) + data['list_id'] = int(list_id) except ValueError: raise TwitterError("list_id must be an integer") elif slug: data['slug'] = slug if owner_id: try: - data['owner_id'] = long(owner_id) + data['owner_id'] = int(owner_id) except ValueError: raise TwitterError("owner_id must be an integer") elif owner_screen_name: @@ -2340,14 +2340,14 @@ data = {} if list_id: try: - data['list_id'] = long(list_id) + data['list_id'] = int(list_id) except ValueError: raise TwitterError("list_id must be an integer") elif slug: data['slug'] = slug if owner_id: try: - data['owner_id'] = long(owner_id) + data['owner_id'] = int(owner_id) except ValueError: raise TwitterError("owner_id must be an integer") elif owner_screen_name: @@ -2408,14 +2408,14 @@ data = {} if list_id: try: - data['list_id'] = long(list_id) + data['list_id'] = int(list_id) except ValueError: raise TwitterError("list_id must be an integer") elif slug: data['slug'] = slug if owner_id: try: - data['owner_id'] = long(owner_id) + data['owner_id'] = int(owner_id) except ValueError: raise TwitterError("owner_id must be an integer") elif owner_screen_name: @@ -2426,7 +2426,7 @@ raise TwitterError("Identify list by list_id or owner_screen_name/owner_id and slug") if user_id: try: - data['user_id'] = long(user_id) + data['user_id'] = int(user_id) except ValueError: raise TwitterError("user_id must be an integer") elif screen_name: @@ -2485,7 +2485,7 @@ raise TwitterError("count must be an integer") if user_id is not None: try: - parameters['user_id'] = long(user_id) + parameters['user_id'] = int(user_id) except ValueError: raise TwitterError('user_id must be an integer') elif screen_name is not None: @@ -2608,12 +2608,12 @@ parameters['owner_screen_name'] = owner_screen_name if since_id: try: - parameters['since_id'] = long(since_id) + parameters['since_id'] = int(since_id) except ValueError: raise TwitterError("since_id must be an integer") if max_id: try: - parameters['max_id'] = long(max_id) + parameters['max_id'] = int(max_id) except ValueError: raise TwitterError("max_id must be an integer") if count: @@ -2754,14 +2754,14 @@ data = {} if list_id: try: - data['list_id'] = long(list_id) + data['list_id'] = int(list_id) except ValueError: raise TwitterError("list_id must be an integer") elif slug: data['slug'] = slug if owner_id: try: - data['owner_id'] = long(owner_id) + data['owner_id'] = int(owner_id) except ValueError: raise TwitterError("owner_id must be an integer") elif owner_screen_name: @@ -2772,15 +2772,15 @@ raise TwitterError("Identify list by list_id or owner_screen_name/owner_id and slug") if user_id: try: - if type(user_id) == types.ListType or type(user_id) == types.TupleType: + if type(user_id) == list or type(user_id) == tuple: isList = True data['user_id'] = '%s' % ','.join(user_id) else: - data['user_id'] = long(user_id) + data['user_id'] = int(user_id) except ValueError: raise TwitterError("user_id must be an integer") elif screen_name: - if type(screen_name) == types.ListType or type(screen_name) == types.TupleType: + if type(screen_name) == list or type(screen_name) == tuple: isList = True data['screen_name'] = '%s' % ','.join(screen_name) else: @@ -2833,14 +2833,14 @@ data = {} if list_id: try: - data['list_id'] = long(list_id) + data['list_id'] = int(list_id) except ValueError: raise TwitterError("list_id must be an integer") elif slug: data['slug'] = slug if owner_id: try: - data['owner_id'] = long(owner_id) + data['owner_id'] = int(owner_id) except ValueError: raise TwitterError("owner_id must be an integer") elif owner_screen_name: @@ -2851,15 +2851,15 @@ raise TwitterError("Identify list by list_id or owner_screen_name/owner_id and slug") if user_id: trRefactoringTool: Refactored ../python3/twitter/_file_cache.py y: - if type(user_id) == types.ListType or type(user_id) == types.TupleType: + if type(user_id) == list or type(user_id) == tuple: isList = True data['user_id'] = '%s' % ','.join(user_id) else: - data['user_id'] = long(user_id) + data['user_id'] = int(user_id) except ValueError: raise TwitterError("user_id must be an integer") elif screen_name: - if type(screen_name) == types.ListType or type(screen_name) == types.TupleType: + if type(screen_name) == list or type(screen_name) == tuple: isList = True data['screen_name'] = '%s' % ','.join(screen_name) else: @@ -2907,7 +2907,7 @@ parameters = {} if user_id is not None: try: - parameters['user_id'] = long(user_id) + parameters['user_id'] = int(user_id) except ValueError: raise TwitterError('user_id must be an integer') elif screen_name is not None: @@ -3319,7 +3319,7 @@ def _BuildUrl(self, url, path_elements=None, extra_params=None): # Break url into constituent parts - (scheme, netloc, path, params, query, fragment) = urlparse.urlparse(url) + (scheme, netloc, path, params, query, fragment) = urllib.parse.urlparse(url) # Add any additional path elements to the path if path_elements: @@ -3339,7 +3339,7 @@ query = extra_query # Return the rebuilt URL - return urlparse.urlunparse((scheme, netloc, path, params, query, fragment)) + return urllib.parse.urlunparse((scheme, netloc, path, params, query, fragment)) def _InitializeRequestHeaders(self, request_headers): if request_headers: @@ -3358,16 +3358,16 @@ def _DecompressGzippedResponse(self, response): raw_data = response.read() if response.headers.get('content-encoding', None) == 'gzip': - url_data = gzip.GzipFile(fileobj=StringIO.StringIO(raw_data)).read() + url_data = gzip.GzipFile(fileobj=io.StringIO(raw_data)).read() else: url_data = raw_data return url_data def _Encode(self, s): if self._input_encoding: - return unicode(s, self._input_encoding).encode('utf-8') + return str(s, self._input_encoding).encode('utf-8') else: - return unicode(s).encode('utf-8') + return str(s).encode('utf-8') def _EncodeParameters(self, parameters): '''Return a string in key=value&key=value form. @@ -3385,7 +3385,7 @@ if parameters is None: return None else: - return urllib.urlencode(dict([(k, self._Encode(v)) for k, v in parameters.items() if v is not None])) + return urllib.parse.urlencode(dict([(k, self._Encode(v)) for k, v in list(parameters.items()) if v is not None])) def _EncodePostData(self, post_data): '''Return a string in key=value&key=value form. @@ -3404,7 +3404,7 @@ if post_data is None: return None else: - return urllib.urlencode(dict([(k, self._Encode(v)) for k, v in post_data.items()])) + return urllib.parse.urlencode(dict([(k, self._Encode(v)) for k, v in list(post_data.items())])) def _ParseAndCheckTwitter(self, json): """Try and parse the JSON returned from Twitter and return @@ -3459,7 +3459,7 @@ A JSON object. ''' if verb == 'POST': - if data.has_key('media'): + if 'media' in data: try: return requests.post( url, --- ../python3/twitter/_file_cache.py (original) +++ ../python3/twitter/_file_cache.py (refactored) @@ -62,7 +62,7 @@ os.getenv('USERNAME') or \ os.getlogin() or \ 'nobody' - except (AttributeError, IOError, OSError), e: + except (AttributeError, IOError, OSError) as e: return 'nobody' def _GetTmpCachePath(self): @@ -98,7 +98,7 @@ # compile once on import regexp = { "RT": "^RT", "MT":r"^MT", "ALNUM": r"(@[a-zA-Z0-9_]+)", "HASHTAG": r"(#[\w\d]+)", "URL": r"([http://]?[a-zA-Z\d\/]+[\.]+[a-zA-Z\d\/\.]+)" } - regexp = dict((key,re.compile(value)) for key,value in regexp.items()) + regeRefactoringTool: Refactored ../python3/twitter/__init__.py RefactoringTool: No changes to ../python3/setup.py RefactoringTool: Refactored ../python3/get_access_token.py RefactoringTool: Refactored ../python3/examples/twitter-to-xhtml.py xp = dict((key,re.compile(value)) for key,value in list(regexp.items())) def __init__(self,timeline_owner,tweet): ''' timeline_owner : twitter handle of user account. tweet - 140 chars from feed; object does all computation on construction --- ../python3/twitter/__init__.py (original) +++ ../python3/twitter/__init__.py (refactored) @@ -28,14 +28,14 @@ except ImportError: from md5 import md5 -from _file_cache import _FileCache -from error import TwitterError -from direct_message import DirectMessage -from hashtag import Hashtag -from parse_tweet import ParseTweet -from trend import Trend -from url import Url -from status import Status -from user import User, UserStatus -from list import List -from api import Api +from ._file_cache import _FileCache +from .error import TwitterError +from .direct_message import DirectMessage +from .hashtag import Hashtag +from .parse_tweet import ParseTweet +from .trend import Trend +from .url import Url +from .status import Status +from .user import User, UserStatus +from .list import List +from .api import Api --- ../python3/get_access_token.py (original) +++ ../python3/get_access_token.py (refactored) @@ -27,31 +27,31 @@ oauth_client = OAuth1Session(consumer_key, client_secret=consumer_secret) - print 'Requesting temp token from Twitter' + print('Requesting temp token from Twitter') try: resp = oauth_client.fetch_request_token(REQUEST_TOKEN_URL) - except ValueError, e: - print 'Invalid respond from Twitter requesting temp token: %s' % e + except ValueError as e: + print('Invalid respond from Twitter requesting temp token: %s' % e) return url = oauth_client.authorization_url(AUTHORIZATION_URL) - print '' - print 'I will try to start a browser to visit the following Twitter page' - print 'if a browser will not start, copy the URL to your browser' - print 'and retrieve the pincode to be used' - print 'in the next step to obtaining an Authentication Token:' - print '' - print url - print '' + print('') + print('I will try to start a browser to visit the following Twitter page') + print('if a browser will not start, copy the URL to your browser') + print('and retrieve the pincode to be used') + print('in the next step to obtaining an Authentication Token:') + print('') + print(url) + print('') webbrowser.open(url) - pincode = raw_input('Pincode? ') + pincode = input('Pincode? ') - print '' - print 'Generating and signing request for an access token' - print '' + print('') + print('Generating and signing request for an access token') + print('') oauth_client = OAuth1Session(consumer_key, client_secret=consumer_secret, resource_owner_key=resp.get('oauth_token'), @@ -60,18 +60,18 @@ ) try: resp = oauth_client.fetch_access_token(ACCESS_TOKEN_URL) - except ValueError, e: - print 'Invalid respond from Twitter requesting access token: %s' % e + except ValueError as e: + print('Invalid respond from Twitter requesting access token: %s' % e) return - print 'Your Twitter Access Token key: %s' % resp.get('oauth_token') - print ' Access Token secret: %s' % resp.get('oauth_token_secret') - print '' + print('Your Twitter Access Token key: %s' % resp.get('oauth_token')) + print(' Access Token secret: %s' % resp.get('oauth_token_secret')) + print('') def main(): - consumer_key = raw_input('Enter your consumer key: ') - consumer_secret = raw_input("Enter your consumer secret: ") + consumer_key = input('Enter your consumer key: ') + consumer_secret = input("Enter your consumer secret: ") get_access_token(consumer_key, consumer_secret) if __name__ == "__main__": --- ../python3/examples/twitter-to-xhtml.py (original) +++ ../python3/examples/twitter-to-xhtml.py (refactored) @@ -18,14 +18,14 @@ """ def Usage(): - print 'Usage: %s [options] twitterid' % __file__ - print - print ' This script fetches a users lRefactoringTool: Refactored ../python3/examples/tweet.py RefactoringTool: Refactored ../python3/examples/shorten_url.py RefactoringTool: Refactored ../python3/doc/conf.py atest twitter update and stores' - print ' the result in a file as an XHTML fragment' - print - print ' Options:' - print ' --help -h : print this help' - print ' --output : the output file [default: stdout]' + print('Usage: %s [options] twitterid' % __file__) + print() + print(' This script fetches a users latest twitter update and stores') + print(' the result in a file as an XHTML fragment') + print() + print(' Options:') + print(' --help -h : print this help') + print(' --output : the output file [default: stdout]') def FetchTwitter(user, output): @@ -36,7 +36,7 @@ if output: Save(xhtml, output) else: - print xhtml + print(xhtml) def Save(xhtml, output): --- ../python3/examples/tweet.py (original) +++ ../python3/examples/tweet.py (refactored) @@ -4,7 +4,7 @@ __author__ = 'dewitt@google.com' -import ConfigParser +import configparser import getopt import os import sys @@ -47,7 +47,7 @@ ''' def PrintUsageAndExit(): - print USAGE + print(USAGE) sys.exit(2) def GetConsumerKeyEnv(): @@ -86,7 +86,7 @@ def _GetConfig(self): if not self._config: - self._config = ConfigParser.ConfigParser() + self._config = configparser.ConfigParser() self._config.read(os.path.expanduser('~/.tweetrc')) return self._config @@ -132,10 +132,10 @@ try: status = api.PostUpdate(message) except UnicodeDecodeError: - print "Your message could not be encoded. Perhaps it contains non-ASCII characters? " - print "Try explicitly specifying the encoding with the --encoding flag" + print("Your message could not be encoded. Perhaps it contains non-ASCII characters? ") + print("Try explicitly specifying the encoding with the --encoding flag") sys.exit(2) - print "%s just posted: %s" % (status.user.name, status.text) + print("%s just posted: %s" % (status.user.name, status.text)) if __name__ == "__main__": main() --- ../python3/examples/shorten_url.py (original) +++ ../python3/examples/shorten_url.py (refactored) @@ -19,7 +19,7 @@ TinyURL is provided as the default and as an example. ''' -import urllib +import urllib.request, urllib.parse, urllib.error # Change History @@ -62,7 +62,7 @@ ''' result = None - f = urllib.urlopen("http://tinyurl.com/api-create.php?url=%s" % longURL) + f = urllib.request.urlopen("http://tinyurl.com/api-create.php?url=%s" % longURL) try: result = f.read() finally: --- ../python3/doc/conf.py (original) +++ ../python3/doc/conf.py (refactored) @@ -40,8 +40,8 @@ master_doc = 'index' # General information about the project. -project = u'python-twitter' -copyright = u'2013, python-twitter@googlegroups.com' +project = 'python-twitter' +copyright = '2013, python-twitter@googlegroups.com' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -186,8 +186,8 @@ # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass [howto/manual]). latex_documents = [ - ('index', 'python-twitter.tex', u'python-twitter Documentation', - u'python-twitter@googlegroups.com', 'manual'), + ('index', 'python-twitter.tex', 'python-twitter Documentation', + 'python-twitter@googlegroups.com', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -216,8 +216,8 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'python-twitter', u'python-twitter Documentation', - [u'python-twitter@googlegroups.com'], 1) + ('index', 'python-twitter', 'python-twitter Documentation', + ['python-twitter@googlegroups.com'], 1) ] # If true, show URL addresses after external links. @@ -230,8 +230,8 @@ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - ('indexRefactoringTool: Files that were modified: RefactoringTool: ../python3/twitter_test.py RefactoringTool: ../python3/twitter/user.py RefactoringTool: ../python3/twitter/url.py RefactoringTool: ../python3/twitter/trend.py RefactoringTool: ../python3/twitter/status.py RefactoringTool: ../python3/twitter/parse_tweet.py RefactoringTool: ../python3/twitter/list.py RefactoringTool: ../python3/twitter/hashtag.py RefactoringTool: ../python3/twitter/error.py RefactoringTool: ../python3/twitter/direct_message.py RefactoringTool: ../python3/twitter/api.py RefactoringTool: ../python3/twitter/_file_cache.py RefactoringTool: ../python3/twitter/__init__.py RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/get_access_token.py RefactoringTool: ../python3/examples/twitter-to-xhtml.py RefactoringTool: ../python3/examples/tweet.py RefactoringTool: ../python3/examples/shorten_url.py RefactoringTool: ../python3/doc/conf.py ', 'python-twitter', u'python-twitter Documentation', - u'python-twitter@googlegroups.com', 'python-twitter', 'One line description of project.', + ('index', 'python-twitter', 'python-twitter Documentation', + 'python-twitter@googlegroups.com', 'python-twitter', 'One line description of project.', 'Miscellaneous'), ] + find ../python3 -type f -name '*.py' -exec sed -i 's|rfc822|rfc822py3|g' '{}' + + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.76412 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-twitter-2.0 + export LC_ALL=en_US.UTF-8 + LC_ALL=en_US.UTF-8 + 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 running build running build_py creating build creating build/lib creating build/lib/twitter copying twitter/user.py -> build/lib/twitter copying twitter/url.py -> build/lib/twitter copying twitter/trend.py -> build/lib/twitter copying twitter/status.py -> build/lib/twitter copying twitter/parse_tweet.py -> build/lib/twitter copying twitter/list.py -> build/lib/twitter copying twitter/hashtag.py -> build/lib/twitter copying twitter/error.py -> build/lib/twitter copying twitter/direct_message.py -> build/lib/twitter copying twitter/api.py -> build/lib/twitter copying twitter/_file_cache.py -> build/lib/twitter copying twitter/__init__.py -> build/lib/twitter + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-twitter-2.0 + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + python3 setup.py build running build running build_py creating build creating build/lib creating build/lib/twitter copying twitter/__init__.py -> build/lib/twitter copying twitter/_file_cache.py -> build/lib/twitter copying twitter/api.py -> build/lib/twitter copying twitter/direct_message.py -> build/lib/twitter copying twitter/error.py -> build/lib/twitter copying twitter/hashtag.py -> build/lib/twitter copying twitter/list.py -> build/lib/twitter copying twitter/parse_tweet.py -> build/lib/twitter copying twitter/status.py -> build/lib/twitter copying twitter/trend.py -> build/lib/twitter copying twitter/url.py -> build/lib/twitter copying twitter/user.py -> build/lib/twitter + popd ~/RPM/BUILD/python-module-twitter-2.0 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.76412 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-twitter-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-twitter-buildroot + cd python-module-twitter-2.0 + export LC_ALL=en_US.UTF-8 + LC_ALL=en_US.UTF-8 + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-twitter-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-twitter-buildroot creating /usr/src/tmp/python-module-twitter-buildroot/usr creating /usr/src/tmp/python-module-twitter-buildroot/usr/lib creating /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages creating /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter copying build/lib/twitter/__init__.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter copying build/lib/twitter/_file_cache.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter copying build/lib/twitter/api.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter copying build/lib/twitter/direct_message.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter copying build/lib/twitter/error.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter copying build/lib/twitter/hashtag.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter copying build/lib/twitter/list.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter copying build/lib/twitter/parse_tweet.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter copying build/lib/twitter/status.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter copying build/lib/twitter/trend.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter copying build/lib/twitter/url.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter copying build/lib/twitter/user.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/_file_cache.py to _file_cache.pyc byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/api.py to api.pyc byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/direct_message.py to direct_message.pyc byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/error.py to error.pyc byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/hashtag.py to hashtag.pyc byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/list.py to list.pyc byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/parse_tweet.py to parse_tweet.pyc byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/status.py to status.pyc byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/trend.py to trend.pyc byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/url.py to url.pyc byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/user.py to user.pyc running install_egg_info running egg_info creating python_twitter.egg-info writing requirements to python_twitter.egg-info/requires.txt writing python_twitter.egg-info/PKG-INFO writing top-level names to python_twitter.egg-info/top_level.txt writing dependency_links to python_twitter.egg-info/dependency_links.txt writing manifest file 'python_twitter.egg-info/SOURCES.txt' reading manifest file 'python_twitter.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' no previously-included directories found matching '.DS_Store' writing manifest file 'python_twitter.egg-info/SOURCES.txt' Copying python_twitter.egg-info to /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/python_twitter-2.0-py2.7.egg-info running install_scripts + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-twitter-2.0 + python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-twitter-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter copying build/lib/twitter/user.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter copying build/lib/twitter/url.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter copying build/lib/twitter/trend.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter copying build/lib/twitter/status.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter copying build/lib/twitter/parse_tweet.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter copying build/lib/twitter/list.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter copying build/lib/twitter/hashtag.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter copying build/lib/twitter/error.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter copying build/lib/twitter/direct_message.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter copying build/lib/twitter/api.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter copying build/lib/twitter/_file_cache.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter copying build/lib/twitter/__init__.py -> /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/user.py to user.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/url.py to url.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/trend.py to trend.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/status.py to status.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/parse_tweet.py to parse_tweet.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/list.py to list.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/hashtag.py to hashtag.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/error.py to error.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/direct_message.py to direct_message.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/api.py to api.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/_file_cache.py to _file_cache.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__init__.py to __init__.cpython-35.pyc running install_egg_info running egg_info creating python_twitter.egg-info writing python_twitter.egg-info/PKG-INFO writing requirements to python_twitter.egg-info/requires.txt writing top-level names to python_twitter.egg-info/top_level.txt writing dependency_links to python_twitter.egg-info/dependency_links.txt writing manifest file 'python_twitter.egg-info/SOURCES.txt' reading manifest file 'python_twitter.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' no previously-included directories found matching '.DS_Store' writing manifest file 'python_twitter.egg-info/SOURCES.txt' Copying python_twitter.egg-info to /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/python_twitter-2.0-py3.5.egg-info running install_scripts + popd ~/RPM/BUILD/python-module-twitter-2.0 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-twitter-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-twitter-buildroot (binconfig,pkgconfig,libtool,desktop) Compressing files in /usr/src/tmp/python-module-twitter-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-twitter-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-twitter-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-twitter-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/__init__.pyc unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/_file_cache.pyc unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/api.pyc unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/direct_message.pyc unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/error.pyc unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/hashtag.pyc unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/list.pyc unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/parse_tweet.pyc unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/status.pyc unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/trend.pyc unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/url.pyc unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/user.pyc compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/__init__.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/_file_cache.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/api.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/direct_message.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/error.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/hashtag.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/list.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/parse_tweet.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/status.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/trend.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/url.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/user.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-twitter-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/__init__.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/_file_cache.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/api.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/direct_message.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/error.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/hashtag.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/list.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/parse_tweet.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/status.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/trend.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/url.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/user.py Bytecompiling python3 modules in /usr/src/tmp/python-module-twitter-buildroot using python3 unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__pycache__/_file_cache.cpython-35.pyc unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__pycache__/api.cpython-35.pyc unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__pycache__/direct_message.cpython-35.pyc unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__pycache__/error.cpython-35.pyc unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__pycache__/hashtag.cpython-35.pyc unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__pycache__/list.cpython-35.pyc unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__pycache__/parse_tweet.cpython-35.pyc unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__pycache__/status.cpython-35.pyc unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__pycache__/trend.cpython-35.pyc unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__pycache__/url.cpython-35.pyc unlink /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__pycache__/user.cpython-35.pyc compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__init__.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/_file_cache.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/api.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/direct_message.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/error.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/hashtag.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/list.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/parse_tweet.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/status.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/trend.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/url.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/user.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-twitter-buildroot using python3 -O compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__init__.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/_file_cache.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/api.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/direct_message.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/error.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/hashtag.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/list.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/parse_tweet.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/status.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/trend.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/url.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/user.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-twitter-buildroot using python3 -OO compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__init__.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/_file_cache.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/api.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/direct_message.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/error.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/hashtag.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/list.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/parse_tweet.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/status.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/trend.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/url.py compile /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/user.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/twitter/__pycache__/user.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/twitter/__pycache__/user.cpython-35.pyc' './usr/lib/python3/site-packages/twitter/__pycache__/url.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/twitter/__pycache__/url.cpython-35.pyc' './usr/lib/python3/site-packages/twitter/__pycache__/trend.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/twitter/__pycache__/trend.cpython-35.pyc' './usr/lib/python3/site-packages/twitter/__pycache__/status.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/twitter/__pycache__/status.cpython-35.pyc' './usr/lib/python3/site-packages/twitter/__pycache__/parse_tweet.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/twitter/__pycache__/parse_tweet.cpython-35.pyc' './usr/lib/python3/site-packages/twitter/__pycache__/list.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/twitter/__pycache__/list.cpython-35.pyc' './usr/lib/python3/site-packages/twitter/__pycache__/hashtag.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/twitter/__pycache__/hashtag.cpython-35.pyc' './usr/lib/python3/site-packages/twitter/__pycache__/error.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/twitter/__pycache__/error.cpython-35.pyc' './usr/lib/python3/site-packages/twitter/__pycache__/direct_message.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/twitter/__pycache__/direct_message.cpython-35.pyc' './usr/lib/python3/site-packages/twitter/__pycache__/api.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/twitter/__pycache__/api.cpython-35.pyc' './usr/lib/python3/site-packages/twitter/__pycache__/_file_cache.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/twitter/__pycache__/_file_cache.cpython-35.pyc' './usr/lib/python3/site-packages/twitter/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/twitter/__pycache__/__init__.cpython-35.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/twitter/user.pyo' => './usr/lib/python2.7/site-packages/twitter/user.pyc' './usr/lib/python2.7/site-packages/twitter/url.pyo' => './usr/lib/python2.7/site-packages/twitter/url.pyc' './usr/lib/python2.7/site-packages/twitter/trend.pyo' => './usr/lib/python2.7/site-packages/twitter/trend.pyc' './usr/lib/python2.7/site-packages/twitter/status.pyo' => './usr/lib/python2.7/site-packages/twitter/status.pyc' './usr/lib/python2.7/site-packages/twitter/parse_tweet.pyo' => './usr/lib/python2.7/site-packages/twitter/parse_tweet.pyc' './usr/lib/python2.7/site-packages/twitter/list.pyo' => './usr/lib/python2.7/site-packages/twitter/list.pyc' './usr/lib/python2.7/site-packages/twitter/hashtag.pyo' => './usr/lib/python2.7/site-packages/twitter/hashtag.pyc' './usr/lib/python2.7/site-packages/twitter/error.pyo' => './usr/lib/python2.7/site-packages/twitter/error.pyc' './usr/lib/python2.7/site-packages/twitter/direct_message.pyo' => './usr/lib/python2.7/site-packages/twitter/direct_message.pyc' './usr/lib/python2.7/site-packages/twitter/api.pyo' => './usr/lib/python2.7/site-packages/twitter/api.pyc' './usr/lib/python2.7/site-packages/twitter/_file_cache.pyo' => './usr/lib/python2.7/site-packages/twitter/_file_cache.pyc' './usr/lib/python2.7/site-packages/twitter/__init__.pyo' => './usr/lib/python2.7/site-packages/twitter/__init__.pyc' Processing files: python-module-twitter-2.0-alt2.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.99814 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-twitter-2.0 + DOCDIR=/usr/src/tmp/python-module-twitter-buildroot/usr/share/doc/python-module-twitter-2.0 + export DOCDIR + rm -rf /usr/src/tmp/python-module-twitter-buildroot/usr/share/doc/python-module-twitter-2.0 + /bin/mkdir -p /usr/src/tmp/python-module-twitter-buildroot/usr/share/doc/python-module-twitter-2.0 + cp -prL AUTHORS.rst README.rst CHANGES COPYING LICENSE NOTICE doc/twitter.html examples/ /usr/src/tmp/python-module-twitter-buildroot/usr/share/doc/python-module-twitter-2.0 + chmod -R go-w /usr/src/tmp/python-module-twitter-buildroot/usr/share/doc/python-module-twitter-2.0 + chmod -R a+rX /usr/src/tmp/python-module-twitter-buildroot/usr/share/doc/python-module-twitter-2.0 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.424gxG 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.j2FEAm find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks) /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/__init__.py: line=27 IGNORE (for REQ=slight and deep=8) module=hashlib /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/__init__.py: line=29 IGNORE (for REQ=slight and deep=8) module=md5 python.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/__init__.py: hiding _file_cache, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/__init__.py: hiding error, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/__init__.py: hiding direct_message, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/__init__.py: hiding hashtag, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/__init__.py: hiding parse_tweet, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/__init__.py: hiding trend, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/__init__.py: hiding url, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/__init__.py: hiding status, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/__init__.py: hiding user, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/__init__.py: hiding list, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/__init__.py: hiding api, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/api.py: skipping sys python.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/api.py: hiding twitter, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/api.py: line=193 IGNORE (for REQ=slight and deep=15) module=logging /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/api.py: line=194 IGNORE (for REQ=slight and deep=15) module=httplib python.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/direct_message.py: hiding twitter, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/hashtag.py: hiding twitter, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/list.py: hiding twitter, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/parse_tweet.py: hiding twitter, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/status.py: hiding twitter, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/status.py: line=666 IGNORE (for REQ=slight and deep=16) module=twitter /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/status.py: line=690 IGNORE (for REQ=slight and deep=20) module=twitter python.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/trend.py: hiding twitter, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/url.py: hiding twitter, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/user.py: hiding twitter, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/user.py: line=816 IGNORE (for REQ=slight and deep=16) module=twitter shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/__init__.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/_file_cache.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/api.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/direct_message.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/error.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/hashtag.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/list.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/parse_tweet.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/status.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/trend.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/url.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python2.7/site-packages/twitter/user.py is not executable Provides: python2.7(twitter), python2.7(twitter._file_cache), python2.7(twitter.api), python2.7(twitter.direct_message), python2.7(twitter.error), python2.7(twitter.hashtag), python2.7(twitter.list), python2.7(twitter.parse_tweet), python2.7(twitter.status), python2.7(twitter.trend), python2.7(twitter.url), python2.7(twitter.user) Requires: python2.7(rfc822), python2.7(requests), python2.7(requests_oauthlib), /usr/lib/python2.7/site-packages, python-modules, python2.7(json) Processing files: python3-module-twitter-2.0-alt2.1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.1379 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-twitter-2.0 + DOCDIR=/usr/src/tmp/python-module-twitter-buildroot/usr/share/doc/python3-module-twitter-2.0 + export DOCDIR + rm -rf /usr/src/tmp/python-module-twitter-buildroot/usr/share/doc/python3-module-twitter-2.0 + /bin/mkdir -p /usr/src/tmp/python-module-twitter-buildroot/usr/share/doc/python3-module-twitter-2.0 + cp -prL AUTHORS.rst README.rst CHANGES COPYING LICENSE NOTICE doc/twitter.html examples/ /usr/src/tmp/python-module-twitter-buildroot/usr/share/doc/python3-module-twitter-2.0 + chmod -R go-w /usr/src/tmp/python-module-twitter-buildroot/usr/share/doc/python3-module-twitter-2.0 + chmod -R a+rX /usr/src/tmp/python-module-twitter-buildroot/usr/share/doc/python3-module-twitter-2.0 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.oiMRY5 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.nHgimS 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-twitter-buildroot/usr/lib/python3/site-packages/twitter/__init__.py: line=27 IGNORE (for REQ=slight and deep=8) module=hashlib /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__init__.py: line=29 IGNORE (for REQ=slight and deep=8) module=md5 /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__init__.py: line=31 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__init__.py: line=32 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__init__.py: line=33 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__init__.py: line=34 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__init__.py: line=35 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__init__.py: line=36 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__init__.py: line=37 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__init__.py: line=38 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__init__.py: line=39 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__init__.py: line=40 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__init__.py: line=41 possible relative import from ., UNIMPLEMENTED python3.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/api.py: skipping time python3.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/api.py: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/api.py: line=193 IGNORE (for REQ=slight and deep=15) module=logging /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/api.py: line=194 IGNORE (for REQ=slight and deep=15) module=http python3.req: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/status.py: skipping time /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/status.py: line=666 IGNORE (for REQ=slight and deep=16) module=twitter /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/status.py: line=690 IGNORE (for REQ=slight and deep=20) module=twitter /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/user.py: line=816 IGNORE (for REQ=slight and deep=16) module=twitter shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/__init__.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/_file_cache.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/api.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/direct_message.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/error.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/hashtag.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/list.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/parse_tweet.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/status.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/trend.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/url.py is not executable shebang.req.files: executable script /usr/src/tmp/python-module-twitter-buildroot/usr/lib/python3/site-packages/twitter/user.py is not executable Provides: python3(twitter), python3.3(twitter), python3(twitter._file_cache), python3(twitter.api), python3(twitter.direct_message), python3(twitter.error), python3(twitter.hashtag), python3(twitter.list), python3(twitter.parse_tweet), python3(twitter.status), python3(twitter.trend), python3(twitter.url), python3(twitter.user), python3.3(twitter._file_cache), python3.3(twitter.api), python3.3(twitter.direct_message), python3.3(twitter.error), python3.3(twitter.hashtag), python3.3(twitter.list), python3.3(twitter.parse_tweet), python3.3(twitter.status), python3.3(twitter.trend), python3.3(twitter.url), python3.3(twitter.user) Requires: python3(rfc822py3) < 0, python3(requests) < 0, python3(requests_oauthlib) < 0, /usr/lib/python3/site-packages, python3(base64) < 0, python3(calendar) < 0, python3(datetime) < 0, python3(gzip) < 0, python3(hashlib) < 0, python3(io) < 0, python3(json) < 0, python3(os) < 0, python3(re) < 0, python3(tempfile) < 0, python3(textwrap) < 0, python3(types) < 0, python3(urllib) < 0 Wrote: /usr/src/RPM/RPMS/noarch/python-module-twitter-2.0-alt2.1.noarch.rpm Wrote: /usr/src/RPM/RPMS/noarch/python3-module-twitter-2.0-alt2.1.noarch.rpm 11.93user 0.83system 0:18.17elapsed 70%CPU (0avgtext+0avgdata 53420maxresident)k 0inputs+0outputs (0major+252720minor)pagefaults 0swaps 17.58user 3.66system 0:27.40elapsed 77%CPU (0avgtext+0avgdata 121840maxresident)k 0inputs+0outputs (0major+504290minor)pagefaults 0swaps --- python3-module-twitter-2.0-alt2.1.noarch.rpm.repo 2016-03-16 16:38:28.000000000 +0000 +++ python3-module-twitter-2.0-alt2.1.noarch.rpm.hasher 2019-04-14 01:27:19.312642846 +0000 @@ -1,7 +1,7 @@ -/usr/lib/python3/site-packages/python_twitter-2.0-py3.3.egg-info 40755 -/usr/lib/python3/site-packages/python_twitter-2.0-py3.3.egg-info/PKG-INFO 100644 -/usr/lib/python3/site-packages/python_twitter-2.0-py3.3.egg-info/SOURCES.txt 100644 -/usr/lib/python3/site-packages/python_twitter-2.0-py3.3.egg-info/dependency_links.txt 100644 -/usr/lib/python3/site-packages/python_twitter-2.0-py3.3.egg-info/requires.txt 100644 -/usr/lib/python3/site-packages/python_twitter-2.0-py3.3.egg-info/top_level.txt 100644 +/usr/lib/python3/site-packages/python_twitter-2.0-py3.5.egg-info 40755 +/usr/lib/python3/site-packages/python_twitter-2.0-py3.5.egg-info/PKG-INFO 100644 +/usr/lib/python3/site-packages/python_twitter-2.0-py3.5.egg-info/SOURCES.txt 100644 +/usr/lib/python3/site-packages/python_twitter-2.0-py3.5.egg-info/dependency_links.txt 100644 +/usr/lib/python3/site-packages/python_twitter-2.0-py3.5.egg-info/requires.txt 100644 +/usr/lib/python3/site-packages/python_twitter-2.0-py3.5.egg-info/top_level.txt 100644 /usr/lib/python3/site-packages/twitter 40755 @@ -9,24 +9,38 @@ /usr/lib/python3/site-packages/twitter/__pycache__ 40755 -/usr/lib/python3/site-packages/twitter/__pycache__/_file_cache.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/twitter/__pycache__/_file_cache.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/twitter/__pycache__/api.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/twitter/__pycache__/api.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/twitter/__pycache__/direct_message.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/twitter/__pycache__/direct_message.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/twitter/__pycache__/error.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/twitter/__pycache__/error.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/twitter/__pycache__/hashtag.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/twitter/__pycache__/hashtag.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/twitter/__pycache__/list.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/twitter/__pycache__/list.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/twitter/__pycache__/parse_tweet.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/twitter/__pycache__/parse_tweet.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/twitter/__pycache__/status.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/twitter/__pycache__/status.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/twitter/__pycache__/trend.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/twitter/__pycache__/trend.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/twitter/__pycache__/url.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/twitter/__pycache__/url.cpython-33.pyo 100644 -/usr/lib/python3/site-packages/twitter/__pycache__/user.cpython-33.pyc 100644 -/usr/lib/python3/site-packages/twitter/__pycache__/user.cpython-33.pyo 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/__init__.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/__init__.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/__init__.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/_file_cache.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/_file_cache.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/_file_cache.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/api.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/api.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/api.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/direct_message.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/direct_message.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/direct_message.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/error.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/error.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/error.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/hashtag.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/hashtag.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/hashtag.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/list.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/list.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/list.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/parse_tweet.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/parse_tweet.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/parse_tweet.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/status.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/status.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/status.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/trend.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/trend.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/trend.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/url.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/url.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/url.cpython-35.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/user.cpython-35.opt-1.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/user.cpython-35.opt-2.pyc 100644 +/usr/lib/python3/site-packages/twitter/__pycache__/user.cpython-35.pyc 100644 /usr/lib/python3/site-packages/twitter/_file_cache.py 100644 @@ -54,6 +68,19 @@ /usr/share/doc/python3-module-twitter-2.0/twitter.html 100644 -Requires: python3.3(rfc822py3) -Requires: python3.3(requests) -Requires: python3.3(requests_oauthlib) +Requires: python3(rfc822py3) < 0 +Requires: python3(requests) < 0 +Requires: python3(requests_oauthlib) < 0 Requires: /usr/lib/python3/site-packages +Requires: python3(base64) < 0 +Requires: python3(calendar) < 0 +Requires: python3(datetime) < 0 +Requires: python3(gzip) < 0 +Requires: python3(hashlib) < 0 +Requires: python3(io) < 0 +Requires: python3(json) < 0 +Requires: python3(os) < 0 +Requires: python3(re) < 0 +Requires: python3(tempfile) < 0 +Requires: python3(textwrap) < 0 +Requires: python3(types) < 0 +Requires: python3(urllib) < 0 Requires: rpmlib(PayloadIsLzma) @@ -61,2 +88,24 @@ Provides: python3.3(twitter) +Provides: python3(twitter._file_cache) +Provides: python3(twitter.api) +Provides: python3(twitter.direct_message) +Provides: python3(twitter.error) +Provides: python3(twitter.hashtag) +Provides: python3(twitter.list) +Provides: python3(twitter.parse_tweet) +Provides: python3(twitter.status) +Provides: python3(twitter.trend) +Provides: python3(twitter.url) +Provides: python3(twitter.user) +Provides: python3.3(twitter._file_cache) +Provides: python3.3(twitter.api) +Provides: python3.3(twitter.direct_message) +Provides: python3.3(twitter.error) +Provides: python3.3(twitter.hashtag) +Provides: python3.3(twitter.list) +Provides: python3.3(twitter.parse_tweet) +Provides: python3.3(twitter.status) +Provides: python3.3(twitter.trend) +Provides: python3.3(twitter.url) +Provides: python3.3(twitter.user) Provides: python3-module-twitter = 2.0-alt2.1