Skip to content

Commit

Permalink
drop python2 support in wmi.py and ese.py
Browse files Browse the repository at this point in the history
  • Loading branch information
NtAlexio2 committed Sep 3, 2024
1 parent 83876d6 commit 695d7f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions impacket/dcerpc/v5/dcom/wmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import collections.abc
import logging
import six
from collections import OrderedDict

from impacket.dcerpc.v5.ndr import NDRSTRUCT, NDRUniConformantArray, NDRPOINTER, NDRUniConformantVaryingArray, NDRUNION, \
NDRENUM
Expand Down Expand Up @@ -57,13 +58,6 @@ def format_structure(d, level=0):
else:
x = str(d)
return x
try:
from collections import OrderedDict
except:
try:
from ordereddict.ordereddict import OrderedDict
except:
from ordereddict import OrderedDict

class DCERPCSessionError(DCERPCException):
def __init__(self, error_string=None, error_code=None, packet=None):
Expand Down
8 changes: 1 addition & 7 deletions impacket/ese.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,7 @@
from __future__ import division
from __future__ import print_function
from impacket import LOG
try:
from collections import OrderedDict
except:
try:
from ordereddict.ordereddict import OrderedDict
except:
from ordereddict import OrderedDict
from collections import OrderedDict
from impacket.structure import Structure, hexdump
from struct import unpack
from binascii import hexlify
Expand Down

0 comments on commit 695d7f5

Please sign in to comment.