/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util
NameSizeModeActions
asn1.py127270644editdlrm
asn1.pyc142050644editdlrm
asn1.pyo142050644editdlrm
Counter.py51570644editdlrm
Counter.pyc42640644editdlrm
Counter.pyo42640644editdlrm
number.py954880644editdlrm
number.pyc1138970644editdlrm
number.pyo1138450644editdlrm
py3compat.py39120644editdlrm
py3compat.pyc42730644editdlrm
py3compat.pyo42730644editdlrm
py21compat.py27790644editdlrm
py21compat.pyc14770644editdlrm
py21compat.pyo14770644editdlrm
randpool.py27680644editdlrm
randpool.pyc34080644editdlrm
randpool.pyo34080644editdlrm
RFC1751.py211860644editdlrm
RFC1751.pyc293540644editdlrm
RFC1751.pyo293540644editdlrm
strxor.so222570755editdlrm
winrandom.py11960644editdlrm
winrandom.pyc2530644editdlrm
winrandom.pyo2530644editdlrm
_counter.so395660755editdlrm
_number_new.py40510644editdlrm
_number_new.pyc36610644editdlrm
_number_new.pyo35330644editdlrm
__init__.py15070644editdlrm
__init__.pyc7310644editdlrm
__init__.pyo7310644editdlrm
Edit: /opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/py3compat.pyc (4273B)
Ñò Bd\Rc@s¯dZdZddkZeiddjoRd„Zd„Zd„Zd „Zeid d jo d „Zq«d „Zn.d „Zd„Zd„Zd„Zd„ZdS(s™Compatibility code for handling string/bytes changes from Python 2.x to Py3k In Python 2.x, strings (of type ''str'') contain binary data, including encoded Unicode text (e.g. UTF-8). The separate type ''unicode'' holds Unicode text. Unicode literals are specified via the u'...' prefix. Indexing or slicing either type always produces a string of the same type as the original. Data read from a file is always of '''str'' type. In Python 3.x, strings (type ''str'') may only contain Unicode text. The u'...' prefix and the ''unicode'' type are now redundant. A new type (called ''bytes'') has to be used for binary data (including any particular ''encoding'' of a string). The b'...' prefix allows one to specify a binary literal. Indexing or slicing a string produces another string. Slicing a byte string produces another byte string, but the indexing operation produces an integer. Data read from a file is of '''str'' type if the file was opened in text mode, or of ''bytes'' type otherwise. Since PyCrypto aims at supporting both Python 2.x and 3.x, the following helper functions are used to keep the rest of the library as independent as possible from the actual Python version. In general, the code should always deal with binary strings, and use integers instead of 1-byte character strings. b(s) Take a text string literal (with no prefix or with u'...' prefix) and make a byte string. bchr(c) Take an integer and make a 1-character byte string. bord(c) Take the result of indexing on a byte string and make an integer. tobytes(s) Take a text string, a byte string, or a sequence of character taken from a byte string and make a byte string. s$Id$iÿÿÿÿNiicCs|S(N((ts((sH/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/py3compat.pytbBscCs t|ƒS(N(tchr(R((sH/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/py3compat.pytbchrDscCs t|ƒS(N(tstr(R((sH/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/py3compat.pytbstrFscCs t|ƒS(N(tord(R((sH/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/py3compat.pytbordHsicCs)y|idƒSWndi|ƒSXdS(Nslatin-1t(tencodetjoin(R((sH/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/py3compat.pyttobytesKscCs/t|tƒo|idƒSdi|ƒSdS(Nslatin-1R(t isinstancetunicodeR R (R((sH/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/py3compat.pyR QscCs |idƒS(Nslatin-1(R (R((sH/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/py3compat.pyRWscCs t|gƒS(N(tbytes(R((sH/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/py3compat.pyRYscCs,t|tƒot|dƒSt|ƒSdS(Nslatin-1(R RR(R((sH/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/py3compat.pyR[scCs|S(N((R((sH/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/py3compat.pyR`scCsAt|tƒo|St|tƒo|idƒSt|ƒSdS(Nslatin-1(R RRR (R((sH/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/py3compat.pyR bs ( t__doc__t __revision__tsyst version_infoRRRRR (((sH/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Util/py3compat.pyt;s