Howdy,
This is fixable with a very simple patch, though I'm not sure what the
downside of it is:
--- a/usr/bin/pastebinit/pastebinit 2016-03-01 00:52:32.000000000 -0500
+++ b/usr/bin/pastebinit/pastebinit 2019-07-06 19:39:43.280603245 -0400
@@ -349,7 +348,7 @@
content = sys.stdin.read()
else:
try:
- with open(filename, "rb") as fd:
+ with open(filename, "r") as fd:
content = fd.read()
except KeyboardInterrupt:
print(_("KeyboardInterrupt caught."), file=sys.stderr)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1785821
Title:
"pastebinit -i file" to paste.openstack.org fails: Object of type
'bytes' is not JSON serializable
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pastebinit/+bug/1785821/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs