MCPcopy Create free account
hub / github.com/KmBase/ScienceReading / open_text

Function open_text

embedded/site-packages/psutil/_common.py:802–829  ·  view source on GitHub ↗

On Python 3 opens a file in text mode by using fs encoding and a proper en/decoding errors handler. On Python 2 this is just an alias for open(name, 'rt').

(fname)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 14

test_memory_mapsMethod · 0.90
test_open_textMethod · 0.90
cpu_count_logicalFunction · 0.85
process_inetMethod · 0.85
process_unixMethod · 0.85
net_io_countersFunction · 0.85
read_procfsFunction · 0.85
read_sysfsFunction · 0.85
ask_proc_partitionsMethod · 0.85
ask_sys_dev_blockMethod · 0.85
ask_sys_class_blockMethod · 0.85
disk_partitionsFunction · 0.85

Calls 2

openFunction · 0.50
closeMethod · 0.45

Tested by 2

test_memory_mapsMethod · 0.72
test_open_textMethod · 0.72