Skip to content

Commit 4be0907

Browse files
committed
PEP-8 compliance
1 parent 590f750 commit 4be0907

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pushbullet.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
# utility methods
1010
# ===============
1111

12+
1213
def is_url(string):
1314
if " " in string:
1415
return False
@@ -19,6 +20,7 @@ def is_url(string):
1920
else:
2021
return False
2122

23+
2224
def nickname_for(device):
2325
extras = device[u"extras"]
2426
if u"nickname" in extras:
@@ -128,7 +130,7 @@ def nickname_for(device):
128130
data["body"] = argument
129131

130132
r = None
131-
if file == None:
133+
if file is None:
132134
r = requests.post(
133135
PUSH_URL,
134136
auth=(api_key, ""),
@@ -139,7 +141,7 @@ def nickname_for(device):
139141
PUSH_URL,
140142
auth=(api_key, ""),
141143
data=data,
142-
files={ "file": open(file, "rb") }
144+
files={"file": open(file, "rb")}
143145
)
144146

145147
if r.status_code == 200:

0 commit comments

Comments
 (0)