Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.1.1 & Your IP : 3.144.100.199
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3.10 /
__pycache__ /
Delete
Unzip
Name
Size
Permission
Date
Action
__future__.cpython-310.pyc
4.03
KB
-rw-r--r--
2025-02-22 06:16
__phello__.foo.cpython-310.pyc
130
B
-rw-r--r--
2025-02-22 06:16
_aix_support.cpython-310.pyc
2.81
KB
-rw-r--r--
2025-02-22 06:16
_bootsubprocess.cpython-310.pyc
2.24
KB
-rw-r--r--
2025-02-22 06:16
_collections_abc.cpython-310.pyc
32.15
KB
-rw-r--r--
2025-02-22 06:16
_compat_pickle.cpython-310.pyc
5.73
KB
-rw-r--r--
2025-02-22 06:16
_compression.cpython-310.pyc
4.41
KB
-rw-r--r--
2025-02-22 06:16
_distutils_system_mod.cpython-310.pyc
5.29
KB
-rw-r--r--
2025-02-22 06:16
_markupbase.cpython-310.pyc
7.39
KB
-rw-r--r--
2025-02-22 06:16
_osx_support.cpython-310.pyc
11.26
KB
-rw-r--r--
2025-02-22 06:16
_py_abc.cpython-310.pyc
4.57
KB
-rw-r--r--
2025-02-22 06:16
_pydecimal.cpython-310.pyc
154.04
KB
-rw-r--r--
2025-02-22 06:16
_pyio.cpython-310.pyc
71.93
KB
-rw-r--r--
2025-02-22 06:16
_sitebuiltins.cpython-310.pyc
3.46
KB
-rw-r--r--
2025-02-22 06:16
_strptime.cpython-310.pyc
15.57
KB
-rw-r--r--
2025-02-22 06:16
_sysconfigdata__linux_x86_64-linux-gnu.cpython-310.pyc
34.56
KB
-rw-r--r--
2025-02-22 06:16
_sysconfigdata__x86_64-linux-gnu.cpython-310.pyc
34.55
KB
-rw-r--r--
2025-02-22 06:16
_threading_local.cpython-310.pyc
6.39
KB
-rw-r--r--
2025-02-22 06:16
_weakrefset.cpython-310.pyc
7.43
KB
-rw-r--r--
2025-02-22 06:16
abc.cpython-310.pyc
6.59
KB
-rw-r--r--
2025-02-22 06:16
aifc.cpython-310.pyc
24.11
KB
-rw-r--r--
2025-02-22 06:16
antigravity.cpython-310.pyc
822
B
-rw-r--r--
2025-02-22 06:16
argparse.cpython-310.pyc
62.05
KB
-rw-r--r--
2025-02-22 06:16
ast.cpython-310.pyc
54.43
KB
-rw-r--r--
2025-02-22 06:16
asynchat.cpython-310.pyc
6.86
KB
-rw-r--r--
2025-02-22 06:16
asyncore.cpython-310.pyc
15.63
KB
-rw-r--r--
2025-02-22 06:16
base64.cpython-310.pyc
16.76
KB
-rw-r--r--
2025-02-22 06:16
bdb.cpython-310.pyc
25.23
KB
-rw-r--r--
2025-02-22 06:16
binhex.cpython-310.pyc
12.57
KB
-rw-r--r--
2025-02-22 06:16
bisect.cpython-310.pyc
2.53
KB
-rw-r--r--
2025-02-22 06:16
bz2.cpython-310.pyc
10.62
KB
-rw-r--r--
2025-02-22 06:16
cProfile.cpython-310.pyc
4.99
KB
-rw-r--r--
2025-02-22 06:16
calendar.cpython-310.pyc
25.69
KB
-rw-r--r--
2025-02-22 06:16
cgi.cpython-310.pyc
26.1
KB
-rw-r--r--
2025-02-22 06:16
cgitb.cpython-310.pyc
9.76
KB
-rw-r--r--
2025-02-22 06:16
chunk.cpython-310.pyc
4.75
KB
-rw-r--r--
2025-02-22 06:16
cmd.cpython-310.pyc
12.41
KB
-rw-r--r--
2025-02-22 06:16
code.cpython-310.pyc
9.72
KB
-rw-r--r--
2025-02-22 06:16
codecs.cpython-310.pyc
32.44
KB
-rw-r--r--
2025-02-22 06:16
codeop.cpython-310.pyc
5.46
KB
-rw-r--r--
2025-02-22 06:16
colorsys.cpython-310.pyc
3.19
KB
-rw-r--r--
2025-02-22 06:16
compileall.cpython-310.pyc
12.43
KB
-rw-r--r--
2025-02-22 06:16
configparser.cpython-310.pyc
44.39
KB
-rw-r--r--
2025-02-22 06:16
contextlib.cpython-310.pyc
20.41
KB
-rw-r--r--
2025-02-22 06:16
contextvars.cpython-310.pyc
246
B
-rw-r--r--
2025-02-22 06:16
copy.cpython-310.pyc
6.83
KB
-rw-r--r--
2025-02-22 06:16
copyreg.cpython-310.pyc
4.57
KB
-rw-r--r--
2025-02-22 06:16
crypt.cpython-310.pyc
3.47
KB
-rw-r--r--
2025-02-22 06:16
csv.cpython-310.pyc
11.52
KB
-rw-r--r--
2025-02-22 06:16
dataclasses.cpython-310.pyc
25.96
KB
-rw-r--r--
2025-02-22 06:16
datetime.cpython-310.pyc
55.21
KB
-rw-r--r--
2025-02-22 06:16
decimal.cpython-310.pyc
362
B
-rw-r--r--
2025-02-22 06:16
difflib.cpython-310.pyc
57.52
KB
-rw-r--r--
2025-02-22 06:16
dis.cpython-310.pyc
15.29
KB
-rw-r--r--
2025-02-22 06:16
doctest.cpython-310.pyc
74.39
KB
-rw-r--r--
2025-02-22 06:16
enum.cpython-310.pyc
25.45
KB
-rw-r--r--
2025-02-22 06:16
filecmp.cpython-310.pyc
8.54
KB
-rw-r--r--
2025-02-22 06:16
fileinput.cpython-310.pyc
13.74
KB
-rw-r--r--
2025-02-22 06:16
fnmatch.cpython-310.pyc
4.14
KB
-rw-r--r--
2025-02-22 06:16
fractions.cpython-310.pyc
18.16
KB
-rw-r--r--
2025-02-22 06:16
ftplib.cpython-310.pyc
28.3
KB
-rw-r--r--
2025-02-22 06:16
functools.cpython-310.pyc
27.67
KB
-rw-r--r--
2025-02-22 06:16
genericpath.cpython-310.pyc
3.82
KB
-rw-r--r--
2025-02-22 06:16
getopt.cpython-310.pyc
6.19
KB
-rw-r--r--
2025-02-22 06:16
getpass.cpython-310.pyc
4.11
KB
-rw-r--r--
2025-02-22 06:16
gettext.cpython-310.pyc
17.79
KB
-rw-r--r--
2025-02-22 06:16
glob.cpython-310.pyc
5.71
KB
-rw-r--r--
2025-02-22 06:16
graphlib.cpython-310.pyc
7.44
KB
-rw-r--r--
2025-02-22 06:16
gzip.cpython-310.pyc
18.11
KB
-rw-r--r--
2025-02-22 06:16
hashlib.cpython-310.pyc
6.68
KB
-rw-r--r--
2025-02-22 06:16
heapq.cpython-310.pyc
13.54
KB
-rw-r--r--
2025-02-22 06:16
hmac.cpython-310.pyc
6.81
KB
-rw-r--r--
2025-02-22 06:16
imaplib.cpython-310.pyc
41.32
KB
-rw-r--r--
2025-02-22 06:16
imghdr.cpython-310.pyc
3.81
KB
-rw-r--r--
2025-02-22 06:16
imp.cpython-310.pyc
9.56
KB
-rw-r--r--
2025-02-22 06:16
inspect.cpython-310.pyc
83.16
KB
-rw-r--r--
2025-02-22 06:16
io.cpython-310.pyc
3.58
KB
-rw-r--r--
2025-02-22 06:16
ipaddress.cpython-310.pyc
61.2
KB
-rw-r--r--
2025-02-22 06:16
keyword.cpython-310.pyc
927
B
-rw-r--r--
2025-02-22 06:16
linecache.cpython-310.pyc
4.04
KB
-rw-r--r--
2025-02-22 06:16
locale.cpython-310.pyc
45.07
KB
-rw-r--r--
2025-02-22 06:16
lzma.cpython-310.pyc
11.82
KB
-rw-r--r--
2025-02-22 06:16
mailbox.cpython-310.pyc
58.68
KB
-rw-r--r--
2025-02-22 06:16
mailcap.cpython-310.pyc
7.15
KB
-rw-r--r--
2025-02-22 06:16
mimetypes.cpython-310.pyc
17.21
KB
-rw-r--r--
2025-02-22 06:16
modulefinder.cpython-310.pyc
15.79
KB
-rw-r--r--
2025-02-22 06:16
netrc.cpython-310.pyc
3.84
KB
-rw-r--r--
2025-02-22 06:16
nntplib.cpython-310.pyc
30.88
KB
-rw-r--r--
2025-02-22 06:16
ntpath.cpython-310.pyc
14.94
KB
-rw-r--r--
2025-02-22 06:16
nturl2path.cpython-310.pyc
1.71
KB
-rw-r--r--
2025-02-22 06:16
numbers.cpython-310.pyc
11.59
KB
-rw-r--r--
2025-02-22 06:16
opcode.cpython-310.pyc
5.32
KB
-rw-r--r--
2025-02-22 06:16
operator.cpython-310.pyc
13.19
KB
-rw-r--r--
2025-02-22 06:16
optparse.cpython-310.pyc
46.63
KB
-rw-r--r--
2025-02-22 06:16
os.cpython-310.pyc
30.86
KB
-rw-r--r--
2025-02-22 06:16
pathlib.cpython-310.pyc
41.07
KB
-rw-r--r--
2025-02-22 06:16
pdb.cpython-310.pyc
46.33
KB
-rw-r--r--
2025-02-22 06:16
pickle.cpython-310.pyc
45.78
KB
-rw-r--r--
2025-02-22 06:16
pickletools.cpython-310.pyc
66.17
KB
-rw-r--r--
2025-02-22 06:16
pipes.cpython-310.pyc
7.59
KB
-rw-r--r--
2025-02-22 06:16
pkgutil.cpython-310.pyc
17.93
KB
-rw-r--r--
2025-02-22 06:16
platform.cpython-310.pyc
26.79
KB
-rw-r--r--
2025-02-22 06:16
plistlib.cpython-310.pyc
23
KB
-rw-r--r--
2025-02-22 06:16
poplib.cpython-310.pyc
13.25
KB
-rw-r--r--
2025-02-22 06:16
posixpath.cpython-310.pyc
10.28
KB
-rw-r--r--
2025-02-22 06:16
pprint.cpython-310.pyc
17.46
KB
-rw-r--r--
2025-02-22 06:16
profile.cpython-310.pyc
14.05
KB
-rw-r--r--
2025-02-22 06:16
pstats.cpython-310.pyc
23.07
KB
-rw-r--r--
2025-02-22 06:16
pty.cpython-310.pyc
4.05
KB
-rw-r--r--
2025-02-22 06:16
py_compile.cpython-310.pyc
7.17
KB
-rw-r--r--
2025-02-22 06:16
pyclbr.cpython-310.pyc
9.55
KB
-rw-r--r--
2025-02-22 06:16
pydoc.cpython-310.pyc
83.64
KB
-rw-r--r--
2025-02-22 06:16
queue.cpython-310.pyc
10.54
KB
-rw-r--r--
2025-02-22 06:16
quopri.cpython-310.pyc
5.66
KB
-rw-r--r--
2025-02-22 06:16
random.cpython-310.pyc
22.21
KB
-rw-r--r--
2025-02-22 06:16
re.cpython-310.pyc
13.89
KB
-rw-r--r--
2025-02-22 06:16
reprlib.cpython-310.pyc
5.13
KB
-rw-r--r--
2025-02-22 06:16
rlcompleter.cpython-310.pyc
5.81
KB
-rw-r--r--
2025-02-22 06:16
runpy.cpython-310.pyc
9.19
KB
-rw-r--r--
2025-02-22 06:16
sched.cpython-310.pyc
5.97
KB
-rw-r--r--
2025-02-22 06:16
secrets.cpython-310.pyc
2.12
KB
-rw-r--r--
2025-02-22 06:16
selectors.cpython-310.pyc
16.7
KB
-rw-r--r--
2025-02-22 06:16
shelve.cpython-310.pyc
9.27
KB
-rw-r--r--
2025-02-22 06:16
shlex.cpython-310.pyc
7.6
KB
-rw-r--r--
2025-02-22 06:16
shutil.cpython-310.pyc
37.63
KB
-rw-r--r--
2025-02-22 06:16
signal.cpython-310.pyc
2.87
KB
-rw-r--r--
2025-02-22 06:16
site.cpython-310.pyc
17.5
KB
-rw-r--r--
2025-02-22 06:16
sitecustomize.cpython-310.pyc
225
B
-rw-r--r--
2025-02-22 06:16
smtpd.cpython-310.pyc
25.53
KB
-rw-r--r--
2025-02-22 06:16
smtplib.cpython-310.pyc
34.93
KB
-rw-r--r--
2025-02-22 06:16
sndhdr.cpython-310.pyc
6.8
KB
-rw-r--r--
2025-02-22 06:16
socket.cpython-310.pyc
28.28
KB
-rw-r--r--
2025-02-22 06:16
socketserver.cpython-310.pyc
24.75
KB
-rw-r--r--
2025-02-22 06:16
sre_compile.cpython-310.pyc
14.84
KB
-rw-r--r--
2025-02-22 06:16
sre_constants.cpython-310.pyc
6.21
KB
-rw-r--r--
2025-02-22 06:16
sre_parse.cpython-310.pyc
21.25
KB
-rw-r--r--
2025-02-22 06:16
ssl.cpython-310.pyc
44.21
KB
-rw-r--r--
2025-02-22 06:16
stat.cpython-310.pyc
4.17
KB
-rw-r--r--
2025-02-22 06:16
statistics.cpython-310.pyc
36.18
KB
-rw-r--r--
2025-02-22 06:16
string.cpython-310.pyc
6.94
KB
-rw-r--r--
2025-02-22 06:16
stringprep.cpython-310.pyc
16.67
KB
-rw-r--r--
2025-02-22 06:16
struct.cpython-310.pyc
307
B
-rw-r--r--
2025-02-22 06:16
subprocess.cpython-310.pyc
43.69
KB
-rw-r--r--
2025-02-22 06:16
sunau.cpython-310.pyc
16.1
KB
-rw-r--r--
2025-02-22 06:16
symtable.cpython-310.pyc
12.53
KB
-rw-r--r--
2025-02-22 06:16
sysconfig.cpython-310.pyc
17.73
KB
-rw-r--r--
2025-02-22 06:16
tabnanny.cpython-310.pyc
6.79
KB
-rw-r--r--
2025-02-22 06:16
tarfile.cpython-310.pyc
68.97
KB
-rw-r--r--
2025-02-22 06:16
telnetlib.cpython-310.pyc
18.07
KB
-rw-r--r--
2025-02-22 06:16
tempfile.cpython-310.pyc
26.7
KB
-rw-r--r--
2025-02-22 06:16
textwrap.cpython-310.pyc
13.49
KB
-rw-r--r--
2025-02-22 06:16
this.cpython-310.pyc
1.23
KB
-rw-r--r--
2025-02-22 06:16
threading.cpython-310.pyc
43.92
KB
-rw-r--r--
2025-02-22 06:16
timeit.cpython-310.pyc
11.49
KB
-rw-r--r--
2025-02-22 06:16
token.cpython-310.pyc
2.67
KB
-rw-r--r--
2025-02-22 06:16
tokenize.cpython-310.pyc
16.79
KB
-rw-r--r--
2025-02-22 06:16
trace.cpython-310.pyc
19.4
KB
-rw-r--r--
2025-02-22 06:16
traceback.cpython-310.pyc
21.2
KB
-rw-r--r--
2025-02-22 06:16
tracemalloc.cpython-310.pyc
17.11
KB
-rw-r--r--
2025-02-22 06:16
tty.cpython-310.pyc
1.05
KB
-rw-r--r--
2025-02-22 06:16
turtle.cpython-310.pyc
125.84
KB
-rw-r--r--
2025-02-22 06:16
types.cpython-310.pyc
9.3
KB
-rw-r--r--
2025-02-22 06:16
typing.cpython-310.pyc
83.28
KB
-rw-r--r--
2025-02-22 06:16
uu.cpython-310.pyc
3.78
KB
-rw-r--r--
2025-02-22 06:16
uuid.cpython-310.pyc
21.97
KB
-rw-r--r--
2025-02-22 06:16
warnings.cpython-310.pyc
13.33
KB
-rw-r--r--
2025-02-22 06:16
wave.cpython-310.pyc
17.18
KB
-rw-r--r--
2025-02-22 06:16
weakref.cpython-310.pyc
19.87
KB
-rw-r--r--
2025-02-22 06:16
webbrowser.cpython-310.pyc
16.6
KB
-rw-r--r--
2025-02-22 06:16
xdrlib.cpython-310.pyc
7.7
KB
-rw-r--r--
2025-02-22 06:16
zipapp.cpython-310.pyc
5.87
KB
-rw-r--r--
2025-02-22 06:16
zipfile.cpython-310.pyc
60.09
KB
-rw-r--r--
2025-02-22 06:16
zipimport.cpython-310.pyc
16.63
KB
-rw-r--r--
2025-02-22 06:16
Save
Rename
o �*�gq � @ st d Z ddlZddlZddlZddlZddlZddlZddlmZ ej dv r,ddlmZ ndZ ddlZddlmZmZmZmZ h d�Zeed�rSe�ej� e�ej� d ZeZeed �p_ejjZeZd7dd �Ze d8dd��Z dd� Z!zej"Z"W n e#y� e!Z"Y nw dd� Z$zej%Z%W n e#y� G dd� de&e'�Z%Y nw G dd� dej(d�Z)ej)�*e)� G dd� de)�Z+ej+�*e+� ddl,m-Z- e+�*e-� G dd � d e)�Z.ej.�*e.� G d!d"� d"e.�Z/G d#d$� d$e.�Z0G d%d&� d&e/�Z1G d'd(� d(e/�Z2G d)d*� d*e.�Z3G d+d,� d,e2e1�Z4G d-d.� d.e+�Z-G d/d0� d0e)�Z5ej5�*e5� G d1d2� d2ej6�Z7G d3d4� d4e5�Z8G d5d6� d6e8�Z9dS )9z) Python implementation of the io module. � N)� allocate_lock> �win32�cygwin)�setmode)�__all__�SEEK_SET�SEEK_CUR�SEEK_END> r � � � SEEK_HOLEi �gettotalrefcountr c C s2 | du rd} t jjrddl}|�dt|d � | S )a� A helper function to choose the text encoding. When encoding is not None, just return it. Otherwise, return the default text encoding (i.e. "locale"). This function emits an EncodingWarning if *encoding* is None and sys.flags.warn_default_encoding is true. This can be used in APIs with an encoding=None parameter that pass it to TextIOWrapper or open. However, please consider using encoding="utf-8" for new APIs. N�localer z"'encoding' argument not specified.r )�sys�flags�warn_default_encoding�warnings�warn�EncodingWarning)�encoding� stacklevelr � r �/usr/lib/python3.10/_pyio.py� text_encoding+ s �r �r���Tc C sp t | t�s t�| �} t | tttf�std| ��t |t�s#td| ��t |t�s.td| ��|dur=t |t�s=td| ��|durLt |t�sLtd| ��t|�}|td� s^t|�t|�krdt d| ��d|v } d |v } d |v }d|v }d|v } d |v }d|v }d|v r�| s�|s�|s�| r�t d��ddl }|�dtd� d} |r�|r�t d��| | | | dkr�t d��| s�| s�|s�|s�t d��|r�|dur�t d��|r�|dur�t d��|r�|dur�t d��|r�|dkr�ddl }|�dt d� t| | r�dp�d| r�d p�d |�rd �pd |�r d�p d | �rd�pd ||d�}|}z�d}|dk�s,|dk �r0|�� �r0d }d}|dk �rUt}z t�|�� �j}W n ttf�yM Y nw |dk�rU|}|dk �r^t d!��|dk�rm|�ri|W S t d"��| �rvt||�}n| �s|�s|�r�t||�}n| �r�t||�}nt d#| ��|}|�r�|W S t|�}t|||||�}|}||_|W S |�� � )$a� Open file and return a stream. Raise OSError upon failure. file is either a text or byte string giving the name (and the path if the file isn't in the current working directory) of the file to be opened or an integer file descriptor of the file to be wrapped. (If a file descriptor is given, it is closed when the returned I/O object is closed, unless closefd is set to False.) mode is an optional string that specifies the mode in which the file is opened. It defaults to 'r' which means open for reading in text mode. Other common values are 'w' for writing (truncating the file if it already exists), 'x' for exclusive creation of a new file, and 'a' for appending (which on some Unix systems, means that all writes append to the end of the file regardless of the current seek position). In text mode, if encoding is not specified the encoding used is platform dependent. (For reading and writing raw bytes use binary mode and leave encoding unspecified.) The available modes are: ========= =============================================================== Character Meaning --------- --------------------------------------------------------------- 'r' open for reading (default) 'w' open for writing, truncating the file first 'x' create a new file and open it for writing 'a' open for writing, appending to the end of the file if it exists 'b' binary mode 't' text mode (default) '+' open a disk file for updating (reading and writing) 'U' universal newline mode (deprecated) ========= =============================================================== The default mode is 'rt' (open for reading text). For binary random access, the mode 'w+b' opens and truncates the file to 0 bytes, while 'r+b' opens the file without truncation. The 'x' mode implies 'w' and raises an `FileExistsError` if the file already exists. Python distinguishes between files opened in binary and text modes, even when the underlying operating system doesn't. Files opened in binary mode (appending 'b' to the mode argument) return contents as bytes objects without any decoding. In text mode (the default, or when 't' is appended to the mode argument), the contents of the file are returned as strings, the bytes having been first decoded using a platform-dependent encoding or using the specified encoding if given. 'U' mode is deprecated and will raise an exception in future versions of Python. It has no effect in Python 3. Use newline to control universal newlines mode. buffering is an optional integer used to set the buffering policy. Pass 0 to switch buffering off (only allowed in binary mode), 1 to select line buffering (only usable in text mode), and an integer > 1 to indicate the size of a fixed-size chunk buffer. When no buffering argument is given, the default buffering policy works as follows: * Binary files are buffered in fixed-size chunks; the size of the buffer is chosen using a heuristic trying to determine the underlying device's "block size" and falling back on `io.DEFAULT_BUFFER_SIZE`. On many systems, the buffer will typically be 4096 or 8192 bytes long. * "Interactive" text files (files for which isatty() returns True) use line buffering. Other text files use the policy described above for binary files. encoding is the str name of the encoding used to decode or encode the file. This should only be used in text mode. The default encoding is platform dependent, but any encoding supported by Python can be passed. See the codecs module for the list of supported encodings. errors is an optional string that specifies how encoding errors are to be handled---this argument should not be used in binary mode. Pass 'strict' to raise a ValueError exception if there is an encoding error (the default of None has the same effect), or pass 'ignore' to ignore errors. (Note that ignoring encoding errors can lead to data loss.) See the documentation for codecs.register for a list of the permitted encoding error strings. newline is a string controlling how universal newlines works (it only applies to text mode). It can be None, '', '\n', '\r', and '\r\n'. It works as follows: * On input, if newline is None, universal newlines mode is enabled. Lines in the input can end in '\n', '\r', or '\r\n', and these are translated into '\n' before being returned to the caller. If it is '', universal newline mode is enabled, but line endings are returned to the caller untranslated. If it has any of the other legal values, input lines are only terminated by the given string, and the line ending is returned to the caller untranslated. * On output, if newline is None, any '\n' characters written are translated to the system default line separator, os.linesep. If newline is '', no translation takes place. If newline is any of the other legal values, any '\n' characters written are translated to the given string. closedfd is a bool. If closefd is False, the underlying file descriptor will be kept open when the file is closed. This does not work when a file name is given and must be True in that case. The newly created file is non-inheritable. A custom opener can be used by passing a callable as *opener*. The underlying file descriptor for the file object is then obtained by calling *opener* with (*file*, *flags*). *opener* must return an open file descriptor (passing os.open as *opener* results in functionality similar to passing None). open() returns a file object whose type depends on the mode, and through which the standard file operations such as reading and writing are performed. When open() is used to open a file in a text mode ('w', 'r', 'wt', 'rt', etc.), it returns a TextIOWrapper. When used to open a file in a binary mode, the returned class varies: in read binary mode, it returns a BufferedReader; in write binary and append binary modes, it returns a BufferedWriter, and in read/write mode, it returns a BufferedRandom. It is also possible to use a string or bytearray as a file for both reading and writing. For strings StringIO can be used like a file opened in a text mode, and for bytes a BytesIO can be used like a file opened in a binary mode. zinvalid file: %rzinvalid mode: %rzinvalid buffering: %rN�invalid encoding: %r�invalid errors: %rzaxrwb+tU�xr �w�a�+�t�b�Uz4mode U cannot be combined with 'x', 'w', 'a', or '+'r z'U' mode is deprecatedr Tz'can't have text and binary mode at oncer z)can't have read/write/append mode at oncez/must have exactly one of read/write/append modez-binary mode doesn't take an encoding argumentz+binary mode doesn't take an errors argumentz+binary mode doesn't take a newline argumentzaline buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used� )�openerFr zinvalid buffering sizezcan't have unbuffered text I/Ozunknown mode: %r)� isinstance�int�os�fspath�str�bytes� TypeError�set�len� ValueErrorr r �DeprecationWarning�RuntimeWarning�FileIO�isatty�DEFAULT_BUFFER_SIZE�fstat�fileno� st_blksize�OSError�AttributeError�BufferedRandom�BufferedWriter�BufferedReaderr � TextIOWrapper�mode�close)�filer? � bufferingr �errors�newline�closefdr&