williballenthin / python-registry

Pure Python parser for Windows Registry hives.
Apache License 2.0
426 stars 101 forks source link

List comprehension syntax error in usage #87

Closed nrwall closed 5 years ago

nrwall commented 5 years ago

In the usage examples to "Find a key and print all string values" i believe there is a syntax error in the list comprehension.

for value in [v for v key.values() \ if v.value_type() == Registry.RegSZ or \ v.value_type() == Registry.RegExpandSZ]:

should be

for value in [v for v in key.values() \ if v.value_type() == Registry.RegSZ or \ v.value_type() == Registry.RegExpandSZ]:

williballenthin commented 5 years ago

good catch, thanks!

fixed in readme