Skip to content

Commit bd0bee1

Browse files
committed
flake8 fixes
1 parent 425c308 commit bd0bee1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/behaving/mail/mock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def getUniqueFilename(recipient_dir, ext="tmp"):
3232

3333
class DebuggingServer(smtpd.DebuggingServer):
3434
def __init__(self, localaddr, remoteaddr, log_to_stdout=True):
35-
global output_dir
35+
global output_dir # noqa: F824
3636
self.path = output_dir
3737
self.log_to_stdout = log_to_stdout
3838
smtpd.DebuggingServer.__init__(self, localaddr, remoteaddr)

src/behaving/notifications/gcm/mock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def do_POST(self):
3535
self.send_error(400, "No recipients")
3636
return
3737

38-
global output_dir
38+
global output_dir # noqa: F824
3939
for recipient in recipients:
4040
recipient = str(recipient)
4141
recipient_dir = os.path.join(output_dir, recipient)

src/behaving/sms/mock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def do_POST(self):
4747
self.send_header("Content-type:", "text/json")
4848
self.end_headers()
4949
self.wfile.write(b'{"messages":[{"status":"0"}]}')
50-
global output_dir
50+
global output_dir # noqa: F824
5151
phone_dir = os.path.join(output_dir, to)
5252
if not os.path.exists(phone_dir):
5353
try:

0 commit comments

Comments
 (0)