summaryrefslogtreecommitdiff
path: root/examples/name.py
diff options
context:
space:
mode:
authorBob Halley <halley@play-bow.org>2016-09-20 05:45:34 -0700
committerBob Halley <halley@play-bow.org>2016-09-20 05:45:34 -0700
commit34e2240a4b3a800331fd77c724bdca67d095a2bc (patch)
tree4d031a0cc63ddbba689e0b8c4dd630b7e053c570 /examples/name.py
parentd0d43f95770eac75cfd8c5ba2b7ca7df7d14a3f0 (diff)
downloaddnspython-34e2240a4b3a800331fd77c724bdca67d095a2bc.tar.gz
redirect to dnspython
Diffstat (limited to 'examples/name.py')
-rwxr-xr-xexamples/name.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/examples/name.py b/examples/name.py
deleted file mode 100755
index 6669f21..0000000
--- a/examples/name.py
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/env python3
-
-import dns.name
-
-n = dns.name.from_text('www.dnspython.org')
-o = dns.name.from_text('dnspython.org')
-print(n.is_subdomain(o)) # True
-print(n.is_superdomain(o)) # False
-print(n > o) # True
-rel = n.relativize(o) # rel is the relative name www
-n2 = rel + o
-print(n2 == n) # True
-print(n.labels) # (b'www', b'dnspython', b'org', b'')