blob: acaedc83447319680f3ace8e189b0663ca439244 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license
import dns._binary
import dns.name
class Parser(dns._binary.Parser):
def get_name(self, origin=None):
name = dns.name.from_parser(self)
if origin:
name = name.relativize(origin)
return name
|