mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-17 20:35:40 +02:00
changed staticmethods to classmethods
This commit is contained in:
@@ -38,8 +38,8 @@ class PebMasquerade(interfaces.plugins.PluginInterface):
|
||||
),
|
||||
]
|
||||
|
||||
@staticmethod
|
||||
def _get_cmdline_image(cmdline: str) -> Union[str, PureWindowsPath]:
|
||||
@classmethod
|
||||
def _get_cmdline_image(cls, cmdline: str) -> Union[str, PureWindowsPath]:
|
||||
"""Extract the executable path from a command line string.
|
||||
|
||||
Args:
|
||||
@@ -71,8 +71,10 @@ class PebMasquerade(interfaces.plugins.PluginInterface):
|
||||
|
||||
return ""
|
||||
|
||||
@staticmethod
|
||||
def _are_paths_equal(device_path: str, drive_path: str) -> Tuple[bool, str, str]:
|
||||
@classmethod
|
||||
def _are_paths_equal(
|
||||
cls, device_path: str, drive_path: str
|
||||
) -> Tuple[bool, str, str]:
|
||||
"""Compare two paths to see if they are equal, ignoring drive/device root and case.
|
||||
|
||||
Args:
|
||||
|
||||
Reference in New Issue
Block a user