trentm / eol Goto Github PK
View Code? Open in Web Editor NEWa command-line script and Python module for working with text file end-of-line (EOL) characters
License: Other
a command-line script and Python module for working with text file end-of-line (EOL) characters
License: Other
eol: debug: action: 'convert'
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Python311\Scripts\eol.exe\__main__.py", line 7, in <module>
File "C:\Python311\Lib\site-packages\eol.py", line 751, in main
convert_path_eol(path, eol)
File "C:\Python311\Lib\site-packages\eol.py", line 295, in convert_path_eol
converted = convert_text_eol(original, eol)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\eol.py", line 278, in convert_text_eol
return re.sub('\r\n|\r|\n', eol, text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\re\__init__.py", line 185, in sub
return _compile(pattern, flags).sub(repl, string, count)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: cannot use a string pattern on a bytes-like object
version: 0.7.5
eol -q -r -c unix *
Files in UTF-8, with non english characters.
C:\Users\sridharr> \Python31\Scripts\pypm install eol
The following packages will be installed into "%APPDATA%\Python" (3.1):
eol-0.7.4
Get: [pypm-be.activestate.com] eol 0.7.4
Installing eol-0.7.4
Fixing script %APPDATA%\Python\Scripts\eol-script.py
C:\Users\sridharr>eol
Traceback (most recent call last):
File "C:\Users\sridharr\AppData\Roaming\Python\Scripts\eol-script.py", line 9, in <module>
load_entry_point('eol==0.7.4', 'console_scripts', 'eol')()
File "C:\Users\sridharr\AppData\Roaming\Python\Python31\site-packages\eol.py", line 719, in main
excludes=opts.skip):
File "C:\Users\sridharr\AppData\Roaming\Python\Python31\site-packages\eol.py", line 219, in eol_info_fr
s
assert not isinstance(path_patterns, basestring), \
NameError: global name 'basestring' is not defined
"eol -c LF foo.txt" is slower to retrieve (from memory) than "dos2unix foo.txt". So I'd suggest an alias to do "eol -c unix foo.txt", "eol -c dos foo.txt" and so on.
And then modifying the help text (eol -h) accordingly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.