Skip to content

Instantly share code, notes, and snippets.

@lrivallain
Created November 26, 2020 08:38
Show Gist options
  • Save lrivallain/be77cd8ffd731649705ae7b1e139d8d3 to your computer and use it in GitHub Desktop.
Save lrivallain/be77cd8ffd731649705ae7b1e139d8d3 to your computer and use it in GitHub Desktop.
This patch is a part of a Pika project pull request (https://github.com/pika/pika/pull/1254) to fix RecursionError on Python 3.8
This patch is a part of a Pika project pull request (https://github.com/pika/pika/pull/1254)
to fix RecursionError on Python 3.8
If your python verion is 3.8.x, you can apply it with the following command:
`patch -p0 < pika-1254.patch`
--- /usr/local/lib/python3.8/dist-packages/pika/compat.py 2020-11-26 08:19:42.917005001 +0000
+++ compat.py_1254 2020-11-26 08:21:38.717001959 +0000
@@ -95,6 +95,9 @@
serialized as `l` instead of `I`
"""
+ def __str__(self):
+ return str(int(self))
+
def __repr__(self):
return str(self) + 'L'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment