summaryrefslogtreecommitdiff
path: root/third_party/dnspython/examples/name.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/dnspython/examples/name.py')
-rwxr-xr-xthird_party/dnspython/examples/name.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/third_party/dnspython/examples/name.py b/third_party/dnspython/examples/name.py
deleted file mode 100755
index b099c49d166..00000000000
--- a/third_party/dnspython/examples/name.py
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/env python
-
-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 # ['www', 'dnspython', 'org', '']