Skip to content

Commit 71abc15

Browse files
committed
clean up lints (and disable the bare-except one)
1 parent 26e3d3c commit 71abc15

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
lint:
2-
flake8 --ignore=E131,E301,E302,E731,W503,E701,E704 --max-line-length=100 effect/
2+
flake8 --ignore=E131,E301,E302,E731,W503,E701,E704,E722 --max-line-length=100 effect/
33

44
build-dist:
55
rm -rf dist

effect/fold.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ def sequence(effects):
7070
"""
7171
# Could be: folder = lambda acc, el: acc + [el]
7272
# But, for peformance:
73-
l = []
73+
result = []
7474

7575
def folder(acc, el):
76-
l.append(el)
77-
return l
78-
return fold_effect(folder, l, effects)
76+
result.append(el)
77+
return result
78+
return fold_effect(folder, result, effects)

0 commit comments

Comments
 (0)