Skip to main content

format the examples

ID
6e0d7fc
date
2021-10-25 07:32:40+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
3f2831f
message
format the examples
changed files
2 files, 3 additions, 5 deletions

Changed files

examples/downloading.py (835) → examples/downloading.py (834)

diff --git a/examples/downloading.py b/examples/downloading.py
index ba9f94b..1c0c334 100755
--- a/examples/downloading.py
+++ b/examples/downloading.py
@@ -23,9 +23,8 @@ def save_http_cat(status_code):
     return path
 
 
-if __name__ == '__main__':
+if __name__ == "__main__":
     codes = [200, 201, 202, 301, 302, 400, 405, 410, 418, 420, 451, 500]
 
     for (input, output) in concurrently(save_http_cat, inputs=codes):
         print(input, output)
-

examples/sleepy_multiply.py (714) → examples/sleepy_multiply.py (713)

diff --git a/examples/sleepy_multiply.py b/examples/sleepy_multiply.py
index b880dc0..ad52faa 100755
--- a/examples/sleepy_multiply.py
+++ b/examples/sleepy_multiply.py
@@ -18,7 +18,7 @@ def sleepy_multiply(x, y):
     return x * y
 
 
-if __name__ == '__main__':
+if __name__ == "__main__":
     inputs = [
         (1, 2),
         (2, 3),
@@ -31,5 +31,4 @@ if __name__ == '__main__':
     ]
 
     for ((x, y), output) in concurrently(lambda x: sleepy_multiply(*x), inputs=inputs):
-        print(x, '*', y, '=', output)
-
+        print(x, "*", y, "=", output)