X Tutup
Skip to content

Commit 095eac1

Browse files
committed
lint fixes
1 parent 689cca6 commit 095eac1

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

twitter/api.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,12 @@
2626
import time
2727
import base64
2828
import re
29-
import datetime
30-
from calendar import timegm
3129
import requests
3230
from requests_oauthlib import OAuth1
3331
import io
3432
import warnings
3533
from uuid import uuid4
3634

37-
from past.utils import old_div
38-
3935
try:
4036
# python 3
4137
from urllib.parse import urlparse, urlunparse, urlencode
@@ -142,7 +138,7 @@ def __init__(self,
142138
base_url=None,
143139
stream_url=None,
144140
upload_url=None,
145-
chunk_size=1024*1024,
141+
chunk_size=1024 * 1024,
146142
use_gzip_compression=False,
147143
debugHTTP=False,
148144
timeout=None,

twitter/ratelimit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
try:
44
from urllib.parse import urlparse
55
except ImportError:
6-
from urlparse import urlparse, urlunparse
6+
from urlparse import urlparse
77

88
from twitter.twitter_utils import enf_type
99

0 commit comments

Comments
 (0)
X Tutup