Mercurial > hgrepos > Python > apps > py-cutils
comparison dos2unix.py @ 74:6cec638c995c
Make dos2unix.py and shasum.py convenience wrappers to call the tools if the package is not unstalled
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 26 Feb 2022 19:35:41 +0100 |
| parents | |
| children | 6378ba9ae949 |
comparison
equal
deleted
inserted
replaced
| 73:c3268f4e752f | 74:6cec638c995c |
|---|---|
| 1 # -*- coding: utf-8 -*- | |
| 2 # :- | |
| 3 # :Copyright: (c) 2020-2022 Franz Glasner | |
| 4 # :License: BSD-3-Clause | |
| 5 # :- | |
| 6 r"""Pure Python implementation of `dos2unix` | |
| 7 | |
| 8 """ | |
| 9 | |
| 10 from __future__ import absolute_import | |
| 11 | |
| 12 import sys | |
| 13 | |
| 14 import cutils.dos2unix | |
| 15 | |
| 16 | |
| 17 sys.exit(cutils.dos2unix.main()) |
