Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions demo_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def chained_comparison():

if __name__ == "__main__":
args = ["--disable", "all"]
for i in range(len(args)):
has_truthy = True if args[i] else False
for i, element in enumerate(args):
has_truthy = True if element else False
if has_truthy:
break
5 changes: 3 additions & 2 deletions hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def get_users():
return User.objects.annotate(val=RawSQL(raw, []))



def tar_something():
os.tempnam("dir1")
subprocess.Popen("/bin/chown *", shell=True)
Expand Down Expand Up @@ -122,8 +123,8 @@ def chained_comparison():
f.write("config file.")
f.close()
assert args is not None
for i in range(len(args)):
has_truthy = True if args[i] else False
for i, element in enumerate(args):
has_truthy = True if element else False
assert has_truthy is not None
if has_truthy:
break
Loading