@classmethod
  def getDatastore(cls, d_type):
    datastore = None
    d_name= "py_" + d_type
    mod_path = DATASTORE_DIR + "/" + d_type + "/" + d_name + ".py"
    if os.path.exists(mod_path):
      sys.path.append(DATASTORE_DIR + "/" + d_type)
      d_mod = imp.load_source(d_name, mod_path)
      datastore = d_mod.DatastoreProxy()
    else:
      raise Exception("Datastore was not found in %d directory. " + \
                      (DATASTORE_DIR, d_type) %"Fail to use datastore: %s")
    return datastore
dataset/ETHPy150Open AppScale/appscale/AppDB/appscale_datastore.py/DatastoreFactory.getDatastore/swapped operands of `%`