MCPcopy Index your code
hub / github.com/python/cpython / close

Method close

Lib/os.py:1068–1076  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1066 self._stream = stream
1067 self._proc = proc
1068 def close(self):
1069 self._stream.close()
1070 returncode = self._proc.wait()
1071 if returncode == 0:
1072 return None
1073 if name == 'nt':
1074 return returncode
1075 else:
1076 return returncode << 8 # Shift left to match old behavior
1077 def __enter__(self):
1078 return self
1079 def __exit__(self, *args):

Callers 1

__exit__Method · 0.95

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected