enable str() casts on NString and AString
这个提交存在于:
父节点
e909aa958d
当前提交
d25f3f1598
共有 1个文件被更改,包括6次插入和0次删除
|
|
@ -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:
|
||||
"""
|
||||
|
|
|
|||
正在加载……
添加表格
添加链接
在新议题中引用