Pep8fix

This repo needs some pep8 fixes. Below, you can see the before and after flake8 tweetpy outputs.Yes, it still needs some fixes but also it needs a real refactor for that ones.

tweepy/auth.py:1:1: F401 'Request' imported but unused
tweepy/auth.py:1:1: F401 'urlopen' imported but unused
tweepy/auth.py:2:1: F401 'urllib' imported but unused
tweepy/auth.py:3:1: F401 'base64' imported but unused
tweepy/auth.py:4:1: F401 'json' imported but unused
tweepy/auth.py:14:1: E302 expected 2 blank lines, found 1
tweepy/auth.py:43:80: E501 line too long (107 > 79 characters)
tweepy/auth.py:49:80: E501 line too long (162 > 79 characters)
tweepy/auth.py:51:45: E251 unexpected spaces around keyword / parameter equals
tweepy/auth.py:51:47: E251 unexpected spaces around keyword / parameter equals
tweepy/auth.py:64:56: E251 unexpected spaces around keyword / parameter equals
tweepy/auth.py:64:58: E251 unexpected spaces around keyword / parameter equals
tweepy/auth.py:64:77: E251 unexpected spaces around keyword / parameter equals
tweepy/auth.py:64:79: E251 unexpected spaces around keyword / parameter equals
tweepy/auth.py:64:80: E501 line too long (85 > 79 characters)
tweepy/auth.py:71:80: E501 line too long (81 > 79 characters)
tweepy/auth.py:72:80: E501 line too long (84 > 79 characters)
tweepy/auth.py:76:80: E501 line too long (81 > 79 characters)
tweepy/auth.py:81:40: E251 unexpected spaces around keyword / parameter equals
tweepy/auth.py:81:42: E251 unexpected spaces around keyword / parameter equals
tweepy/auth.py:88:80: E501 line too long (258 > 79 characters)
tweepy/auth.py:105:80: E501 line too long (81 > 79 characters)
tweepy/auth.py:107:17: E128 continuation line under-indented for visual indent
tweepy/auth.py:108:17: E128 continuation line under-indented for visual indent
tweepy/auth.py:112:80: E501 line too long (96 > 79 characters)
tweepy/auth.py:123:80: E501 line too long (80 > 79 characters)
tweepy/auth.py:130:5: E301 expected 1 blank line, found 0
tweepy/auth.py:133:1: W293 blank line contains whitespace
tweepy/auth.py:146:80: E501 line too long (106 > 79 characters)
tweepy/auth.py:147:17: E128 continuation line under-indented for visual indent
tweepy/auth.py:154:9: E303 too many blank lines (2)
tweepy/auth.py:157:5: E303 too many blank lines (2)
tweepy/auth.py:161:5: E303 too many blank lines (2)
tweepy/cursor.py:8:1: E302 expected 2 blank lines, found 1
tweepy/cursor.py:36:1: E302 expected 2 blank lines, found 1
tweepy/cursor.py:53:1: E302 expected 2 blank lines, found 1
tweepy/cursor.py:63:80: E501 line too long (83 > 79 characters)
tweepy/cursor.py:66:17: E126 continuation line over-indented for hanging indent
tweepy/cursor.py:78:17: E126 continuation line over-indented for hanging indent
tweepy/cursor.py:83:1: E302 expected 2 blank lines, found 1
tweepy/cursor.py:99:80: E501 line too long (96 > 79 characters)
tweepy/cursor.py:110:80: E501 line too long (86 > 79 characters)
tweepy/cursor.py:111:1: W293 blank line contains whitespace
tweepy/cursor.py:120:1: W293 blank line contains whitespace
tweepy/cursor.py:125:35: W291 trailing whitespace
tweepy/cursor.py:145:1: E302 expected 2 blank lines, found 1
tweepy/cursor.py:167:1: E302 expected 2 blank lines, found 1
tweepy/cursor.py:179:80: E501 line too long (86 > 79 characters)
tweepy/cursor.py:199:1: W391 blank line at end of file
tweepy/parsers.py:54:45: W601 .has_key() is deprecated, use 'in'
tweepy/parsers.py:55:80: E501 line too long (107 > 79 characters)
tweepy/parsers.py:63:17: W601 .has_key() is deprecated, use 'in'
tweepy/parsers.py:77:43: E701 multiple statements on one line (colon)
tweepy/parsers.py:80:80: E501 line too long (88 > 79 characters)
tweepy/parsers.py:97:1: W391 blank line at end of file
tweepy/utils.py:6:1: F401 'time' imported but unused
tweepy/utils.py:7:1: F401 're' imported but unused
tweepy/utils.py:8:1: F401 'locale' imported but unused
tweepy/utils.py:39:1: E303 too many blank lines (3)
tweepy/utils.py:47:80: E501 line too long (80 > 79 characters)
tweepy/utils.py:53:1: E302 expected 2 blank lines, found 1
tweepy/utils.py:57:1: E302 expected 2 blank lines, found 1
tweepy/utils.py:58:71: E502 the backslash is redundant between brackets
tweepy/utils.py:59:9: E128 continuation line under-indented for visual indent
tweepy/binder.py:45:80: E501 line too long (94 > 79 characters)
tweepy/binder.py:46:80: E501 line too long (115 > 79 characters)
tweepy/binder.py:81:80: E501 line too long (91 > 79 characters)
tweepy/binder.py:89:80: E501 line too long (86 > 79 characters)
tweepy/binder.py:97:80: E501 line too long (90 > 79 characters)
tweepy/binder.py:104:80: E501 line too long (97 > 79 characters)
tweepy/binder.py:139:33: E126 continuation line over-indented for hanging indent
tweepy/binder.py:139:80: E501 line too long (96 > 79 characters)
tweepy/binder.py:143:80: E501 line too long (88 > 79 characters)
tweepy/binder.py:157:80: E501 line too long (94 > 79 characters)
tweepy/binder.py:158:80: E501 line too long (82 > 79 characters)
tweepy/binder.py:170:80: E501 line too long (130 > 79 characters)
tweepy/binder.py:176:80: E501 line too long (102 > 79 characters)
tweepy/binder.py:179:80: E501 line too long (85 > 79 characters)
tweepy/binder.py:192:80: E501 line too long (93 > 79 characters)
tweepy/binder.py:199:80: E501 line too long (85 > 79 characters)
tweepy/binder.py:215:21: E127 continuation line over-indented for visual indent
tweepy/error.py:5:1: E302 expected 2 blank lines, found 1
tweepy/error.py:15:1: W391 blank line at end of file
tweepy/models.py:5:1: F401 'TweepError' imported but unused
tweepy/models.py:30:41: W291 trailing whitespace
tweepy/models.py:35:1: E302 expected 2 blank lines, found 1
tweepy/models.py:56:80: E501 line too long (80 > 79 characters)
tweepy/models.py:64:47: E231 missing whitespace after ','
tweepy/models.py:76:80: E501 line too long (87 > 79 characters)
tweepy/models.py:164:80: E501 line too long (81 > 79 characters)
tweepy/models.py:167:80: E501 line too long (83 > 79 characters)
tweepy/models.py:251:80: E501 line too long (85 > 79 characters)
tweepy/models.py:263:14: E231 missing whitespace after ','
tweepy/models.py:288:80: E501 line too long (81 > 79 characters)
tweepy/models.py:297:80: E501 line too long (80 > 79 characters)
tweepy/models.py:309:80: E501 line too long (84 > 79 characters)
tweepy/models.py:312:80: E501 line too long (81 > 79 characters)
tweepy/models.py:314:1: E302 expected 2 blank lines, found 1
tweepy/models.py:318:14: E231 missing whitespace after ','
tweepy/models.py:327:1: E302 expected 2 blank lines, found 1
tweepy/models.py:331:14: E231 missing whitespace after ','
tweepy/models.py:339:1: E302 expected 2 blank lines, found 1
tweepy/models.py:420:1: E302 expected 2 blank lines, found 1
tweepy/models.py:442:1: W391 blank line at end of file
tweepy/__init__.py:12:1: F401 'Category' imported but unused
tweepy/__init__.py:12:1: F401 'DirectMessage' imported but unused
tweepy/__init__.py:12:1: F401 'Friendship' imported but unused
tweepy/__init__.py:12:1: F401 'ModelFactory' imported but unused
tweepy/__init__.py:12:1: F401 'SavedSearch' imported but unused
tweepy/__init__.py:12:1: F401 'SearchResults' imported but unused
tweepy/__init__.py:12:1: F401 'Status' imported but unused
tweepy/__init__.py:12:1: F401 'User' imported but unused
tweepy/__init__.py:12:80: E501 line too long (117 > 79 characters)
tweepy/__init__.py:13:1: F401 'TweepError' imported but unused
tweepy/__init__.py:15:1: F401 'Cache' imported but unused
tweepy/__init__.py:15:1: F401 'FileCache' imported but unused
tweepy/__init__.py:15:1: F401 'MemoryCache' imported but unused
tweepy/__init__.py:16:1: F401 'AppAuthHandler' imported but unused
tweepy/__init__.py:16:1: F401 'OAuthHandler' imported but unused
tweepy/__init__.py:17:1: F401 'Stream' imported but unused
tweepy/__init__.py:17:1: F401 'StreamListener' imported but unused
tweepy/__init__.py:18:1: F401 'Cursor' imported but unused
tweepy/__init__.py:23:1: E302 expected 2 blank lines, found 1
tweepy/__init__.py:27:1: W391 blank line at end of file
tweepy/cache.py:270:1: E302 expected 2 blank lines, found 1
tweepy/cache.py:291:80: E501 line too long (84 > 79 characters)
tweepy/cache.py:307:1: E302 expected 2 blank lines, found 1
tweepy/cache.py:310:58: E251 unexpected spaces around keyword / parameter equals
tweepy/cache.py:310:60: E251 unexpected spaces around keyword / parameter equals
tweepy/cache.py:310:80: E501 line too long (103 > 79 characters)
tweepy/cache.py:310:90: E251 unexpected spaces around keyword / parameter equals
tweepy/cache.py:310:92: E251 unexpected spaces around keyword / parameter equals
tweepy/cache.py:322:80: E501 line too long (101 > 79 characters)
tweepy/cache.py:359:80: E501 line too long (83 > 79 characters)
tweepy/streaming.py:131:80: E501 line too long (97 > 79 characters)
tweepy/streaming.py:156:80: E501 line too long (81 > 79 characters)
tweepy/streaming.py:162:25: E128 continuation line under-indented for visual indent
tweepy/streaming.py:168:80: E501 line too long (84 > 79 characters)
tweepy/streaming.py:170:80: E501 line too long (83 > 79 characters)
tweepy/streaming.py:178:80: E501 line too long (99 > 79 characters)
tweepy/streaming.py:180:80: E501 line too long (104 > 79 characters)
tweepy/streaming.py:183:47: E712 comparison to False should be 'if cond is False:' or 'if not cond:'
tweepy/streaming.py:188:80: E501 line too long (80 > 79 characters)
tweepy/streaming.py:214:80: E501 line too long (83 > 79 characters)
tweepy/streaming.py:234:49: E201 whitespace after '('
tweepy/streaming.py:234:71: E202 whitespace before ')'
tweepy/streaming.py:254:13: E128 continuation line under-indented for visual indent
tweepy/streaming.py:259:18: E225 missing whitespace around operator
tweepy/streaming.py:270:80: E501 line too long (88 > 79 characters)
tweepy/streaming.py:305:80: E501 line too long (82 > 79 characters)
tweepy/streaming.py:319:80: E501 line too long (88 > 79 characters)
tweepy/streaming.py:329:80: E501 line too long (97 > 79 characters)
tweepy/streaming.py:349:1: W391 blank line at end of file
tweepy/api.py:7:1: F401 'urllib' imported but unused
tweepy/api.py:27:80: E501 line too long (82 > 79 characters)
tweepy/api.py:28:80: E501 line too long (82 > 79 characters)
tweepy/api.py:35:80: E501 line too long (96 > 79 characters)
tweepy/api.py:36:80: E501 line too long (80 > 79 characters)
tweepy/api.py:38:80: E501 line too long (93 > 79 characters)
tweepy/api.py:39:80: E501 line too long (115 > 79 characters)
tweepy/api.py:68:80: E501 line too long (96 > 79 characters)
tweepy/api.py:86:80: E501 line too long (85 > 79 characters)
tweepy/api.py:118:80: E501 line too long (83 > 79 characters)
tweepy/api.py:131:80: E501 line too long (89 > 79 characters)
tweepy/api.py:144:80: E501 line too long (80 > 79 characters)
tweepy/api.py:168:5: E303 too many blank lines (2)
tweepy/api.py:171:80: E501 line too long (120 > 79 characters)
tweepy/api.py:178:80: E501 line too long (122 > 79 characters)
tweepy/api.py:183:80: E501 line too long (96 > 79 characters)
tweepy/api.py:185:80: E501 line too long (87 > 79 characters)
tweepy/api.py:194:80: E501 line too long (87 > 79 characters)
tweepy/api.py:243:4: W291 trailing whitespace
tweepy/api.py:268:80: E501 line too long (106 > 79 characters)
tweepy/api.py:274:80: E501 line too long (108 > 79 characters)
tweepy/api.py:279:80: E501 line too long (83 > 79 characters)
tweepy/api.py:312:80: E501 line too long (81 > 79 characters)
tweepy/api.py:338:80: E501 line too long (89 > 79 characters)
tweepy/api.py:404:80: E501 line too long (83 > 79 characters)
tweepy/api.py:459:80: E501 line too long (89 > 79 characters)
tweepy/api.py:537:80: E501 line too long (116 > 79 characters)
tweepy/api.py:564:80: E501 line too long (82 > 79 characters)
tweepy/api.py:577:80: E501 line too long (88 > 79 characters)
tweepy/api.py:591:80: E501 line too long (87 > 79 characters)
tweepy/api.py:592:80: E501 line too long (161 > 79 characters)
tweepy/api.py:606:80: E501 line too long (98 > 79 characters)
tweepy/api.py:618:80: E501 line too long (109 > 79 characters)
tweepy/api.py:631:80: E501 line too long (99 > 79 characters)
tweepy/api.py:633:80: E501 line too long (85 > 79 characters)
tweepy/api.py:644:80: E501 line too long (80 > 79 characters)
tweepy/api.py:659:80: E501 line too long (91 > 79 characters)
tweepy/api.py:665:80: E501 line too long (93 > 79 characters)
tweepy/api.py:763:80: E501 line too long (94 > 79 characters)
tweepy/api.py:773:80: E501 line too long (82 > 79 characters)
tweepy/api.py:800:80: E501 line too long (80 > 79 characters)
tweepy/api.py:843:80: E501 line too long (108 > 79 characters)
tweepy/api.py:850:80: E501 line too long (110 > 79 characters)
tweepy/api.py:870:80: E501 line too long (86 > 79 characters)
tweepy/api.py:876:80: E501 line too long (88 > 79 characters)
tweepy/api.py:896:80: E501 line too long (122 > 79 characters)
tweepy/api.py:902:80: E501 line too long (124 > 79 characters)
tweepy/api.py:920:80: E501 line too long (103 > 79 characters)
tweepy/api.py:927:80: E501 line too long (105 > 79 characters)
tweepy/api.py:934:80: E501 line too long (103 > 79 characters)
tweepy/api.py:941:80: E501 line too long (105 > 79 characters)
tweepy/api.py:955:80: E501 line too long (82 > 79 characters)
tweepy/api.py:956:80: E501 line too long (102 > 79 characters)
tweepy/api.py:963:80: E501 line too long (104 > 79 characters)
tweepy/api.py:968:5: E303 too many blank lines (2)
tweepy/api.py:969:80: E501 line too long (81 > 79 characters)
tweepy/api.py:978:80: E501 line too long (83 > 79 characters)
tweepy/api.py:979:80: E501 line too long (102 > 79 characters)
tweepy/api.py:986:80: E501 line too long (104 > 79 characters)
tweepy/api.py:993:80: E501 line too long (86 > 79 characters)
tweepy/api.py:999:80: E501 line too long (88 > 79 characters)
tweepy/api.py:1005:80: E501 line too long (102 > 79 characters)
tweepy/api.py:1011:80: E501 line too long (104 > 79 characters)
tweepy/api.py:1016:80: E501 line too long (82 > 79 characters)
tweepy/api.py:1030:80: E501 line too long (83 > 79 characters)
tweepy/api.py:1045:80: E501 line too long (86 > 79 characters)
tweepy/api.py:1051:80: E501 line too long (88 > 79 characters)
tweepy/api.py:1057:80: E501 line too long (102 > 79 characters)
tweepy/api.py:1063:80: E501 line too long (104 > 79 characters)
tweepy/api.py:1068:80: E501 line too long (85 > 79 characters)
tweepy/api.py:1102:80: E501 line too long (168 > 79 characters)
tweepy/api.py:1108:80: E501 line too long (115 > 79 characters)
tweepy/api.py:1139:80: E501 line too long (81 > 79 characters)
tweepy/api.py:1145:80: E501 line too long (83 > 79 characters)
tweepy/api.py:1163:80: E501 line too long (116 > 79 characters)
tweepy/api.py:1169:80: E501 line too long (118 > 79 characters)
tweepy/api.py:1186:80: E501 line too long (83 > 79 characters)
tweepy/api.py:1196:80: E501 line too long (87 > 79 characters)
tweepy/api.py:1213:80: E501 line too long (81 > 79 characters)
tweepy/api.py:1241:80: E501 line too long (104 > 79 characters)

After this PR;

tweepy/auth.py:81:80: E501 line too long (81 > 79 characters)
tweepy/auth.py:95:80: E501 line too long (92 > 79 characters)
tweepy/auth.py:96:80: E501 line too long (102 > 79 characters)
tweepy/auth.py:97:80: E501 line too long (85 > 79 characters)
tweepy/auth.py:124:80: E501 line too long (94 > 79 characters)
tweepy/cursor.py:66:80: E501 line too long (83 > 79 characters)
tweepy/cursor.py:80:80: E501 line too long (87 > 79 characters)
tweepy/cursor.py:103:80: E501 line too long (96 > 79 characters)
tweepy/cursor.py:114:80: E501 line too long (80 > 79 characters)
tweepy/cursor.py:188:80: E501 line too long (86 > 79 characters)
tweepy/parsers.py:54:46: W601 .has_key() is deprecated, use 'in'
tweepy/parsers.py:65:17: W601 .has_key() is deprecated, use 'in'
tweepy/binder.py:50:80: E501 line too long (84 > 79 characters)
tweepy/binder.py:51:80: E501 line too long (86 > 79 characters)
tweepy/binder.py:86:80: E501 line too long (91 > 79 characters)
tweepy/binder.py:94:80: E501 line too long (86 > 79 characters)
tweepy/binder.py:102:80: E501 line too long (90 > 79 characters)
tweepy/binder.py:109:80: E501 line too long (97 > 79 characters)
tweepy/binder.py:147:80: E501 line too long (80 > 79 characters)
tweepy/binder.py:150:80: E501 line too long (100 > 79 characters)
tweepy/binder.py:151:80: E501 line too long (89 > 79 characters)
tweepy/binder.py:180:80: E501 line too long (86 > 79 characters)
tweepy/binder.py:187:80: E501 line too long (102 > 79 characters)
tweepy/binder.py:190:80: E501 line too long (85 > 79 characters)
tweepy/binder.py:203:80: E501 line too long (93 > 79 characters)
tweepy/binder.py:210:80: E501 line too long (85 > 79 characters)
tweepy/models.py:79:80: E501 line too long (87 > 79 characters)
tweepy/models.py:262:80: E501 line too long (85 > 79 characters)
tweepy/streaming.py:198:80: E501 line too long (80 > 79 characters)
tweepy/streaming.py:287:80: E501 line too long (88 > 79 characters)
tweepy/streaming.py:322:80: E501 line too long (82 > 79 characters)
tweepy/streaming.py:336:80: E501 line too long (88 > 79 characters)
tweepy/api.py:26:80: E501 line too long (82 > 79 characters)
tweepy/api.py:27:80: E501 line too long (82 > 79 characters)
tweepy/api.py:34:80: E501 line too long (96 > 79 characters)
tweepy/api.py:35:80: E501 line too long (80 > 79 characters)
tweepy/api.py:37:80: E501 line too long (93 > 79 characters)
tweepy/api.py:38:80: E501 line too long (115 > 79 characters)
tweepy/api.py:118:80: E501 line too long (83 > 79 characters)
tweepy/api.py:131:80: E501 line too long (89 > 79 characters)
tweepy/api.py:144:80: E501 line too long (80 > 79 characters)
tweepy/api.py:170:80: E501 line too long (120 > 79 characters)
tweepy/api.py:177:80: E501 line too long (122 > 79 characters)
tweepy/api.py:182:80: E501 line too long (96 > 79 characters)
tweepy/api.py:184:80: E501 line too long (87 > 79 characters)
tweepy/api.py:193:80: E501 line too long (87 > 79 characters)
tweepy/api.py:267:80: E501 line too long (106 > 79 characters)
tweepy/api.py:273:80: E501 line too long (108 > 79 characters)
tweepy/api.py:278:80: E501 line too long (83 > 79 characters)
tweepy/api.py:311:80: E501 line too long (81 > 79 characters)
tweepy/api.py:337:80: E501 line too long (89 > 79 characters)
tweepy/api.py:403:80: E501 line too long (83 > 79 characters)
tweepy/api.py:458:80: E501 line too long (89 > 79 characters)
tweepy/api.py:536:80: E501 line too long (116 > 79 characters)
tweepy/api.py:563:80: E501 line too long (82 > 79 characters)
tweepy/api.py:576:80: E501 line too long (88 > 79 characters)
tweepy/api.py:590:80: E501 line too long (87 > 79 characters)
tweepy/api.py:607:80: E501 line too long (98 > 79 characters)
tweepy/api.py:619:80: E501 line too long (109 > 79 characters)
tweepy/api.py:632:80: E501 line too long (99 > 79 characters)
tweepy/api.py:634:80: E501 line too long (85 > 79 characters)
tweepy/api.py:645:80: E501 line too long (80 > 79 characters)
tweepy/api.py:660:80: E501 line too long (91 > 79 characters)
tweepy/api.py:666:80: E501 line too long (93 > 79 characters)
tweepy/api.py:764:80: E501 line too long (94 > 79 characters)
tweepy/api.py:774:80: E501 line too long (82 > 79 characters)
tweepy/api.py:801:80: E501 line too long (80 > 79 characters)
tweepy/api.py:844:80: E501 line too long (108 > 79 characters)
tweepy/api.py:851:80: E501 line too long (110 > 79 characters)
tweepy/api.py:871:80: E501 line too long (86 > 79 characters)
tweepy/api.py:877:80: E501 line too long (88 > 79 characters)
tweepy/api.py:963:80: E501 line too long (82 > 79 characters)
tweepy/api.py:978:80: E501 line too long (81 > 79 characters)
tweepy/api.py:987:80: E501 line too long (83 > 79 characters)
tweepy/api.py:1031:80: E501 line too long (82 > 79 characters)
tweepy/api.py:1047:80: E501 line too long (83 > 79 characters)
tweepy/api.py:1091:80: E501 line too long (85 > 79 characters)
tweepy/api.py:1166:80: E501 line too long (81 > 79 characters)
tweepy/api.py:1216:80: E501 line too long (83 > 79 characters)
tweepy/api.py:1226:80: E501 line too long (87 > 79 characters)
tweepy/api.py:1243:80: E501 line too long (81 > 79 characters)
tweepy/api.py:1271:80: E501 line too long (104 > 79 characters)