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

Commit

Permalink
Merge pull request #117 from iotaledger/feature/62-properBytesFromTrytes
Browse files Browse the repository at this point in the history
Fixed incorrect documentation.
  • Loading branch information
todofixthis committed Dec 26, 2017
2 parents 8e8351c + efe8fbb commit 38c382b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions iota/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ def from_bytes(cls, bytes_, codec=AsciiTrytesCodec.name, *args, **kwargs):
:param codec:
Which codec to use:
- 'binary': Converts each byte into a sequence of trits with
the same value (this is usually what you want).
- 'ascii': Uses the legacy ASCII codec.
- 'trytes_binary': Converts each byte into a sequence of trits
with the same value (this is usually what you want).
- 'trytes_ascii': Uses the legacy ASCII codec.
:param args:
Additional positional arguments to pass to the initializer.
Expand Down Expand Up @@ -458,9 +458,9 @@ def as_bytes(self, errors='strict', codec=AsciiTrytesCodec.name):
:param codec:
Which codec to use:
- 'binary': Converts each sequence of 5 trits into a byte with
the same value (this is usually what you want).
- 'ascii': Uses the legacy ASCII codec.
- 'trytes_binary': Converts each sequence of 5 trits into a byte
with the same value (this is usually what you want).
- 'trytes_ascii': Uses the legacy ASCII codec.
:raise:
- :py:class:`iota.codecs.TrytesDecodeError` if the trytes cannot
Expand Down

0 comments on commit 38c382b

Please sign in to comment.