@@ -0,0 +1,945 @@
+from __future__ import print_function%0Afrom __future__ import unicode_literals%0A%0Aimport sys%0Afrom Registry import *%0A%0A%0Adef format_key(key):%0A    return %22key%7C%7Bpath%7D%7C%7Bts%7D%22.format(%0A            path=key.path(),%0A            ts=key.timestamp().isoformat(chr(ord(%22T%22))) + %22Z%22)%0A%0A%0Adef format_value(key, value):%0A    try:%0A        h = %22 %22.join(%5B%22%2502X%22 %25 (ord(c)) for c in value.raw_data()%5D)%0A    except RegistryParse.UnknownTypeException:%0A        h = %22UNKNOWN_TYPE_SO_UNKNOWN_DATA%22%0A    return %22value%7C%7Bpath%7D%7C%7Bname%7D%7C%7Btype%7D%7C%7Bhex%7D%22.format(%0A            path=key.path(),%0A            name=value.name(),%0A            type=value.value_type(),%0A            hex=h)%0A%0A%0Adef handle_key(key):%0A    print(format_key(key))%0A%0A%0Adef handle_value(key, value):%0A    print(format_value(key, value))%0A%0A%0Adef rec(key, depth=0):%0A    handle_key(key)%0A    for value in key.values():%0A        handle_value(key, value)%0A    map(rec, key.subkeys())%0A%0A%0Areg = Registry.Registry(sys.argv%5B1%5D)%0Arec(reg.root())%0A%0A

add test_dump.py