Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1
dhcp
dnscompr.py
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dnscompr.py of Package dhcp
#!/usr/bin/python # Copyright 2005 Peter Poeml <poeml@suse.de>. All Rights Reserved. # # This software may be used and distributed according to the terms # of the GNU General Public License, incorporated herein by reference. def compr(names): import dns, dns.name, cStringIO f = cStringIO.StringIO() compress = {} for i in names: n = dns.name.from_text(i) n.to_wire(f, compress) return f.getvalue() if __name__ == '__main__': import sys nlist = sys.argv[1:] print repr(compr(nlist))
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor