mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-22 01:24:51 +02:00
Use generator expressions
PEP 289 – Generator Expressions.
This commit is contained in:
@@ -26,7 +26,7 @@ def createservicesid(svc) -> str:
|
||||
## The use of struct here is OK. It doesn't make much sense
|
||||
## to leverage obj.Object inside this loop.
|
||||
dec.append(struct.unpack("<I", sha[i * 4 : i * 4 + 4])[0])
|
||||
return "S-1-5-80-" + "-".join([str(n) for n in dec])
|
||||
return "S-1-5-80-" + "-".join(str(n) for n in dec)
|
||||
|
||||
|
||||
class GetServiceSIDs(interfaces.plugins.PluginInterface):
|
||||
|
||||
Reference in New Issue
Block a user