File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import re
44import sys
55import textwrap
6- from typing import Iterable
6+ from collections . abc import Iterable
77
88if sys .version_info >= (3 , 9 ):
99 from importlib .resources import files
Original file line number Diff line number Diff line change 1- import autocommand
1+ import sys
2+
23import inflect
34from more_itertools import always_iterable
45
@@ -29,4 +30,5 @@ def report_newlines(filename):
2930 )
3031
3132
32- autocommand .autocommand (__name__ )(report_newlines )
33+ if __name__ == "__main__" :
34+ report_newlines (* sys .argv [1 :])
Original file line number Diff line number Diff line change 11import sys
22
3- import autocommand
4-
53from jaraco .text import Stripper
64
75
@@ -18,4 +16,5 @@ def strip_prefix():
1816 sys .stdout .writelines (Stripper .strip_prefix (sys .stdin ).lines )
1917
2018
21- autocommand .autocommand (__name__ )(strip_prefix )
19+ if __name__ == "__main__" :
20+ strip_prefix ()
Original file line number Diff line number Diff line change 22
33from . import layouts
44
5- __name__ == '__main__' and layouts ._translate_stream (sys .stdin , layouts .to_dvorak )
5+ if __name__ == '__main__' :
6+ layouts ._translate_stream (sys .stdin , layouts .to_dvorak )
Original file line number Diff line number Diff line change 22
33from . import layouts
44
5- __name__ == '__main__' and layouts ._translate_stream (sys .stdin , layouts .to_qwerty )
5+ if __name__ == '__main__' :
6+ layouts ._translate_stream (sys .stdin , layouts .to_qwerty )
Original file line number Diff line number Diff line change 1+ Removed ``autocommand `` as a dependency -- by :user: `Avasam `
Original file line number Diff line number Diff line change @@ -23,10 +23,9 @@ classifiers = [
2323requires-python = " >=3.9"
2424license = " MIT"
2525dependencies = [
26+ ' importlib_resources; python_version < "3.9"' ,
2627 " jaraco.functools" ,
2728 " jaraco.context >= 4.1" ,
28- ' importlib_resources; python_version < "3.9"' ,
29- " autocommand" ,
3029 " more_itertools" ,
3130]
3231dynamic = [" version" ]
You can’t perform that action at this time.
0 commit comments