Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Commit 38c382b

Browse files
authored
Merge pull request #117 from iotaledger/feature/62-properBytesFromTrytes
Fixed incorrect documentation.
2 parents 8e8351c + efe8fbb commit 38c382b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

iota/types.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ def from_bytes(cls, bytes_, codec=AsciiTrytesCodec.name, *args, **kwargs):
7777
:param codec:
7878
Which codec to use:
7979
80-
- 'binary': Converts each byte into a sequence of trits with
81-
the same value (this is usually what you want).
82-
- 'ascii': Uses the legacy ASCII codec.
80+
- 'trytes_binary': Converts each byte into a sequence of trits
81+
with the same value (this is usually what you want).
82+
- 'trytes_ascii': Uses the legacy ASCII codec.
8383
8484
:param args:
8585
Additional positional arguments to pass to the initializer.
@@ -458,9 +458,9 @@ def as_bytes(self, errors='strict', codec=AsciiTrytesCodec.name):
458458
:param codec:
459459
Which codec to use:
460460
461-
- 'binary': Converts each sequence of 5 trits into a byte with
462-
the same value (this is usually what you want).
463-
- 'ascii': Uses the legacy ASCII codec.
461+
- 'trytes_binary': Converts each sequence of 5 trits into a byte
462+
with the same value (this is usually what you want).
463+
- 'trytes_ascii': Uses the legacy ASCII codec.
464464
465465
:raise:
466466
- :py:class:`iota.codecs.TrytesDecodeError` if the trytes cannot

0 commit comments

Comments
 (0)