Skip to content

Commit

Permalink
Merge pull request #11 from ionite34/release
Browse files Browse the repository at this point in the history
  • Loading branch information
ionite34 authored Sep 26, 2022
2 parents a47903a + a8346c6 commit 589826d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "base2048"
description = "Binary encoding with Base2048 in Rust."
version = "0.1.2"
version = "0.1.3"
edition = "2021"
exclude = ["/dist"]

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ len(b2048_data)
unpacked = zlib.decompress(base2048.decode(b2048_data)).decode()
len(unpacked)
# => 4000
unpacked[2000:2002])
unpacked[2000:2002]
# => '🦀🐍'
```

Expand All @@ -82,11 +82,11 @@ DecodeError: Unexpected character 8: ['ǥ'] after termination sequence 7: ['༎'
```
- To catch the error, use either `base2048.DecodeError` or its base exception, `ValueError`.
```python
from base2048 import DecodeError
import base2048

try:
base2048.decode('🤔')
except DecodeError as e:
except base2048.DecodeError as e:
print(e)
```

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "base2048"
description = "Binary encoding with Base2048 in Rust."
version = "0.1.2"
version = "0.1.3"
readme = "README.md"
requires-python = ">=3.7"
license = { text = "MIT" }
Expand Down

0 comments on commit 589826d

Please sign in to comment.