MCPcopy Create free account
hub / github.com/pexpect/pexpect / open

Method open

tests/test_unicode.py:108–111  ·  view source on GitHub ↗
(fname, mode, **kwargs)

Source from the content-addressed store, hash-verified

106 if platform.python_version_tuple() < ('3', '0', '0'):
107 import codecs
108 def open(fname, mode, **kwargs):
109 if 'newline' in kwargs:
110 del kwargs['newline']
111 return codecs.open(fname, mode, **kwargs)
112 else:
113 import io
114 open = io.open

Callers 10

my_forkptyFunction · 0.80
test_fdMethod · 0.80
test_maxreadMethod · 0.80
test_fd_isaliveMethod · 0.80
test_fd_isattyMethod · 0.80
test_fdMethod · 0.80
test_maxreadMethod · 0.80
test_fd_isaliveMethod · 0.80
test_fd_isattyMethod · 0.80
check_read.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected