77import functools
88import binascii
99import stat
10- from datetime import datetime
10+ import datetime
1111import socket as socket_module
1212from typing import Generator , Iterable , Iterator , Optional , Tuple , List , Union , Dict
1313
1414from volatility3 .framework import constants , exceptions , objects , interfaces , symbols
1515from volatility3 .framework .renderers import conversion
16- from volatility3 .framework .configuration import requirements
1716from volatility3 .framework .constants .linux import SOCK_TYPES , SOCK_FAMILY
1817from volatility3 .framework .constants .linux import IP_PROTOCOLS , IPV6_PROTOCOLS
1918from volatility3 .framework .constants .linux import TCP_STATES , NETLINK_PROTOCOLS
@@ -1882,7 +1881,7 @@ def get_capabilities(self) -> int:
18821881
18831882
18841883class timespec64 (objects .StructType ):
1885- def to_datetime (self ) -> datetime :
1884+ def to_datetime (self ) -> datetime . datetime :
18861885 """Returns the respective aware datetime"""
18871886
18881887 dt = conversion .unixtime_to_datetime (self .tv_sec + self .tv_nsec / 1e9 )
@@ -1958,7 +1957,7 @@ def get_inode_type(self) -> Union[str, None]:
19581957 else :
19591958 return None
19601959
1961- def _time_member_to_datetime (self , member ) -> datetime :
1960+ def _time_member_to_datetime (self , member ) -> datetime . datetime :
19621961 if self .has_member (f"{ member } _sec" ) and self .has_member (f"{ member } _nsec" ):
19631962 # kernels >= 6.11 it's i_*_sec -> time64_t and i_*_nsec -> u32
19641963 # Ref Linux commit 3aa63a569c64e708df547a8913c84e64a06e7853
@@ -1977,7 +1976,7 @@ def _time_member_to_datetime(self, member) -> datetime:
19771976 "Unsupported kernel inode type implementation"
19781977 )
19791978
1980- def get_access_time (self ) -> datetime :
1979+ def get_access_time (self ) -> datetime . datetime :
19811980 """Returns the inode's last access time
19821981 This is updated when inode contents are read
19831982
@@ -1986,7 +1985,7 @@ def get_access_time(self) -> datetime:
19861985 """
19871986 return self ._time_member_to_datetime ("i_atime" )
19881987
1989- def get_modification_time (self ) -> datetime :
1988+ def get_modification_time (self ) -> datetime . datetime :
19901989 """Returns the inode's last modification time
19911990 This is updated when the inode contents change
19921991
@@ -1996,7 +1995,7 @@ def get_modification_time(self) -> datetime:
19961995
19971996 return self ._time_member_to_datetime ("i_mtime" )
19981997
1999- def get_change_time (self ) -> datetime :
1998+ def get_change_time (self ) -> datetime . datetime :
20001999 """Returns the inode's last change time
20012000 This is updated when the inode metadata changes
20022001
0 commit comments