parameters: (cls, base, key)
return_statement: return L
docstring: Return list of registry keys.
docstring_summary: Return list of registry keys.
docstring_tokens: Return list of registry keys .
function: def read_keys(cls, base, key):
          """Return list of registry keys."""
          try:
              handle = RegOpenKeyEx(base, key)
          except RegError:
              return None
          L = []
          i = 0
          while True:
              try:
                  k = RegEnumKey(handle, i)
              except RegError:
                  break
              L.append(k)
              i += 1
          return L
function_tokens: def read_keys ( cls , base , key ) : try : handle = RegOpenKeyEx ( base , key ) except RegError : return None L = [ ] i = 0 while True : try : k = RegEnumKey ( handle , i ) except RegError : break L . append ( k ) i += 1 return L