source file: /home/buildslave/tahoe/edgy/build/src/allmydata/util/idlib.py
file stats: 5 lines, 5 executed: 100.0% covered
   1. 
   2. 
   3. from foolscap import base32
   4. def nodeid_b2a(nodeid):
   5.     # we display nodeids using the same base32 alphabet that Foolscap uses
   6.     return base32.encode(nodeid)
   7. 
   8. def shortnodeid_b2a(nodeid):
   9.     return nodeid_b2a(nodeid)[:8]