File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -558,7 +558,7 @@ def CopyBranch(self, startnode):
558558 cdata = cdata .stripped ()
559559 cdata .type = nodetype
560560 cdatabytes = safeCPickleDumps (cdata )
561- cdatabytes = " pdfgui_cliboard=" + cdatabytes
561+ cdatabytes = ' pdfgui_cliboard=' . encode () + cdatabytes
562562 #wxpython only accepts str, use base64 to convert bytes to str
563563 cdatastring = base64 .b64encode (cdatabytes )
564564 textdata = wx .TextDataObject (cdatastring )
@@ -593,9 +593,9 @@ def GetClipboard(self):
593593 try :
594594 cdatabytes = base64 .b64decode (cdatastring .encode ())
595595
596- if cdatabytes [:16 ] == b 'pdfgui_cliboard=' :
596+ if cdatabytes [:16 ] == 'pdfgui_cliboard=' . encode () :
597597 cdatabytes = cdatabytes [16 :]
598- cdata = pickle_loads (cdatastring )
598+ cdata = pickle_loads (cdatabytes )
599599 except :
600600 pass
601601 return cdata
You can’t perform that action at this time.
0 commit comments