def __init__(self, order=0, preference=0, flags=b'', service=b'',
                 regexp=b'', replacement=b'', ttl=None):
        """
        @param replacement: See L{Record_NAPTR.replacement}
        @type replacement: L{bytes} or L{unicode}
        """
        self.order = int(order)
        self.preference = int(preference)
        self.flags = Charstr(flags)
        self.service = Charstr(service)
        self.regexp = Charstr(regexp)
        self.replacement = Name(replacement)
        self.ttl = str2time(ttl)

        @param replacement: See L{Record_NAPTR.replacement}
        @type replacement: L{bytes} or L{unicode}
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/dns.py