Skip to content

Instantly share code, notes, and snippets.

@mkutsevol
Created May 10, 2013 16:02
Show Gist options
  • Save mkutsevol/5555382 to your computer and use it in GitHub Desktop.
Save mkutsevol/5555382 to your computer and use it in GitHub Desktop.
patch for py-amqp under python3 not to add bytes to str
diff --git a/amqp/transport.py b/amqp/transport.py
index 8092c5f..e9ee76a 100644
--- a/amqp/transport.py
+++ b/amqp/transport.py
@@ -191,7 +191,7 @@
as you're asking for, at least with extremely large messages.
somewhere > 16K - found this in the test_channel.py test_large
unittest."""
- result = ''
+ result = b''
while len(result) < n:
try:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment