mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 13:50:08 +02:00
35 lines
977 B
Plaintext
35 lines
977 B
Plaintext
From 3121461f75fe0ef1aed4c25644d854812d8e74f3 Mon Sep 17 00:00:00 2001
|
|
From: Oscar Lesta <oscar.lesta@gmail.com>
|
|
Date: Thu, 8 Jun 2023 17:01:32 -0300
|
|
Subject: Drop colorama dependency.
|
|
|
|
|
|
diff --git a/icecream/icecream.py b/icecream/icecream.py
|
|
index 410921f..fce2380 100755
|
|
--- a/icecream/icecream.py
|
|
+++ b/icecream/icecream.py
|
|
@@ -23,7 +23,7 @@ from contextlib import contextmanager
|
|
from os.path import basename, realpath
|
|
from textwrap import dedent
|
|
|
|
-import colorama
|
|
+#import colorama
|
|
import executing
|
|
from pygments import highlight
|
|
# See https://gist.github.com/XVilka/8346728 for color support in various
|
|
@@ -60,9 +60,9 @@ def colorize(s):
|
|
def supportTerminalColorsInWindows():
|
|
# Filter and replace ANSI escape sequences on Windows with equivalent Win32
|
|
# API calls. This code does nothing on non-Windows systems.
|
|
- colorama.init()
|
|
+# colorama.init()
|
|
yield
|
|
- colorama.deinit()
|
|
+# colorama.deinit()
|
|
|
|
|
|
def stderrPrint(*args):
|
|
--
|
|
2.37.3
|
|
|