Esempio n. 1
0
 def send(self, *args):
     if hasattr(self, "bser_version"):
         cmd = bser.dumps(*args,
                          version=self.bser_version,
                          capabilities=self.bser_capabilities)
     else:
         cmd = bser.dumps(*args)
     self.transport.write(cmd)
Esempio n. 2
0
 def send(self, *args):
     cmd = bser.dumps(*args)  # Defaults to BSER v1
     self.transport.write(cmd)