We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e52f05 commit bcda3ffCopy full SHA for bcda3ff
src/no_code/__main__.py
@@ -6,12 +6,14 @@
6
7
def no_code_cmd() -> None:
8
code = Path(sys.argv[1]).read_text(encoding="utf-8") if len(sys.argv) > 1 else sys.stdin.read()
9
- print(no_code(code))
+ sys.stdout.write(no_code(code))
10
+ sys.stdout.flush()
11
12
13
def yes_code_cmd() -> None:
14
code = Path(sys.argv[1]).read_text(encoding="no-code") if len(sys.argv) > 1 else something(sys.stdin.read())
- print(code.removeprefix("# coding: no\n"))
15
+ sys.stdout.write(code.removeprefix("# coding: no\n"))
16
17
18
19
if __name__ == "__main__":
0 commit comments