How to use the asn1tools.codecs.format_or function in asn1tools

To help you get started, we’ve selected a few asn1tools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github eerimoq / asn1tools / asn1tools / codecs / oer.py View on Github external
def format_names(self):
        return format_or(sorted([member.name for member in self.members]))
github eerimoq / asn1tools / asn1tools / codecs / xer.py View on Github external
def format_names(self):
        return format_or(sorted([member.name for member in self.members]))
github eerimoq / asn1tools / asn1tools / codecs / jer.py View on Github external
def format_names(self):
        return format_or(sorted([member.name for member in self.members]))
github eerimoq / asn1tools / asn1tools / codecs / per.py View on Github external
def format_names(self):
        members = list(self.root_index_to_member.values())

        if self.additions_index_to_member is not None:
            members += list(self.additions_index_to_member.values())

        return format_or(sorted([member.name for member in members]))
github eerimoq / asn1tools / asn1tools / codecs / type_checker.py View on Github external
def format_names(self):
        return format_or(sorted([member.name for member in self.members]))
github eerimoq / asn1tools / asn1tools / codecs / xer.py View on Github external
def format_values(self):
        return format_or(sorted(list(self.value_to_data)))
github eerimoq / asn1tools / asn1tools / codecs / oer.py View on Github external
def format_tags(self):
        return format_or(
            sorted([self.format_tag(member.tag) for member in self.members]))
github eerimoq / asn1tools / asn1tools / codecs / ber.py View on Github external
def format_values(self):
        return format_or(sorted(list(self.value_to_data)))