summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <gkiagia@tolabaki.gr>2016-12-02 19:04:40 +0200
committerGeorge Kiagiadakis <gkiagia@tolabaki.gr>2016-12-02 19:04:40 +0200
commitaf5f0ba09729e826d7b5878178c5910481b74145 (patch)
treebef671c1716e1dd2c77137d129512308edab1435
parente81536dc8c6f7581a940bbc622b4f097e64cd8b5 (diff)
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
-rw-r--r--tests/twisted/ipv6.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/twisted/ipv6.py b/tests/twisted/ipv6.py
index d910fecc..2c87532f 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):