Show More
@@ -30,7 +30,7 b' def osx_clipboard_get():' | |||||
30 | stdout=subprocess.PIPE) |
|
30 | stdout=subprocess.PIPE) | |
31 | text, stderr = p.communicate() |
|
31 | text, stderr = p.communicate() | |
32 | # Text comes in with old Mac \r line endings. Change them to \n. |
|
32 | # Text comes in with old Mac \r line endings. Change them to \n. | |
33 | text = text.replace('\r', '\n') |
|
33 | text = text.replace(b'\r', b'\n') | |
34 | text = py3compat.cast_unicode(text, py3compat.DEFAULT_ENCODING) |
|
34 | text = py3compat.cast_unicode(text, py3compat.DEFAULT_ENCODING) | |
35 | return text |
|
35 | return text | |
36 |
|
36 |
General Comments 0
You need to be logged in to leave comments.
Login now