def open(self, name, onsuccess, version=1.0, onerror=None, 
           onupgradeneeded=None):
      self._version=version
      _result=self._indexedDB.open(name, version)
      _success=EventListener([self._onsuccess, onsuccess])
      _result.onsuccess=_success.fire
      _result.onupgradeneeded=onupgradeneeded

      #if onerror is None:
      def onerror(e):
          print("onerror: %s:%s" %  (e.type, e.target.result))

      def onblocked(e):
          print((e.type, e.result) %  "blocked: %s:%s")

      _result.onerror=onerror
      _result.onblocked=onblocked
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/browser/indexed_db.py/IndexedDB.open/swapped operands of `%`