Commit becbd1ed authored by Lysander Trischler's avatar Lysander Trischler

Simplify NOP with lambda

Thanks Toabi!
parent 8cf6b479
......@@ -223,9 +223,7 @@ if __name__ == "__main__":
process = add_fav
else:
process = upload
def nop(ignore=None):
pass
gen_atom = nop
gen_atom = lambda *args, **kwargs: None # don't generate feeds on local machines
if len(sys.argv) > 1:
for video_id in sys.argv[1:]:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment