diff options
author | Lorenz Diener <[email protected]> | 2019-10-12 00:32:20 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2019-10-12 00:32:20 +0200 |
commit | 5c4916bd813e205d7fc5cd7f44324b0cecdc4940 (patch) | |
tree | 3bc7a407af83ab93d01d27202de98bbce2936acb | |
parent | 87630e66e4990c1087edabb6bf31291be49942da (diff) | |
download | mastodon.py-5c4916bd813e205d7fc5cd7f44324b0cecdc4940.tar.gz |
I am very smart
-rw-r--r-- | mastodon/Mastodon.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 1d41551..465beb7 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -2591,7 +2591,7 @@ class Mastodon: | |||
2591 | push_key_priv = push_key_pair.private_numbers().private_value | 2591 | push_key_priv = push_key_pair.private_numbers().private_value |
2592 | 2592 | ||
2593 | crypto_ver = cryptography.__version__ | 2593 | crypto_ver = cryptography.__version__ |
2594 | if len(crypto_ver) > 5: | 2594 | if len(crypto_ver) < 5: |
2595 | crypto_ver += ".0" | 2595 | crypto_ver += ".0" |
2596 | if bigger_version(crypto_ver, "2.5.0") == crypto_ver: | 2596 | if bigger_version(crypto_ver, "2.5.0") == crypto_ver: |
2597 | push_key_pub = push_key_pair.public_key().public_bytes(serialization.Encoding.X962, serialization.PublicFormat.UncompressedPoint) | 2597 | push_key_pub = push_key_pair.public_key().public_bytes(serialization.Encoding.X962, serialization.PublicFormat.UncompressedPoint) |