Skip to content

Commit

Permalink
Merge pull request #1254 from pika/lrb-fix-recursion-error-3.8
Browse files Browse the repository at this point in the history
Fix RecursionError on Python 3.8
  • Loading branch information
lukebakken committed Dec 16, 2019
2 parents 6189f4f + c99de61 commit cbc05fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ addons:

env:
global:
- RABBITMQ_VERSION=3.8.0
- RABBITMQ_VERSION=3.8.2
- RABBITMQ_DOWNLOAD_URL="https://github.com/rabbitmq/rabbitmq-server/releases/download/v$RABBITMQ_VERSION/rabbitmq-server-generic-unix-$RABBITMQ_VERSION.tar.xz"
- RABBITMQ_TAR="rabbitmq-$RABBITMQ_VERSION.tar.xz"
- PATH=$HOME/.local/bin:$PATH
Expand Down Expand Up @@ -71,6 +71,8 @@ jobs:
- python: 3.6
- python: 3.7
dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
- python: 3.8
dist: xenial
- stage: coverage
if: fork = false OR type != pull_request
python: 3.6
Expand Down
3 changes: 3 additions & 0 deletions pika/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ class long(int):
serialized as `l` instead of `I`
"""

def __str__(self):
return str(int(self))

def __repr__(self):
return str(self) + 'L'

Expand Down

0 comments on commit cbc05fd

Please sign in to comment.