laforge has uploaded this change for review. (
https://gerrit.osmocom.org/c/pysim/+/34939?usp=email )
Change subject: docs: Fix docstring syntax to avoid warnings
......................................................................
docs: Fix docstring syntax to avoid warnings
pySim/tlv.py:docstring of pySim.tlv.IE.from_bytes:1: ERROR: Unknown target name:
"part".
pySim/tlv.py:docstring of pySim.tlv.IE.to_bytes:1: ERROR: Unknown target name:
"part".
Change-Id: I170176910c4519005b9276dbe5854aaaecb58efb
---
M pySim/tlv.py
1 file changed, 14 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/39/34939/1
diff --git a/pySim/tlv.py b/pySim/tlv.py
index 827972f..7f20559 100644
--- a/pySim/tlv.py
+++ b/pySim/tlv.py
@@ -178,7 +178,7 @@
"""Convert the internal representation to entire IE including IE
header."""
def to_bytes(self) -> bytes:
- """Convert the internal representation _of the value part_ to
binary bytes."""
+ """Convert the internal representation *of the value part* to
binary bytes."""
if self.is_constructed():
# concatenate the encoded IE of all children to form the value part
out = b''
@@ -189,7 +189,7 @@
return super().to_bytes()
def from_bytes(self, do: bytes):
- """Parse _the value part_ from binary bytes to internal
representation."""
+ """Parse *the value part* from binary bytes to internal
representation."""
if self.nested_collection:
self.children = self.nested_collection.from_bytes(do)
else:
--
To view, visit
https://gerrit.osmocom.org/c/pysim/+/34939?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I170176910c4519005b9276dbe5854aaaecb58efb
Gerrit-Change-Number: 34939
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange