Python _imp.source_hash() Examples

The following are 5 code examples of _imp.source_hash(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module _imp , or try the search function .
Example #1
Source File: util.py    From GraphicDesignPatternByPython with MIT License 5 votes vote down vote up
def source_hash(source_bytes):
    "Return the hash of *source_bytes* as used in hash-based pyc files."
    return _imp.source_hash(_RAW_MAGIC_NUMBER, source_bytes) 
Example #2
Source File: util.py    From Imogen with MIT License 5 votes vote down vote up
def source_hash(source_bytes):
    "Return the hash of *source_bytes* as used in hash-based pyc files."
    return _imp.source_hash(_RAW_MAGIC_NUMBER, source_bytes) 
Example #3
Source File: util.py    From odoo13-x64 with GNU General Public License v3.0 5 votes vote down vote up
def source_hash(source_bytes):
    "Return the hash of *source_bytes* as used in hash-based pyc files."
    return _imp.source_hash(_RAW_MAGIC_NUMBER, source_bytes) 
Example #4
Source File: util.py    From Carnets with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def source_hash(source_bytes):
    "Return the hash of *source_bytes* as used in hash-based pyc files."
    return _imp.source_hash(_RAW_MAGIC_NUMBER, source_bytes) 
Example #5
Source File: util.py    From android_universal with MIT License 5 votes vote down vote up
def source_hash(source_bytes):
    "Return the hash of *source_bytes* as used in hash-based pyc files."
    return _imp.source_hash(_RAW_MAGIC_NUMBER, source_bytes)