From 21ce145f1375478e280def7b56d32a4cf9b74fb0 Mon Sep 17 00:00:00 2001 From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl> Date: Tue, 10 Jan 2017 07:04:13 +0100 Subject: [PATCH] py3 - remnants of buffers --- coolamqp/framing/compilation/compile_definitions.py | 6 +++--- setup.py | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/coolamqp/framing/compilation/compile_definitions.py b/coolamqp/framing/compilation/compile_definitions.py index cdfae03..2864dc8 100644 --- a/coolamqp/framing/compilation/compile_definitions.py +++ b/coolamqp/framing/compilation/compile_definitions.py @@ -30,7 +30,7 @@ def compile_definitions(xml_file='resources/amqp0-9-1.extended.xml', out_file='c xml = ElementTree.parse(xml_file) out = open(out_file, 'wb') - out.write('''# coding=UTF-8 + out.write(u'''# coding=UTF-8 from __future__ import print_function, absolute_import """ A Python version of the AMQP machine-readable specification. @@ -65,10 +65,10 @@ logger = logging.getLogger(__name__) Field = collections.namedtuple('Field', ('name', 'type', 'basic_type', 'reserved')) -''') +'''.encode('utf8')) def line(data, *args, **kwargs): - out.write(ffmt(data, *args, sane=True)) + out.write(ffmt(data, *args, sane=True).encode('utf8')) # Output core ones FRAME_END = None diff --git a/setup.py b/setup.py index db8fae1..b9fee13 100644 --- a/setup.py +++ b/setup.py @@ -3,12 +3,12 @@ from setuptools import setup -setup(name='CoolAMQP', +setup(name=u'CoolAMQP', version='0.8', - description='AMQP client with sane reconnects', - author='DMS Serwis s.c.', - author_email='piotrm@smok.co', - url='https://github.com/smok-serwis/coolamqp', + description=u'AMQP client with sane reconnects', + author=u'DMS Serwis s.c.', + author_email=u'piotrm@smok.co', + url=u'https://github.com/smok-serwis/coolamqp', # download_url='https://github.com/smok-serwis/coolamqp/archive/v0.12.zip', keywords=['amqp', 'rabbitmq', 'client', 'network', 'ha', 'high availability'], packages=[ @@ -22,7 +22,7 @@ setup(name='CoolAMQP', 'coolamqp.framing', 'coolamqp.framing.compilation', ], - license='MIT License', + license=u'MIT License', long_description=u'Best-in-class Python AMQP client', requires=['amqp', 'six', 'monotonic'], tests_require=["nose"], -- GitLab