blob: f0638ff4dd679fd31ff2c1e7089aac4eff570a37 [file] [log] [blame]
Dave Wallace85ce9312024-08-19 18:47:55 -04001diff --git a/scapy/arch/bpf/core.py b/scapy/arch/bpf/core.py
2index d49267cd..13b7cff7 100644
3--- a/scapy/arch/bpf/core.py
4+++ b/scapy/arch/bpf/core.py
5@@ -27,7 +27,7 @@ from scapy.error import Scapy_Exception, warning
6 from scapy.interfaces import InterfaceProvider, IFACES, NetworkInterface, \
7 network_name
8 from scapy.pton_ntop import inet_ntop
9-from scapy.modules.six.moves import range
10+from six.moves import range
11
12
13 # ctypes definitions
14diff --git a/scapy/arch/linux.py b/scapy/arch/linux.py
15index 88f0de80..8870320f 100644
16--- a/scapy/arch/linux.py
17+++ b/scapy/arch/linux.py
18@@ -49,8 +49,8 @@ from scapy.packet import Packet, Padding
19 from scapy.pton_ntop import inet_ntop
20 from scapy.supersocket import SuperSocket
21
22-import scapy.modules.six as six
23-from scapy.modules.six.moves import range
24+import six
25+from six.moves import range
26
27 # Typing imports
28 from scapy.compat import (
29diff --git a/scapy/arch/windows/__init__.py b/scapy/arch/windows/__init__.py
30index 3e640f48..8a01681c 100755
31--- a/scapy/arch/windows/__init__.py
32+++ b/scapy/arch/windows/__init__.py
33@@ -36,8 +36,8 @@ from scapy.pton_ntop import inet_ntop, inet_pton
34 from scapy.utils import atol, itom, mac2str, str2mac
35 from scapy.utils6 import construct_source_candidate_set, in6_getscope
36 from scapy.data import ARPHDR_ETHER, load_manuf
37-import scapy.modules.six as six
38-from scapy.modules.six.moves import input, winreg
39+import six
40+from six.moves import input, winreg
41 from scapy.compat import plain_str
42 from scapy.supersocket import SuperSocket
43
44diff --git a/scapy/asn1/asn1.py b/scapy/asn1/asn1.py
45index 45eea565..a694de0d 100644
46--- a/scapy/asn1/asn1.py
47+++ b/scapy/asn1/asn1.py
48@@ -18,8 +18,8 @@ from scapy.error import Scapy_Exception, warning
49 from scapy.volatile import RandField, RandIP, GeneralizedTime
50 from scapy.utils import Enum_metaclass, EnumElement, binrepr
51 from scapy.compat import plain_str, chb, orb
52-import scapy.modules.six as six
53-from scapy.modules.six.moves import range
54+import six
55+from six.moves import range
56
57
58 class RandASN1Object(RandField):
59diff --git a/scapy/asn1fields.py b/scapy/asn1fields.py
60index 87679b55..887dd42e 100644
61--- a/scapy/asn1fields.py
62+++ b/scapy/asn1fields.py
63@@ -20,8 +20,8 @@ from scapy.base_classes import BasePacket
64 from scapy.utils import binrepr
65 from scapy import packet
66 from functools import reduce
67-import scapy.modules.six as six
68-from scapy.modules.six.moves import range
69+import six
70+from six.moves import range
71
72
73 class ASN1F_badsequence(Exception):
74diff --git a/scapy/base_classes.py b/scapy/base_classes.py
75index ec532110..51897d05 100644
76--- a/scapy/base_classes.py
77+++ b/scapy/base_classes.py
78@@ -27,9 +27,9 @@ import warnings
79 import scapy
80 from scapy.error import Scapy_Exception
81 from scapy.consts import WINDOWS
82-import scapy.modules.six as six
83+import six
84
85-from scapy.modules.six.moves import range
86+from six.moves import range
87
88 from scapy.compat import (
89 Any,
90diff --git a/scapy/contrib/automotive/someip.py b/scapy/contrib/automotive/someip.py
91index a19e008d..136ab64c 100644
92--- a/scapy/contrib/automotive/someip.py
93+++ b/scapy/contrib/automotive/someip.py
94@@ -36,7 +36,7 @@ from scapy.layers.inet import TCP, UDP
95 from scapy.layers.inet6 import IP6Field
96 from scapy.compat import raw, orb
97 from scapy.config import conf
98-from scapy.modules.six.moves import range
99+from six.moves import range
100 from scapy.packet import Packet, Raw, bind_top_down, bind_bottom_up
101 from scapy.fields import XShortField, BitEnumField, ConditionalField, \
102 BitField, XBitField, IntField, XByteField, ByteEnumField, \
103diff --git a/scapy/contrib/cansocket_python_can.py b/scapy/contrib/cansocket_python_can.py
104index 936d39cf..1a1b717d 100644
105--- a/scapy/contrib/cansocket_python_can.py
106+++ b/scapy/contrib/cansocket_python_can.py
107@@ -21,7 +21,7 @@ from scapy.config import conf
108 from scapy.supersocket import SuperSocket
109 from scapy.layers.can import CAN
110 from scapy.error import warning
111-from scapy.modules.six.moves import queue
112+from six.moves import queue
113 from scapy.compat import Any, List
114 from can import Message as can_Message
115 from can import CanError as can_CanError
116diff --git a/scapy/contrib/cdp.py b/scapy/contrib/cdp.py
117index fa116538..9700deba 100644
118--- a/scapy/contrib/cdp.py
119+++ b/scapy/contrib/cdp.py
120@@ -43,7 +43,7 @@ from scapy.fields import (
121 from scapy.layers.inet import checksum
122 from scapy.layers.l2 import SNAP
123 from scapy.compat import orb, chb
124-from scapy.modules.six.moves import range
125+from six.moves import range
126 from scapy.config import conf
127
128
129diff --git a/scapy/contrib/diameter.py b/scapy/contrib/diameter.py
130index e99cb424..9fedca3d 100644
131--- a/scapy/contrib/diameter.py
132+++ b/scapy/contrib/diameter.py
133@@ -32,8 +32,8 @@ from scapy.fields import ConditionalField, EnumField, Field, FieldLenField, \
134 XByteField, XIntField
135 from scapy.layers.inet import TCP
136 from scapy.layers.sctp import SCTPChunkData
137-import scapy.modules.six as six
138-from scapy.modules.six.moves import range
139+import six
140+from six.moves import range
141 from scapy.compat import chb, orb, raw, bytes_hex, plain_str
142 from scapy.error import warning
143 from scapy.utils import inet_ntoa, inet_aton
144diff --git a/scapy/contrib/gtp.py b/scapy/contrib/gtp.py
145index bf369847..de3b8961 100644
146--- a/scapy/contrib/gtp.py
147+++ b/scapy/contrib/gtp.py
148@@ -30,7 +30,7 @@ from scapy.fields import BitEnumField, BitField, ByteEnumField, ByteField, \
149 from scapy.layers.inet import IP, UDP
150 from scapy.layers.inet6 import IPv6, IP6Field
151 from scapy.layers.ppp import PPP
152-from scapy.modules.six.moves import range
153+from six.moves import range
154 from scapy.packet import bind_layers, bind_bottom_up, bind_top_down, \
155 Packet, Raw
156 from scapy.volatile import RandInt, RandIP, RandNum, RandString
157diff --git a/scapy/contrib/homeplugav.py b/scapy/contrib/homeplugav.py
158index 171eb7d0..92b22d16 100644
159--- a/scapy/contrib/homeplugav.py
160+++ b/scapy/contrib/homeplugav.py
161@@ -44,7 +44,7 @@ from scapy.fields import (
162 XShortField,
163 )
164 from scapy.layers.l2 import Ether
165-from scapy.modules.six.moves import range
166+from six.moves import range
167
168 """
169 Copyright (C) HomePlugAV Layer for Scapy by FlUxIuS (Sebastien Dudek)
170diff --git a/scapy/contrib/isis.py b/scapy/contrib/isis.py
171index b7fc222e..f68bb37d 100644
172--- a/scapy/contrib/isis.py
173+++ b/scapy/contrib/isis.py
174@@ -80,7 +80,7 @@ from scapy.layers.clns import network_layer_protocol_ids, register_cln_protocol
175 from scapy.layers.inet6 import IP6ListField, IP6Field
176 from scapy.utils import fletcher16_checkbytes
177 from scapy.volatile import RandString, RandByte
178-from scapy.modules.six.moves import range
179+from six.moves import range
180 from scapy.compat import orb, hex_bytes
181
182 EXT_VERSION = "v0.0.3"
183diff --git a/scapy/contrib/isotp.py b/scapy/contrib/isotp.py
184index 845d566d..225c6b86 100644
185--- a/scapy/contrib/isotp.py
186+++ b/scapy/contrib/isotp.py
187@@ -29,9 +29,9 @@ from scapy.fields import BitField, FlagsField, StrLenField, \
188 BitEnumField, ByteField, XByteField, BitFieldLenField, StrField
189 from scapy.compat import chb, orb
190 from scapy.layers.can import CAN, CAN_MAX_IDENTIFIER, CAN_MTU, CAN_MAX_DLEN
191-import scapy.modules.six as six
192+import six
193 import scapy.automaton as automaton
194-from scapy.modules.six.moves import queue
195+from six.moves import queue
196 from scapy.error import Scapy_Exception, warning, log_loading, log_runtime
197 from scapy.supersocket import SuperSocket, SO_TIMESTAMPNS
198 from scapy.config import conf
199diff --git a/scapy/contrib/ldp.py b/scapy/contrib/ldp.py
200index 25152ab7..ea8a6b83 100644
201--- a/scapy/contrib/ldp.py
202+++ b/scapy/contrib/ldp.py
203@@ -27,7 +27,7 @@ from scapy.fields import BitField, IPField, IntField, ShortField, StrField, \
204 XBitField
205 from scapy.layers.inet import UDP
206 from scapy.layers.inet import TCP
207-from scapy.modules.six.moves import range
208+from six.moves import range
209 from scapy.config import conf
210 from scapy.utils import inet_aton, inet_ntoa
211
212diff --git a/scapy/contrib/lldp.py b/scapy/contrib/lldp.py
213index 04d37192..91b64439 100644
214--- a/scapy/contrib/lldp.py
215+++ b/scapy/contrib/lldp.py
216@@ -51,7 +51,7 @@ from scapy.fields import MACField, IPField, BitField, \
217 ShortField, XStrLenField, ByteField, ConditionalField, \
218 MultipleTypeField
219 from scapy.packet import Packet, bind_layers
220-from scapy.modules.six.moves import range
221+from six.moves import range
222 from scapy.data import ETHER_TYPES
223 from scapy.compat import orb
224
225diff --git a/scapy/contrib/nfs.py b/scapy/contrib/nfs.py
226index 79259e39..6d6f47a1 100644
227--- a/scapy/contrib/nfs.py
228+++ b/scapy/contrib/nfs.py
229@@ -12,7 +12,7 @@ from scapy.packet import Packet, bind_layers
230 from scapy.fields import IntField, IntEnumField, FieldListField, LongField, \
231 XIntField, XLongField, ConditionalField, PacketListField, StrLenField, \
232 PacketField
233-from scapy.modules.six import integer_types
234+from six import integer_types
235
236 nfsstat3 = {
237 0: 'NFS3_OK',
238diff --git a/scapy/contrib/ppi_geotag.py b/scapy/contrib/ppi_geotag.py
239index a7cc6345..bf16ae2b 100644
240--- a/scapy/contrib/ppi_geotag.py
241+++ b/scapy/contrib/ppi_geotag.py
242@@ -34,8 +34,8 @@ from scapy.fields import ByteField, ConditionalField, Field, FlagsField, \
243 UTCTimeField, XLEIntField, SignedByteField, XLEShortField
244 from scapy.layers.ppi import PPI_Hdr, PPI_Element
245 from scapy.error import warning
246-import scapy.modules.six as six
247-from scapy.modules.six.moves import range
248+import six
249+from six.moves import range
250
251 CURR_GEOTAG_VER = 2 # Major revision of specification
252
253diff --git a/scapy/contrib/skinny.py b/scapy/contrib/skinny.py
254index c12cb94e..f8a8be06 100644
255--- a/scapy/contrib/skinny.py
256+++ b/scapy/contrib/skinny.py
257@@ -29,7 +29,7 @@ from scapy.packet import Packet, bind_layers
258 from scapy.fields import FlagsField, IPField, LEIntEnumField, LEIntField, \
259 StrFixedLenField
260 from scapy.layers.inet import TCP
261-from scapy.modules.six.moves import range
262+from six.moves import range
263 from scapy.volatile import RandShort
264 from scapy.config import conf
265
266diff --git a/scapy/contrib/tacacs.py b/scapy/contrib/tacacs.py
267index ed933f10..7b31f4c0 100755
268--- a/scapy/contrib/tacacs.py
269+++ b/scapy/contrib/tacacs.py
270@@ -29,7 +29,7 @@ from scapy.fields import FieldLenField, ConditionalField, StrLenField
271 from scapy.layers.inet import TCP
272 from scapy.compat import chb, orb
273 from scapy.config import conf
274-from scapy.modules.six.moves import range
275+from six.moves import range
276
277 SECRET = 'test'
278
279diff --git a/scapy/fields.py b/scapy/fields.py
280index 7448400c..5db02244 100644
281--- a/scapy/fields.py
282+++ b/scapy/fields.py
283@@ -37,9 +37,9 @@ from scapy.utils6 import in6_6to4ExtractAddr, in6_isaddr6to4, \
284 in6_isaddrTeredo, in6_ptop, Net6, teredoAddrExtractInfo
285 from scapy.base_classes import Gen, Net, BasePacket, Field_metaclass
286 from scapy.error import warning
287-import scapy.modules.six as six
288-from scapy.modules.six.moves import range
289-from scapy.modules.six import integer_types
290+import six
291+from six.moves import range
292+from six import integer_types
293
294 # Typing imports
295 from scapy.compat import (
296diff --git a/scapy/interfaces.py b/scapy/interfaces.py
297index aae0c55a..75919bd2 100644
298--- a/scapy/interfaces.py
299+++ b/scapy/interfaces.py
300@@ -17,8 +17,8 @@ from scapy.consts import WINDOWS
301 from scapy.utils import pretty_list
302 from scapy.utils6 import in6_isvalid
303
304-from scapy.modules.six.moves import UserDict
305-import scapy.modules.six as six
306+from six.moves import UserDict
307+import six
308
309 # Typing imports
310 import scapy
311diff --git a/scapy/layers/bluetooth4LE.py b/scapy/layers/bluetooth4LE.py
312index 40f8b0bb..d461b808 100644
313--- a/scapy/layers/bluetooth4LE.py
314+++ b/scapy/layers/bluetooth4LE.py
315@@ -23,7 +23,7 @@ from scapy.contrib.ethercat import LEBitEnumField, LEBitField
316 from scapy.layers.bluetooth import EIR_Hdr, L2CAP_Hdr
317 from scapy.layers.ppi import PPI_Element, PPI_Hdr
318
319-from scapy.modules.six.moves import range
320+from six.moves import range
321 from scapy.utils import mac2str, str2mac
322
323 ####################
324diff --git a/scapy/layers/dhcp.py b/scapy/layers/dhcp.py
325index 4164d88e..ccb42e93 100644
326--- a/scapy/layers/dhcp.py
327+++ b/scapy/layers/dhcp.py
328@@ -31,8 +31,8 @@ from scapy.volatile import RandBin, RandField, RandNum, RandNumExpo
329 from scapy.arch import get_if_raw_hwaddr
330 from scapy.sendrecv import srp1, sendp
331 from scapy.error import warning
332-import scapy.modules.six as six
333-from scapy.modules.six.moves import range
334+import six
335+from six.moves import range
336 from scapy.config import conf
337
338 dhcpmagic = b"c\x82Sc"
339diff --git a/scapy/layers/dns.py b/scapy/layers/dns.py
340index b1c9f456..5e87ef5e 100755
341--- a/scapy/layers/dns.py
342+++ b/scapy/layers/dns.py
343@@ -24,8 +24,8 @@ from scapy.sendrecv import sr1
344 from scapy.layers.inet import IP, DestIPField, IPField, UDP, TCP
345 from scapy.layers.inet6 import DestIP6Field, IP6Field
346 from scapy.error import log_runtime, warning, Scapy_Exception
347-import scapy.modules.six as six
348-from scapy.modules.six.moves import range
349+import six
350+from six.moves import range
351
352
353 def dns_get_str(s, pointer=0, pkt=None, _fullpacket=False):
354diff --git a/scapy/layers/inet.py b/scapy/layers/inet.py
355index 5222df51..2c411b81 100644
356--- a/scapy/layers/inet.py
357+++ b/scapy/layers/inet.py
358@@ -64,8 +64,8 @@ from scapy.pton_ntop import inet_pton
359
360 import scapy.as_resolvers
361
362-import scapy.modules.six as six
363-from scapy.modules.six.moves import range
364+import six
365+from six.moves import range
366
367 ####################
368 # IP Tools class #
369diff --git a/scapy/layers/ipsec.py b/scapy/layers/ipsec.py
370index 8251dc14..852b3dfb 100644
371--- a/scapy/layers/ipsec.py
372+++ b/scapy/layers/ipsec.py
373@@ -56,8 +56,8 @@ from scapy.fields import ByteEnumField, ByteField, IntField, PacketField, \
374 ShortField, StrField, XIntField, XStrField, XStrLenField
375 from scapy.packet import Packet, bind_layers, Raw
376 from scapy.layers.inet import IP, UDP
377-import scapy.modules.six as six
378-from scapy.modules.six.moves import range
379+import six
380+from six.moves import range
381 from scapy.layers.inet6 import IPv6, IPv6ExtHdrHopByHop, IPv6ExtHdrDestOpt, \
382 IPv6ExtHdrRouting
383
384diff --git a/scapy/layers/l2.py b/scapy/layers/l2.py
385index b1224208..85377b37 100644
386--- a/scapy/layers/l2.py
387+++ b/scapy/layers/l2.py
388@@ -51,7 +51,7 @@ from scapy.fields import (
389 XShortEnumField,
390 XShortField,
391 )
392-from scapy.modules.six import viewitems
393+from six import viewitems
394 from scapy.packet import bind_layers, Packet
395 from scapy.plist import (
396 PacketList,
397diff --git a/scapy/layers/ntp.py b/scapy/layers/ntp.py
398index 21da95c8..c705c96a 100644
399--- a/scapy/layers/ntp.py
400+++ b/scapy/layers/ntp.py
401@@ -25,8 +25,8 @@ from scapy.layers.inet import UDP
402 from scapy.utils import lhex
403 from scapy.compat import orb
404 from scapy.config import conf
405-import scapy.modules.six as six
406-from scapy.modules.six.moves import range
407+import six
408+from six.moves import range
409
410
411 #############################################################################
412diff --git a/scapy/layers/tftp.py b/scapy/layers/tftp.py
413index 2e3077d9..11f1ed94 100644
414--- a/scapy/layers/tftp.py
415+++ b/scapy/layers/tftp.py
416@@ -16,7 +16,7 @@ from scapy.fields import PacketListField, ShortEnumField, ShortField, \
417 StrNullField
418 from scapy.automaton import ATMT, Automaton
419 from scapy.layers.inet import UDP, IP
420-from scapy.modules.six.moves import range
421+from six.moves import range
422 from scapy.config import conf
423 from scapy.volatile import RandShort
424
425diff --git a/scapy/layers/tls/cert.py b/scapy/layers/tls/cert.py
426index b6eb0af2..293ef971 100644
427--- a/scapy/layers/tls/cert.py
428+++ b/scapy/layers/tls/cert.py
429@@ -33,8 +33,8 @@ import os
430 import time
431
432 from scapy.config import conf, crypto_validator
433-import scapy.modules.six as six
434-from scapy.modules.six.moves import range
435+import six
436+from six.moves import range
437 from scapy.error import warning
438 from scapy.utils import binrepr
439 from scapy.asn1.asn1 import ASN1_BIT_STRING
440diff --git a/scapy/layers/tls/crypto/prf.py b/scapy/layers/tls/crypto/prf.py
441index 210f9108..cb56f247 100644
442--- a/scapy/layers/tls/crypto/prf.py
443+++ b/scapy/layers/tls/crypto/prf.py
444@@ -13,7 +13,7 @@ from scapy.utils import strxor
445
446 from scapy.layers.tls.crypto.hash import _tls_hash_algs
447 from scapy.layers.tls.crypto.h_mac import _tls_hmac_algs
448-from scapy.modules.six.moves import range
449+from six.moves import range
450 from scapy.compat import bytes_encode
451
452
453diff --git a/scapy/modules/krack/crypto.py b/scapy/modules/krack/crypto.py
454index a4803def..69cc678a 100644
455--- a/scapy/modules/krack/crypto.py
456+++ b/scapy/modules/krack/crypto.py
457@@ -6,8 +6,8 @@ from zlib import crc32
458 from cryptography.hazmat.primitives.ciphers import Cipher, algorithms
459 from cryptography.hazmat.backends import default_backend
460
461-import scapy.modules.six as six
462-from scapy.modules.six.moves import range
463+import six
464+from six.moves import range
465 from scapy.compat import orb, chb
466 from scapy.layers.dot11 import Dot11TKIP
467 from scapy.utils import mac2str
468diff --git a/scapy/modules/p0f.py b/scapy/modules/p0f.py
469index 74ee9f16..5bca0bec 100644
470--- a/scapy/modules/p0f.py
471+++ b/scapy/modules/p0f.py
472@@ -24,7 +24,7 @@ from scapy.error import warning, Scapy_Exception, log_runtime
473 from scapy.volatile import RandInt, RandByte, RandNum, RandShort, RandString
474 from scapy.sendrecv import sniff
475 from scapy.modules import six
476-from scapy.modules.six.moves import map, range
477+from six.moves import map, range
478 if conf.route is None:
479 # unused import, only to initialize conf.route
480 import scapy.route # noqa: F401
481diff --git a/scapy/modules/voip.py b/scapy/modules/voip.py
482index 420ed641..9aa3cceb 100644
483--- a/scapy/modules/voip.py
484+++ b/scapy/modules/voip.py
485@@ -18,7 +18,7 @@ from scapy.layers.inet import IP, UDP
486 from scapy.layers.rtp import RTP
487 from scapy.consts import WINDOWS
488 from scapy.config import conf
489-from scapy.modules.six.moves import range
490+from six.moves import range
491
492
493 sox_base = (["sox", "-t", ".ul"], ["-", "-t", "ossdsp", "/dev/dsp"])
494diff --git a/scapy/plist.py b/scapy/plist.py
495index 6e959f9b..b9ba2d47 100644
496--- a/scapy/plist.py
497+++ b/scapy/plist.py
498@@ -27,8 +27,8 @@ from scapy.utils import do_graph, hexdump, make_table, make_lined_table, \
499 from scapy.extlib import plt, Line2D, \
500 MATPLOTLIB_INLINED, MATPLOTLIB_DEFAULT_PLOT_KARGS
501 from functools import reduce
502-import scapy.modules.six as six
503-from scapy.modules.six.moves import range, zip
504+import six
505+from six.moves import range, zip
506
507 # typings
508 from scapy.compat import (
509diff --git a/scapy/pton_ntop.py b/scapy/pton_ntop.py
510index ba023a77..fd3e2522 100644
511--- a/scapy/pton_ntop.py
512+++ b/scapy/pton_ntop.py
513@@ -14,7 +14,7 @@ from __future__ import absolute_import
514 import socket
515 import re
516 import binascii
517-from scapy.modules.six.moves import range
518+from six.moves import range
519 from scapy.compat import plain_str, hex_bytes, bytes_encode, bytes_hex
520
521 from scapy.compat import (
522diff --git a/scapy/scapypipes.py b/scapy/scapypipes.py
523index 1cbd43cb..e8553493 100644
524--- a/scapy/scapypipes.py
525+++ b/scapy/scapypipes.py
526@@ -7,7 +7,7 @@ from __future__ import print_function
527 import socket
528 import subprocess
529
530-from scapy.modules.six.moves.queue import Queue, Empty
531+from six.moves.queue import Queue, Empty
532 from scapy.pipetool import Source, Drain, Sink
533 from scapy.config import conf
534 from scapy.compat import raw
535diff --git a/scapy/sendrecv.py b/scapy/sendrecv.py
536index 503c6a3b..372668de 100644
537--- a/scapy/sendrecv.py
538+++ b/scapy/sendrecv.py
539@@ -36,7 +36,7 @@ from scapy.plist import (
540 from scapy.error import log_runtime, log_interactive, Scapy_Exception
541 from scapy.base_classes import Gen, SetGen
542 from scapy.modules import six
543-from scapy.modules.six.moves import map
544+from six.moves import map
545 from scapy.sessions import DefaultSession
546 from scapy.supersocket import SuperSocket, IterSocket
547
548diff --git a/scapy/tools/UTscapy.py b/scapy/tools/UTscapy.py
549index 18e01659..a045bd49 100644
550--- a/scapy/tools/UTscapy.py
551+++ b/scapy/tools/UTscapy.py
552@@ -27,8 +27,8 @@ import warnings
553 import zlib
554
555 from scapy.consts import WINDOWS
556-import scapy.modules.six as six
557-from scapy.modules.six.moves import range
558+import six
559+from six.moves import range
560 from scapy.config import conf
561 from scapy.compat import base64_bytes, bytes_hex, plain_str
562 from scapy.themes import DefaultTheme, BlackAndWhite
563diff --git a/scapy/utils.py b/scapy/utils.py
564index 12747fa6..09002915 100644
565--- a/scapy/utils.py
566+++ b/scapy/utils.py
567@@ -28,8 +28,8 @@ import time
568 import threading
569 import warnings
570
571-import scapy.modules.six as six
572-from scapy.modules.six.moves import range, input, zip_longest
573+import six
574+from six.moves import range, input, zip_longest
575
576 from scapy.config import conf
577 from scapy.consts import DARWIN, OPENBSD, WINDOWS
578diff --git a/scapy/volatile.py b/scapy/volatile.py
579index 5587c7ce..f7e1b326 100644
580--- a/scapy/volatile.py
581+++ b/scapy/volatile.py
582@@ -21,7 +21,7 @@ import struct
583 from scapy.base_classes import Net
584 from scapy.compat import bytes_encode, chb, plain_str
585 from scapy.utils import corrupt_bits, corrupt_bytes
586-from scapy.modules.six.moves import range
587+from six.moves import range
588
589 ####################
590 # Random numbers #