You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/osrf_pycommon/files/str.patch

24 lines
1.0 KiB

From 515fd938513b8e458ce5fb3c937c100a3bc87745 Mon Sep 17 00:00:00 2001
From: Chris Lalancette <clalancette@openrobotics.org>
Date: Fri, 19 Jun 2020 17:48:05 -0400
Subject: [PATCH] Fix the __str__ method for windows terminal_color. (#65)
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
---
osrf_pycommon/terminal_color/windows.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/osrf_pycommon/terminal_color/windows.py b/osrf_pycommon/terminal_color/windows.py
index f0f6120..21f5e8f 100644
--- a/osrf_pycommon/terminal_color/windows.py
+++ b/osrf_pycommon/terminal_color/windows.py
@@ -224,7 +224,7 @@ class CONSOLE_SCREEN_BUFFER_INFO(ctypes.Structure):
def __str__(self):
return (
- '({0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0})'
+ '({0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10})'
.format(
self.dwSize.Y, self.dwSize.X,
self.dwCursorPosition.Y, self.dwCursorPosition.X,