mercurial/node.py
changeset 2470 fe1689273f84
parent 1541 bf4e7ef08741
child 2858 345bac2bc4ec
equal deleted inserted replaced
2459:5c5277f03887 2470:fe1689273f84
     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 binascii
    10 from demandload import demandload
       
    11 demandload(globals(), "binascii")
    11 
    12 
    12 nullid = "\0" * 20
    13 nullid = "\0" * 20
    13 
    14 
    14 def hex(node):
    15 def hex(node):
    15     return binascii.hexlify(node)
    16     return binascii.hexlify(node)