Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/node.py @ 2470:fe1689273f84
use demandload more.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Tue, 20 Jun 2006 23:58:21 -0700 |
parents | bf4e7ef08741 |
children | 345bac2bc4ec |
comparison
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) |