summaryrefslogtreecommitdiff
path: root/python/samba/tests/dns.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/samba/tests/dns.py')
-rw-r--r--python/samba/tests/dns.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/python/samba/tests/dns.py b/python/samba/tests/dns.py
index 303e93a0283..34edf6b66e6 100644
--- a/python/samba/tests/dns.py
+++ b/python/samba/tests/dns.py
@@ -127,13 +127,14 @@ class DNSTest(TestCase):
N = 0
result = ''
while src:
- s,src = src[:length],src[length:]
- hexa = ' '.join(["%02X"%ord(x) for x in s])
- s = s.translate(FILTER)
- result += "%04X %-*s %s\n" % (N, length*3, hexa, s)
- N+=length
+ s, src = src[:length], src[length:]
+ hexa = ' '.join(["%02X" % ord(x) for x in s])
+ s = s.translate(FILTER)
+ result += "%04X %-*s %s\n" % (N, length*3, hexa, s)
+ N += length
return result
+
class TestSimpleQueries(DNSTest):
def test_one_a_query(self):