Fredrik Fornwall
6 years ago
4 changed files with 16 additions and 39 deletions
@ -0,0 +1,14 @@ |
|||
diff -u -r ../asciinema-2.0.2/asciinema/__main__.py ./asciinema/__main__.py
|
|||
--- ../asciinema-2.0.2/asciinema/__main__.py 2019-01-12 18:58:29.000000000 +0000
|
|||
+++ ./asciinema/__main__.py 2019-01-16 21:07:50.834574609 +0000
|
|||
@@ -50,10 +50,6 @@
|
|||
|
|||
|
|||
def main(): |
|||
- if locale.nl_langinfo(locale.CODESET).upper() not in ['US-ASCII', 'UTF-8']:
|
|||
- print("asciinema needs an ASCII or UTF-8 character encoding to run. Check the output of `locale` command.")
|
|||
- sys.exit(1)
|
|||
-
|
|||
try: |
|||
cfg = config.load() |
|||
except config.ConfigError as e: |
@ -1,23 +0,0 @@ |
|||
See https://github.com/asciinema/asciinema/issues/271 |
|||
|
|||
diff -u -r ../asciinema-2.0.1/asciinema/asciicast/v2.py ./asciinema/asciicast/v2.py
|
|||
--- ../asciinema-2.0.1/asciinema/asciicast/v2.py 2018-04-04 09:05:41.000000000 +0200
|
|||
+++ ./asciinema/asciicast/v2.py 2018-04-06 23:24:44.432657505 +0200
|
|||
@@ -4,7 +4,16 @@
|
|||
import json.decoder |
|||
import time |
|||
import codecs |
|||
-from multiprocessing import Process, Queue
|
|||
+
|
|||
+try:
|
|||
+ # Importing synchronize is to detect platforms where
|
|||
+ # multiprocessing does not work (python issue 3770)
|
|||
+ # and cause an ImportError. Otherwise it will happen
|
|||
+ # later when trying to use Queue().
|
|||
+ from multiprocessing import synchronize, Process, Queue
|
|||
+except ImportError:
|
|||
+ from threading import Thread as Process
|
|||
+ from queue import Queue
|
|||
|
|||
from asciinema.pty_recorder import PtyRecorder |
|||
|
@ -1,13 +0,0 @@ |
|||
--- ../__main__.py.orig 2018-12-28 15:18:49.567468833 +0100
|
|||
+++ ./asciinema/__main__.py 2018-12-28 15:19:17.550800251 +0100
|
|||
@@ -50,10 +50,6 @@
|
|||
|
|||
|
|||
def main(): |
|||
- if locale.nl_langinfo(locale.CODESET).upper() != 'UTF-8':
|
|||
- print("asciinema needs a UTF-8 native locale to run. Check the output of `locale` command.")
|
|||
- sys.exit(1)
|
|||
-
|
|||
try: |
|||
cfg = config.load() |
|||
except config.ConfigError as e: |
Loading…
Reference in new issue