[next] telepathy-salut: tests: stop importing twisted.python.util.unsignedID - it is no longer part of twisted

George Kiagiadakis gkiagia at kemper.freedesktop.org
Fri Dec 2 17:11:59 UTC 2016


Module: telepathy-salut
Branch: next
Commit: af5f0ba09729e826d7b5878178c5910481b74145
URL:    http://cgit.freedesktop.org/telepathy/telepathy-salut/commit/?id=af5f0ba09729e826d7b5878178c5910481b74145

Author: George Kiagiadakis <gkiagia at tolabaki.gr>
Date:   Fri Dec  2 19:04:40 2016 +0200

tests: stop importing twisted.python.util.unsignedID - it is no longer part of twisted

unsignedID was deprecated in twisted 13 and removed later as python's
id() function does the same job in python >= 2.5

https://github.com/twisted/twisted/commit/157438f5fa0d2b9608dd60d7a58cadc63df2fe4d

---

 tests/twisted/ipv6.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/twisted/ipv6.py b/tests/twisted/ipv6.py
index d910fec..2c87532 100644
--- a/tests/twisted/ipv6.py
+++ b/tests/twisted/ipv6.py
@@ -34,7 +34,6 @@ from zope.interface import implements
 from twisted.internet.interfaces import IAddress
 from twisted.internet import base, address, error
 from twisted.internet.tcp import Client
-from twisted.python.util import unsignedID
 import types
 
 class IPv6Address(object):
@@ -119,7 +118,7 @@ class Client6(Client):
         return IPv6Address('TCP', *(self.addr))
 
     def __repr__(self):
-        s = '<%s to %s at %x>' % (self.__class__, self.addr, unsignedID(self))
+        s = '<%s to %s at %x>' % (self.__class__, self.addr, id(self))
         return s
 
 class Connector6(base.BaseConnector):



More information about the telepathy-commits mailing list