Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thomasballinger/2or3
Uses heuristics to classify a Python file as Python 2 or 3. Prefers 3 if unclear.
https://github.com/thomasballinger/2or3
Last synced: 20 days ago
JSON representation
Uses heuristics to classify a Python file as Python 2 or 3. Prefers 3 if unclear.
- Host: GitHub
- URL: https://github.com/thomasballinger/2or3
- Owner: thomasballinger
- License: mit
- Created: 2014-10-21T23:31:59.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-18T04:52:30.000Z (over 7 years ago)
- Last Synced: 2024-12-16T13:43:17.191Z (26 days ago)
- Language: Python
- Size: 117 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
guesses the python verion of a source code file, printing "2" or "3"
$ 2or3 somecode.py
3
$ ispy3 somecode.py
3
$ echo $?
0
$ ispy2 somecode.py
3
$ echo $?
2