summaryrefslogtreecommitdiffstats
path: root/contrib/python/ptyprocess
diff options
context:
space:
mode:
authorshadchin <[email protected]>2022-02-10 16:44:39 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:44:39 +0300
commite9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (patch)
tree64175d5cadab313b3e7039ebaa06c5bc3295e274 /contrib/python/ptyprocess
parent2598ef1d0aee359b4b6d5fdd1758916d5907d04f (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/ptyprocess')
-rw-r--r--contrib/python/ptyprocess/.dist-info/METADATA74
-rw-r--r--contrib/python/ptyprocess/.dist-info/top_level.txt2
-rw-r--r--contrib/python/ptyprocess/LICENSE32
-rw-r--r--contrib/python/ptyprocess/README.rst30
-rw-r--r--contrib/python/ptyprocess/ptyprocess/__init__.py2
-rw-r--r--contrib/python/ptyprocess/ptyprocess/ptyprocess.py18
-rw-r--r--contrib/python/ptyprocess/ya.make24
7 files changed, 91 insertions, 91 deletions
diff --git a/contrib/python/ptyprocess/.dist-info/METADATA b/contrib/python/ptyprocess/.dist-info/METADATA
index 42dad3cd101..ab1d4e0efed 100644
--- a/contrib/python/ptyprocess/.dist-info/METADATA
+++ b/contrib/python/ptyprocess/.dist-info/METADATA
@@ -1,37 +1,37 @@
-Metadata-Version: 2.1
-Name: ptyprocess
-Version: 0.7.0
-Summary: Run a subprocess in a pseudo terminal
-Home-page: https://github.com/pexpect/ptyprocess
-License: UNKNOWN
-Author: Thomas Kluyver
-Author-email: [email protected]
-Description-Content-Type: text/x-rst
-Classifier: Development Status :: 5 - Production/Stable
-Classifier: Environment :: Console
-Classifier: Intended Audience :: Developers
-Classifier: Intended Audience :: System Administrators
-Classifier: License :: OSI Approved :: ISC License (ISCL)
-Classifier: Operating System :: POSIX
-Classifier: Operating System :: MacOS :: MacOS X
-Classifier: Programming Language :: Python
-Classifier: Programming Language :: Python :: 2.7
-Classifier: Programming Language :: Python :: 3
-Classifier: Topic :: Terminals
-
-Launch a subprocess in a pseudo terminal (pty), and interact with both the
-process and its pty.
-
-Sometimes, piping stdin and stdout is not enough. There might be a password
-prompt that doesn't read from stdin, output that changes when it's going to a
-pipe rather than a terminal, or curses-style interfaces that rely on a terminal.
-If you need to automate these things, running the process in a pseudo terminal
-(pty) is the answer.
-
-Interface::
-
- p = PtyProcessUnicode.spawn(['python'])
- p.read(20)
- p.write('6+6\n')
- p.read(20)
-
+Metadata-Version: 2.1
+Name: ptyprocess
+Version: 0.7.0
+Summary: Run a subprocess in a pseudo terminal
+Home-page: https://github.com/pexpect/ptyprocess
+License: UNKNOWN
+Author: Thomas Kluyver
+Author-email: [email protected]
+Description-Content-Type: text/x-rst
+Classifier: Development Status :: 5 - Production/Stable
+Classifier: Environment :: Console
+Classifier: Intended Audience :: Developers
+Classifier: Intended Audience :: System Administrators
+Classifier: License :: OSI Approved :: ISC License (ISCL)
+Classifier: Operating System :: POSIX
+Classifier: Operating System :: MacOS :: MacOS X
+Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
+Classifier: Topic :: Terminals
+
+Launch a subprocess in a pseudo terminal (pty), and interact with both the
+process and its pty.
+
+Sometimes, piping stdin and stdout is not enough. There might be a password
+prompt that doesn't read from stdin, output that changes when it's going to a
+pipe rather than a terminal, or curses-style interfaces that rely on a terminal.
+If you need to automate these things, running the process in a pseudo terminal
+(pty) is the answer.
+
+Interface::
+
+ p = PtyProcessUnicode.spawn(['python'])
+ p.read(20)
+ p.write('6+6\n')
+ p.read(20)
+
diff --git a/contrib/python/ptyprocess/.dist-info/top_level.txt b/contrib/python/ptyprocess/.dist-info/top_level.txt
index ee8df2d5d43..57ebb2d6bdd 100644
--- a/contrib/python/ptyprocess/.dist-info/top_level.txt
+++ b/contrib/python/ptyprocess/.dist-info/top_level.txt
@@ -1 +1 @@
-ptyprocess
+ptyprocess
diff --git a/contrib/python/ptyprocess/LICENSE b/contrib/python/ptyprocess/LICENSE
index f71d38e0d34..9c772742de9 100644
--- a/contrib/python/ptyprocess/LICENSE
+++ b/contrib/python/ptyprocess/LICENSE
@@ -1,16 +1,16 @@
-Ptyprocess is under the ISC license, as code derived from Pexpect.
- http://opensource.org/licenses/ISC
-
-Copyright (c) 2013-2014, Pexpect development team
-Copyright (c) 2012, Noah Spurrier <[email protected]>
-
-PERMISSION TO USE, COPY, MODIFY, AND/OR DISTRIBUTE THIS SOFTWARE FOR ANY PURPOSE
-WITH OR WITHOUT FEE IS HEREBY GRANTED, PROVIDED THAT THE ABOVE COPYRIGHT NOTICE
-AND THIS PERMISSION NOTICE APPEAR IN ALL COPIES. THE SOFTWARE IS PROVIDED
-"AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
-INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT
-SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
-DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
-WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
-OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
+Ptyprocess is under the ISC license, as code derived from Pexpect.
+ http://opensource.org/licenses/ISC
+
+Copyright (c) 2013-2014, Pexpect development team
+Copyright (c) 2012, Noah Spurrier <[email protected]>
+
+PERMISSION TO USE, COPY, MODIFY, AND/OR DISTRIBUTE THIS SOFTWARE FOR ANY PURPOSE
+WITH OR WITHOUT FEE IS HEREBY GRANTED, PROVIDED THAT THE ABOVE COPYRIGHT NOTICE
+AND THIS PERMISSION NOTICE APPEAR IN ALL COPIES. THE SOFTWARE IS PROVIDED
+"AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
+INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT
+SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
+OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
diff --git a/contrib/python/ptyprocess/README.rst b/contrib/python/ptyprocess/README.rst
index 9a620b473fc..b928e8608d1 100644
--- a/contrib/python/ptyprocess/README.rst
+++ b/contrib/python/ptyprocess/README.rst
@@ -1,15 +1,15 @@
-Launch a subprocess in a pseudo terminal (pty), and interact with both the
-process and its pty.
-
-Sometimes, piping stdin and stdout is not enough. There might be a password
-prompt that doesn't read from stdin, output that changes when it's going to a
-pipe rather than a terminal, or curses-style interfaces that rely on a terminal.
-If you need to automate these things, running the process in a pseudo terminal
-(pty) is the answer.
-
-Interface::
-
- p = PtyProcessUnicode.spawn(['python'])
- p.read(20)
- p.write('6+6\n')
- p.read(20)
+Launch a subprocess in a pseudo terminal (pty), and interact with both the
+process and its pty.
+
+Sometimes, piping stdin and stdout is not enough. There might be a password
+prompt that doesn't read from stdin, output that changes when it's going to a
+pipe rather than a terminal, or curses-style interfaces that rely on a terminal.
+If you need to automate these things, running the process in a pseudo terminal
+(pty) is the answer.
+
+Interface::
+
+ p = PtyProcessUnicode.spawn(['python'])
+ p.read(20)
+ p.write('6+6\n')
+ p.read(20)
diff --git a/contrib/python/ptyprocess/ptyprocess/__init__.py b/contrib/python/ptyprocess/ptyprocess/__init__.py
index 1195630d69c..3a6268e8a6d 100644
--- a/contrib/python/ptyprocess/ptyprocess/__init__.py
+++ b/contrib/python/ptyprocess/ptyprocess/__init__.py
@@ -1,4 +1,4 @@
"""Run a subprocess in a pseudo terminal"""
from .ptyprocess import PtyProcess, PtyProcessUnicode, PtyProcessError
-__version__ = '0.7.0'
+__version__ = '0.7.0'
diff --git a/contrib/python/ptyprocess/ptyprocess/ptyprocess.py b/contrib/python/ptyprocess/ptyprocess/ptyprocess.py
index 5cd231c32b9..78d19fdf8fd 100644
--- a/contrib/python/ptyprocess/ptyprocess/ptyprocess.py
+++ b/contrib/python/ptyprocess/ptyprocess/ptyprocess.py
@@ -178,7 +178,7 @@ class PtyProcess(object):
@classmethod
def spawn(
cls, argv, cwd=None, env=None, echo=True, preexec_fn=None,
- dimensions=(24, 80), pass_fds=()):
+ dimensions=(24, 80), pass_fds=()):
'''Start the given command in a child process in a pseudo terminal.
This does all the fork/exec type of stuff for a pty, and returns an
@@ -190,10 +190,10 @@ class PtyProcess(object):
Dimensions of the psuedoterminal used for the subprocess can be
specified as a tuple (rows, cols), or the default (24, 80) will be used.
-
- By default, all file descriptors except 0, 1 and 2 are closed. This
- behavior can be overridden with pass_fds, a list of file descriptors to
- keep open between the parent and the child.
+
+ By default, all file descriptors except 0, 1 and 2 are closed. This
+ behavior can be overridden with pass_fds, a list of file descriptors to
+ keep open between the parent and the child.
'''
# Note that it is difficult for this method to fail.
# You cannot detect if the child process cannot start.
@@ -259,14 +259,14 @@ class PtyProcess(object):
# Do not allow child to inherit open file descriptors from parent,
# with the exception of the exec_err_pipe_write of the pipe
- # and pass_fds.
+ # and pass_fds.
# Impose ceiling on max_fd: AIX bugfix for users with unlimited
# nofiles where resource.RLIMIT_NOFILE is 2^63-1 and os.closerange()
# occasionally raises out of range error
max_fd = min(1048576, resource.getrlimit(resource.RLIMIT_NOFILE)[0])
- spass_fds = sorted(set(pass_fds) | {exec_err_pipe_write})
- for pair in zip([2] + spass_fds, spass_fds + [max_fd]):
- os.closerange(pair[0]+1, pair[1])
+ spass_fds = sorted(set(pass_fds) | {exec_err_pipe_write})
+ for pair in zip([2] + spass_fds, spass_fds + [max_fd]):
+ os.closerange(pair[0]+1, pair[1])
if cwd is not None:
os.chdir(cwd)
diff --git a/contrib/python/ptyprocess/ya.make b/contrib/python/ptyprocess/ya.make
index 0b96cc9c7a5..5e780214f26 100644
--- a/contrib/python/ptyprocess/ya.make
+++ b/contrib/python/ptyprocess/ya.make
@@ -1,13 +1,13 @@
-# Generated by devtools/yamaker (pypi).
-
+# Generated by devtools/yamaker (pypi).
+
PY23_LIBRARY()
-OWNER(borman g:python-contrib)
+OWNER(borman g:python-contrib)
+
+VERSION(0.7.0)
-VERSION(0.7.0)
+LICENSE(ISC)
-LICENSE(ISC)
-
NO_LINT()
PY_SRCS(
@@ -18,10 +18,10 @@ PY_SRCS(
ptyprocess/util.py
)
-RESOURCE_FILES(
- PREFIX contrib/python/ptyprocess/
- .dist-info/METADATA
- .dist-info/top_level.txt
-)
-
+RESOURCE_FILES(
+ PREFIX contrib/python/ptyprocess/
+ .dist-info/METADATA
+ .dist-info/top_level.txt
+)
+
END()