Coder Social home page Coder Social logo

eol's People

Contributors

trentm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

eol's Issues

cannot use a string pattern on a bytes-like object

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.

python3: NameError: global name 'basestring' is not defined

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

Friendly aliases for LF,CRLF,CR

"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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.