2 $Id: Class.py,v 1.6.2.1 2011/03/16 20:06:39 customdesigned Exp $
4 This file is part of the pydns project.
5 Homepage: http://pydns.sourceforge.net
7 This code is covered by the standard Python License. See LICENSE for details.
9 CLASS values (section 3.2.4)
14 CS = 2 # the CSNET class (Obsolete - used only for examples in
16 CH = 3 # the CHAOS class. When someone shows me python running on
17 # a Symbolics Lisp machine, I'll look at implementing this.
18 HS = 4 # Hesiod [Dyer 87]
20 # QCLASS values (section 3.2.5)
25 # Construct reverse mapping dictionary
30 if _name[0] != '_': classmap[eval(_name)] = _name
33 if classmap.has_key(klass): return classmap[klass]
38 # Revision 1.6.2.1 2011/03/16 20:06:39 customdesigned
39 # Refer to explicit LICENSE file.
41 # Revision 1.6 2002/04/23 12:52:19 anthonybaxter
44 # Revision 1.5 2002/03/19 12:41:33 anthonybaxter
45 # tabnannied and reindented everything. 4 space indent, no tabs.
48 # Revision 1.4 2002/03/19 12:26:13 anthonybaxter
49 # death to leading tabs.
51 # Revision 1.3 2001/08/09 09:08:55 anthonybaxter
52 # added identifying header to top of each file
54 # Revision 1.2 2001/07/19 06:57:07 anthony