Esempio n. 1
0
 def to_er7(self, encoding_chars=None):
     if encoding_chars is None:
         encoding_chars = get_default_encoding_chars('2.7')
     return self._escape_value(self.value, encoding_chars)
Esempio n. 2
0
def _get_encoding_chars(encoding_chars):
    if encoding_chars is None:
        encoding_chars = get_default_encoding_chars()
    check_encoding_chars(encoding_chars)
    return encoding_chars
Esempio n. 3
0
def _get_encoding_chars(encoding_chars):
    if encoding_chars is None:
        return get_default_encoding_chars()
    check_encoding_chars(encoding_chars)
    return encoding_chars
Esempio n. 4
0
def _get_encoding_chars(encoding_chars, version):
    if encoding_chars is None:
        return get_default_encoding_chars(version)
    check_encoding_chars(encoding_chars)
    return encoding_chars