Skip to content

Commit 672b704

Browse files
fix unexpected import
1 parent 40336ce commit 672b704

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

codespell_lib/_spellchecker.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
Copyright (C) 2011 ProFUSION embedded systems
1717
"""
1818

19-
import sys
20-
2119
# Pass all misspellings through this translation table to generate
2220
# alternative misspellings and fixes.
2321
alt_chars = (("'", "’"),) # noqa: RUF001
@@ -58,10 +56,7 @@ def build_dict(
5856
for line in f:
5957
left, pound, _ = line.partition("#")
6058
if pound and left and left[-1] not in (" ", "\t"):
61-
print(
62-
f"WARNING: {filename}: missing spaces before #: {line.rstrip()!r}",
63-
file=sys.stderr,
64-
)
59+
print(f"WARNING: {filename}: missing spaces before #: {line.rstrip()!r}")
6560
continue
6661

6762
line = left.strip()

0 commit comments

Comments
 (0)