Files
old-parkingkoncept/parkingkonceptvenv/lib/python3.7/site-packages/werkzeug/__pycache__/posixemulation.cpython-37.pyc

44 lines
2.6 KiB
Plaintext
Raw Normal View History

2019-11-17 12:44:16 +01:00
B
<00>/<2F>]<5D> <00>@s<>dZddlZddlZddlZddlZddlZddlmZddlm Z dZ
ej dkr<>yZddl Z dZ dZe jjjZd d
<EFBFBD>Ze jjjZe jjjZe jjjZe jjjZd Z
d d <0A>ZWn$ek
r<EFBFBD>dd
<EFBFBD>Zdd <0A>ZYnXdd<11>Zn
ejZd Z
dS)am
werkzeug.posixemulation
~~~~~~~~~~~~~~~~~~~~~~~
Provides a POSIX emulation for some features that are relevant to
web applications. The main purpose is to simplify support for
systems such as Windows NT that are not 100% POSIX compatible.
Currently this only implements a :func:`rename` function that
follows POSIX semantics. Eg: if the target file already exists it
will be replaced without asking.
This module was introduced in 0.6.1 and is not a public interface.
It might become one in later versions of Werkzeug.
:copyright: 2007 Pallets
:license: BSD-3-Clause
<EFBFBD>N<>)<01>
to_unicode)<01>get_filesystem_encodingF<67>nt<6E>cCsjt|t<01><00>}t|t<01><00>}t||<01>r&dSd}d}x6|sd|dkrdt||ttB<00>}|s0t<06>d<05>|d7}q0W|S)NTrF<>dg<><67><EFBFBD><EFBFBD>MbP?r)rr<00>_rename_atomic<69> _MoveFileEx<45>_MOVEFILE_REPLACE_EXISTING<4E>_MOVEFILE_WRITE_THROUGH<47>time<6D>sleep)<04>src<72>dst<73>retry<72>rv<72>r<00>=/tmp/pip-install-c3kgu56x/Werkzeug/werkzeug/posixemulation.py<70>_rename's  

 rTcCs<>tddddddd<03>}|dkr dSzVd}d}xH|sr|dkrrt||ddttB|<02>}|r^t|<02>}Pq,t<05>d<07>|d7}q,W|St|<02>XdS) Nri<>zWerkzeug rename<6D><65><EFBFBD><EFBFBD><EFBFBD>Frg<><67><EFBFBD><EFBFBD>MbP?r)<08>_CreateTransaction<6F>_MoveFileTransactedr
r <00>_CommitTransactionr r <00> _CloseHandle)rr<00>tarrrrrr>s*
 rcCsdS)NFr)rrrrrrZscCsdS)NFr)rrrrrr]sc Cs<>t||<01>rdSyt<01>||<01>Wn<>tk
r<EFBFBD>}zd|jtjkr><3E>d|t<06>dtj <09>f}t<01>||<03>t<01>||<01>yt<01>
|<03>Wnt k
r<EFBFBD>YnXWdd}~XYnXdS)Nz%s-%08xr) r<00>os<6F>rename<6D>OSError<6F>errno<6E>EEXIST<53>random<6F>randint<6E>sys<79>maxsize<7A>unlink<6E> Exception)rr<00>e<>oldrrrr`s
   r) <20>__doc__rrr r"r <00>_compatr<00>
filesystemrZcan_rename_open_file<6C>name<6D>ctypesr
r <00>windll<6C>kernel32Z MoveFileExWr rZktmw32ZCreateTransactionrZCommitTransactionrZMoveFileTransactedWrZ CloseHandlerrr%rrrrr<00><module>s6