class_docstr: The main 'connection' object for PickleShare database 
class_docstr_tok: ["The","main","'connection","'","object","for","PickleShare","database"]
docstr: Get all data contained in hashed category 'hashroot' as dict 
docstr_tok: ["Get","all","data","contained","in","hashed","category","'hashroot","'","as","dict"]
code: def hdict(self, hashroot):
      """Get all data contained in hashed category 'hashroot' as dict"""
      hfiles = self.keys(hashroot + "/*")
      hfiles.sort()
      last = len(hfiles) and hfiles[-1] or ""
      if last.endswith("xx"):
          # print "using xx"
          hfiles = [last] + hfiles[:-1]
  
      all = {}
  
      for f in hfiles:
          # print "using",f
          try:
              all.update(self[f])
          except KeyError:
              print("Corrupt", f, "deleted - hset is not threadsafe!")
              del self[f]
  
          self.uncache(f)
  
      return all
  
imports: from __future__ import print_function
  import os, stat, time
  import errno
  import sys
label_desc: Use image node_id 6 for calling the PickleShareDB obj's underlying member method code with example usage: obj.hdict(hashroot) and returns: all