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

and back

parent 8e6c5eb9
No related branches found
No related tags found
No related merge requests found
...@@ -25,15 +25,11 @@ class AMQPError(CoolAMQPError): ...@@ -25,15 +25,11 @@ class AMQPError(CoolAMQPError):
return self.reply_code in HARD_ERRORS return self.reply_code in HARD_ERRORS
def __str__(self): def __str__(self):
return u'AMQP error %s: %s' % (self.reply_code, self.reply_text) return 'AMQP error %s: %s' % (self.reply_code, self.reply_text)
def __repr__(self): def __repr__(self):
return u'AMQPError(%s, %s, %s, %s)' % ( return 'AMQPError('+repr(self.reply_code)+', '+repr(self.reply_text)+ \
repr(self.reply_code), ', '+repr(self.class_id)+', '+repr(self.method_id)+')'
repr(self.reply_text),
repr(self.class_id),
repr(self.method_id),
)
def __init__(self, *args): def __init__(self, *args):
""" """
......
...@@ -21,6 +21,8 @@ description = Very fast pure-Python AMQP client ...@@ -21,6 +21,8 @@ description = Very fast pure-Python AMQP client
author = DMS Serwis s.c. author = DMS Serwis s.c.
author_email = piotrm@dms-serwis.pl author_email = piotrm@dms-serwis.pl
url = https://github.com/smok-serwis/coolamqp url = https://github.com/smok-serwis/coolamqp
platforms =
posix
[pycodestyle] [pycodestyle]
max-line-length=80 max-line-length=80
......
...@@ -10,10 +10,7 @@ setup(keywords=['amqp', 'rabbitmq', 'client', 'network', 'ha', 'high availabilit ...@@ -10,10 +10,7 @@ setup(keywords=['amqp', 'rabbitmq', 'client', 'network', 'ha', 'high availabilit
Also, handles your reconnects and transactionality THE RIGHT WAY, though somewhat opinionated''', Also, handles your reconnects and transactionality THE RIGHT WAY, though somewhat opinionated''',
install_requires=['six', 'monotonic', 'futures'], install_requires=['six', 'monotonic', 'futures'],
tests_require=["nose", 'coverage'], tests_require=["nose", 'coverage'],
test_suite='nose.collector', test_suite='nose.collector'
platforms=[
'posix'
]
) )
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