Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

Commit c26964c

Browse files
committed
pep8 says do a barrel roll
1 parent 3a9f9d8 commit c26964c

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

imgurpython/client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,8 @@ def get_image(self, image_id):
558558
return Image(image)
559559

560560
def upload_from_path(self, path, config=None, anon=True):
561-
if not config: config = dict()
561+
if not config:
562+
config = dict()
562563

563564
fd = open(path, 'rb')
564565
contents = fd.read()
@@ -573,7 +574,8 @@ def upload_from_path(self, path, config=None, anon=True):
573574
return self.make_request('POST', 'upload', data, anon)
574575

575576
def upload_from_url(self, url, config=None, anon=True):
576-
if not config: config = dict()
577+
if not config:
578+
config = dict()
577579

578580
data = {
579581
'image': url,

imgurpython/helpers/format.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ def build_notifications(response):
7171

7272
def build_notification(item):
7373
notification = Notification(
74-
item['id'],
75-
item['account_id'],
76-
item['viewed'],
77-
item['content']
78-
)
74+
item['id'],
75+
item['account_id'],
76+
item['viewed'],
77+
item['content']
78+
)
7979

8080
if 'comment' in notification.content:
8181
notification.content = format_comment_tree(item['content'])

0 commit comments

Comments
 (0)