mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-17 20:35:40 +02:00
Minor typing fix.
This commit is contained in:
@@ -55,11 +55,10 @@ def wintime_to_datetime(wintime: int) -> typing.Union[
|
||||
except ValueError:
|
||||
return renderers.UnparsableValue()
|
||||
|
||||
def unixtime_to_datetime(unixtime: int) -> typing.Union[
|
||||
interfaces.renderers.BaseAbsentValue, datetime.datetime]:
|
||||
|
||||
ret = renderers.UnparsableValue()
|
||||
|
||||
def unixtime_to_datetime(unixtime: int) -> typing.Union[interfaces.renderers.BaseAbsentValue, datetime.datetime]:
|
||||
ret = renderers.UnparsableValue() # type: typing.Union[interfaces.renderers.BaseAbsentValue, datetime.datetime]
|
||||
|
||||
if unixtime > 0:
|
||||
try:
|
||||
ret = datetime.datetime.utcfromtimestamp(unixtime)
|
||||
@@ -68,6 +67,7 @@ def unixtime_to_datetime(unixtime: int) -> typing.Union[
|
||||
|
||||
return ret
|
||||
|
||||
|
||||
def round(addr: int, align: int, up: bool = False) -> int:
|
||||
"""Round an address up or down based on an alignment.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user