mercurial/node.py
changeset 1541 bf4e7ef08741
parent 1091 d62130f99a73
child 2470 fe1689273f84
equal deleted inserted replaced
1540:8ca9f5b17257 1541:bf4e7ef08741
     5 
     5 
     6 This software may be used and distributed according to the terms
     6 This software may be used and distributed according to the terms
     7 of the GNU General Public License, incorporated herein by reference.
     7 of the GNU General Public License, incorporated herein by reference.
     8 """
     8 """
     9 
     9 
    10 import sha, binascii
    10 import binascii
    11 
    11 
    12 nullid = "\0" * 20
    12 nullid = "\0" * 20
    13 
    13 
    14 def hex(node):
    14 def hex(node):
    15     return binascii.hexlify(node)
    15     return binascii.hexlify(node)