athphane / userbot

global statement detected PYL-W0603
Anti-pattern
Major
6 months ago4 years old
Using the global statement
14
15
16def switch():
17    global vulgar_filter18    vulgar_filter = not vulgar_filter
19    return vulgar_filter
20