From 173d781cdcf5e71643a3b0bf5ad8c0625a4a2ee2 Mon Sep 17 00:00:00 2001 From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl> Date: Sat, 14 Jan 2017 23:21:37 +0100 Subject: [PATCH] redundant method --- coolamqp/objects.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/coolamqp/objects.py b/coolamqp/objects.py index 199e078..d4e8758 100644 --- a/coolamqp/objects.py +++ b/coolamqp/objects.py @@ -261,26 +261,6 @@ class NodeDefinition(object): else: raise ValueError(u'What did you exactly pass?') - @staticmethod - def from_str(connstr, **kwargs): - """ - Return a NodeDefinition from an AMQP connection string. - - It should look like: - - - - :param connstr: a unicode - - :param heartbeat: heartbeat to use - - :return: NodeDefinition instance - :raise ValueError: invalid string - """ - - return NodeDefinition(host=host, port=5672, user=user, password=passw, virtual_host=virtual_host, - heartbeat=kwargs.get('heartbeat', None)) - def __str__(self): return six.text_type( b'amqp://%s:%s@%s/%s'.encode('utf8') % (self.host, self.port, self.user, self.virtual_host)) -- GitLab