Introducing 'new style classes' (idea from Pull request #284)

This commit is contained in:
Miroslav Stampar
2012-12-06 10:42:53 +01:00
parent 0f191f624c
commit b6650add46
13 changed files with 18 additions and 18 deletions

View File

@@ -12,7 +12,7 @@ import socket
import threading
import time
class DNSQuery:
class DNSQuery(object):
"""
Used for making fake DNS resolution responses based on received
raw request
@@ -58,7 +58,7 @@ class DNSQuery:
return retVal
class DNSServer:
class DNSServer(object):
def __init__(self):
self._requests = []
self._lock = threading.Lock()