Skip to content

Commit

Permalink
#2309 got_contents needs the data type
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@22793 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed May 27, 2019
1 parent 124e8c7 commit dcc8c98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xpra/platform/win32/clipboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@ def got_contents(dtype, dformat, data):
def get_contents(self, target, got_contents):
def got_text(text):
log("got_text(%s)", repr_ellipsized(bytestostr(text)))
got_contents("bytes", 8, text)
got_contents("text/plain", 8, text)
def errback(error_text):
log.error("Error: failed to get clipboard data")
log.error(" %s", error_text)
got_contents("bytes", 8, b"")
got_contents("text/plain", 8, b"")
self.get_clipboard_text(got_text, errback)

def got_token(self, targets, target_data=None, claim=True, _synchronous_client=False):
Expand Down

0 comments on commit dcc8c98

Please sign in to comment.