diff options
| author | Bob Halley <halley@play-bow.org> | 2016-09-20 05:45:34 -0700 |
|---|---|---|
| committer | Bob Halley <halley@play-bow.org> | 2016-09-20 05:45:34 -0700 |
| commit | 34e2240a4b3a800331fd77c724bdca67d095a2bc (patch) | |
| tree | 4d031a0cc63ddbba689e0b8c4dd630b7e053c570 /examples/name.py | |
| parent | d0d43f95770eac75cfd8c5ba2b7ca7df7d14a3f0 (diff) | |
| download | dnspython-34e2240a4b3a800331fd77c724bdca67d095a2bc.tar.gz | |
redirect to dnspython
Diffstat (limited to 'examples/name.py')
| -rwxr-xr-x | examples/name.py | 13 |
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'') |
