Esempio n. 1
0
 def _do_munge_raw_selection_to_wire(self, target, dtype, dformat, data):
     #override so we can catch weird OSX data:
     if dformat == 0 and dtype == "NONE":
         log("got 'NONE' data from clipboard")
         return None, None
     return TranslatedClipboardProtocolHelper._do_munge_raw_selection_to_wire(
         self, target, dtype, dformat, data)
Esempio n. 2
0
 def _do_munge_raw_selection_to_wire(self, target, dtype, dformat, data):
     #override so we can catch weird OSX data:
     if dformat == 0 and dtype=="NONE":
         log("got 'NONE' data from clipboard")
         return None, None
     return TranslatedClipboardProtocolHelper._do_munge_raw_selection_to_wire(self, target, dtype, dformat, data)