def __WriteDatastore(self):
    if self.__IsSaveable():
      encoded = []
      for kind_dict in self.__entities_by_kind.values():
        encoded.extend(entity.encoded_protobuf for entity in kind_dict.values())

      self.__WritePickled(encoded, self.__datastore_file)
Source all the handler source files in the scan_dir directory.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/datastore_file_stub.py/DatastoreFileStub.__WriteDatastore--crossover with--dataset/ETHPy150Open google/pywebsocket/mod_pywebsocket/dispatch.py/Dispatcher._source_handler_files_in_dir