enable str() casts on NString and AString
Этот коммит содержится в:
родитель
e909aa958d
Коммит
d25f3f1598
@ -619,6 +619,9 @@ class NString:
|
||||
def __repr__(self) -> str:
|
||||
return '[N]' + self._string
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self._string
|
||||
|
||||
|
||||
def read_nstring(stream: io.BufferedIOBase) -> str:
|
||||
"""
|
||||
@ -730,6 +733,9 @@ class AString:
|
||||
def __repr__(self) -> str:
|
||||
return '[A]' + self._string
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self._string
|
||||
|
||||
|
||||
def read_astring(stream: io.BufferedIOBase) -> str:
|
||||
"""
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user