diff options
author | Ask Solem <ask@celeryproject.org> | 2016-05-26 13:37:01 -0700 |
---|---|---|
committer | Ask Solem <ask@celeryproject.org> | 2016-05-26 13:37:01 -0700 |
commit | 39a05be8060f50fc4c2c98ac2c52a8119ce398e8 (patch) | |
tree | d55645e165f8631c9a21d0fa957ef9a9ee439b88 | |
parent | e2c400e5a75bf4c0b5203b2e71be96da4e53e85f (diff) | |
download | py-amqp-39a05be8060f50fc4c2c98ac2c52a8119ce398e8.tar.gz |
flakes
-rw-r--r-- | amqp/method_framing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/amqp/method_framing.py b/amqp/method_framing.py index e0d3c54..d26a032 100644 --- a/amqp/method_framing.py +++ b/amqp/method_framing.py @@ -138,8 +138,8 @@ def frame_writer(connection, transport, else: # ## FAST: pack into buffer and single write - frame = (b''.join([pack('>HH', *method_sig), - str_to_bytes(args)]) + frame = (b''.join([pack('>HH', *method_sig), + str_to_bytes(args)]) if type_ == 1 else b'') framelen = len(frame) pack_into('>BHI%dsB' % framelen, buf, offset, |