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)
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 pastebinit/ pastebinit 2019-07-06 19:39:43.280603245 -0400
content = sys.stdin.read()
content = fd.read()
print( _("KeyboardInte rrupt caught."), file=sys.stderr)
+++ b/usr/bin/
@@ -349,7 +348,7 @@
else:
try:
- with open(filename, "rb") as fd:
+ with open(filename, "r") as fd:
except KeyboardInterrupt: