Skip to content
Snippets Groups Projects
Commit 21ce145f authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

py3 - remnants of buffers

parent b378e893
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ def compile_definitions(xml_file='resources/amqp0-9-1.extended.xml', out_file='c ...@@ -30,7 +30,7 @@ def compile_definitions(xml_file='resources/amqp0-9-1.extended.xml', out_file='c
xml = ElementTree.parse(xml_file) xml = ElementTree.parse(xml_file)
out = open(out_file, 'wb') out = open(out_file, 'wb')
out.write('''# coding=UTF-8 out.write(u'''# coding=UTF-8
from __future__ import print_function, absolute_import from __future__ import print_function, absolute_import
""" """
A Python version of the AMQP machine-readable specification. A Python version of the AMQP machine-readable specification.
...@@ -65,10 +65,10 @@ logger = logging.getLogger(__name__) ...@@ -65,10 +65,10 @@ logger = logging.getLogger(__name__)
Field = collections.namedtuple('Field', ('name', 'type', 'basic_type', 'reserved')) Field = collections.namedtuple('Field', ('name', 'type', 'basic_type', 'reserved'))
''') '''.encode('utf8'))
def line(data, *args, **kwargs): def line(data, *args, **kwargs):
out.write(ffmt(data, *args, sane=True)) out.write(ffmt(data, *args, sane=True).encode('utf8'))
# Output core ones # Output core ones
FRAME_END = None FRAME_END = None
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
from setuptools import setup from setuptools import setup
setup(name='CoolAMQP', setup(name=u'CoolAMQP',
version='0.8', version='0.8',
description='AMQP client with sane reconnects', description=u'AMQP client with sane reconnects',
author='DMS Serwis s.c.', author=u'DMS Serwis s.c.',
author_email='piotrm@smok.co', author_email=u'piotrm@smok.co',
url='https://github.com/smok-serwis/coolamqp', url=u'https://github.com/smok-serwis/coolamqp',
# download_url='https://github.com/smok-serwis/coolamqp/archive/v0.12.zip', # download_url='https://github.com/smok-serwis/coolamqp/archive/v0.12.zip',
keywords=['amqp', 'rabbitmq', 'client', 'network', 'ha', 'high availability'], keywords=['amqp', 'rabbitmq', 'client', 'network', 'ha', 'high availability'],
packages=[ packages=[
...@@ -22,7 +22,7 @@ setup(name='CoolAMQP', ...@@ -22,7 +22,7 @@ setup(name='CoolAMQP',
'coolamqp.framing', 'coolamqp.framing',
'coolamqp.framing.compilation', 'coolamqp.framing.compilation',
], ],
license='MIT License', license=u'MIT License',
long_description=u'Best-in-class Python AMQP client', long_description=u'Best-in-class Python AMQP client',
requires=['amqp', 'six', 'monotonic'], requires=['amqp', 'six', 'monotonic'],
tests_require=["nose"], tests_require=["nose"],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment