mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-23 07:29:02 -08:00
Clean Code: Python
Fix issues found by flake8-bugbear: * Unused loop variables * assert statements in non-test code * mixing test code with production code * mark one excessive test which takes ~10min to run as 'slow'
This commit is contained in:
@@ -109,9 +109,9 @@ def calendar(weekday, leap_year):
|
||||
print(days)
|
||||
print(sep)
|
||||
|
||||
for w in range(1, 7):
|
||||
for _ in range(1, 7):
|
||||
print("\n")
|
||||
for g in range(1, 8):
|
||||
for g in range(1, 8): # noqa
|
||||
d += 1
|
||||
d2 = d - days_count
|
||||
|
||||
|
||||
Reference in New Issue
Block a user