Skip to content

Commit 1084a6b

Browse files
committed
bpython: Make linters happy (materials)
1 parent 81093b0 commit 1084a6b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

bpython/adder-v1.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
x = int(input("x = "))
33
y = int(input("y = "))
44
z = x / y
5-
except (ValueError, ZeroDivisionError) as ex:
5+
except (ValueError, ZeroDivisionError) as ex: # noqa: F841
66
import bpython
7+
78
bpython.embed(locals(), banner="Post-Mortem Debugging:")
89
else:
910
print(z)

bpython/adder-v2.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
try:
22
x = int(input("x = "))
33
y = int(input("y = "))
4-
import bpdb; bpdb.set_trace()
4+
import bpdb
5+
6+
bpdb.set_trace()
57
z = x / y
6-
except (ValueError, ZeroDivisionError) as ex:
8+
except (ValueError, ZeroDivisionError) as ex: # noqa: F841
79
import bpython
10+
811
bpython.embed(locals(), banner="Post-Mortem Debugging:")
912
else:
1013
print(z)

0 commit comments

Comments
 (0)