diff options
author | Mikhail Borisov <borisov.mikhail@gmail.com> | 2022-02-10 16:45:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:39 +0300 |
commit | a6a92afe03e02795227d2641b49819b687f088f8 (patch) | |
tree | f6984a1d27d5a7ec88a6fdd6e20cd5b7693b6ece /contrib/python/setuptools/py3/setuptools/launch.py | |
parent | c6dc8b8bd530985bc4cce0137e9a5de32f1087cb (diff) | |
download | ydb-a6a92afe03e02795227d2641b49819b687f088f8.tar.gz |
Restoring authorship annotation for Mikhail Borisov <borisov.mikhail@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'contrib/python/setuptools/py3/setuptools/launch.py')
-rw-r--r-- | contrib/python/setuptools/py3/setuptools/launch.py | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/contrib/python/setuptools/py3/setuptools/launch.py b/contrib/python/setuptools/py3/setuptools/launch.py index 0208fdf33b6..4d0600e539a 100644 --- a/contrib/python/setuptools/py3/setuptools/launch.py +++ b/contrib/python/setuptools/py3/setuptools/launch.py @@ -1,16 +1,16 @@ -""" -Launch the Python script on the command line after -setuptools is bootstrapped via import. -""" - -# Note that setuptools gets imported implicitly by the -# invocation of this script using python -m setuptools.launch - -import tokenize -import sys - - -def run(): +""" +Launch the Python script on the command line after +setuptools is bootstrapped via import. +""" + +# Note that setuptools gets imported implicitly by the +# invocation of this script using python -m setuptools.launch + +import tokenize +import sys + + +def run(): """ Run the script in sys.argv[1] as if it had been invoked naturally. @@ -23,14 +23,14 @@ def run(): __doc__=None, ) sys.argv[:] = sys.argv[1:] - + open_ = getattr(tokenize, 'open', open) with open_(script_name) as fid: script = fid.read() norm_script = script.replace('\\r\\n', '\\n') code = compile(norm_script, script_name, 'exec') exec(code, namespace) - - -if __name__ == '__main__': + + +if __name__ == '__main__': run() |