From 910445b941c8b1ac9a6f9b22aa3f94a755c4cc19 Mon Sep 17 00:00:00 2001 From: fcolecumberri Date: Thu, 9 May 2024 22:24:46 +0000 Subject: [PATCH] Solves https://github.com/will8211/unimatrix/issues/56 Solves https://github.com/will8211/unimatrix/issues/56 On newer python there are some warnings about the way some strings are used. --- unimatrix.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unimatrix.py b/unimatrix.py index 098f928..8edcd33 100755 --- a/unimatrix.py +++ b/unimatrix.py @@ -29,7 +29,7 @@ import time from random import choice, randint -help_msg = ''' +help_msg = r''' USAGE unimatrix [-a] [-b] [-c COLOR] [-f] [-g COLOR] [-h] [-l CHARACTER_LIST] [-n] [-o] [-s SPEED] [-u CUSTOM_CHARACTERS] @@ -228,13 +228,13 @@ '1234567890-=*_+|:<>"-=*_+|:<>"-=*_+|:<>"-=*_+|:<>"', 'n': '1234567890', 'o': 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890' - '`-=~!@#$%^&*()_+[]{}|\;\':",./<>?"', + r'`-=~!@#$%^&*()_+[]{}|\;\':",./<>?"', 'p': '', 'P': '', 'r': 'mcclllxxxxvvvvviiiiii', 'R': 'MCCLLLXXXXVVVVVIIIIII', 's': '-=*_+|:<>"', - 'S': '`-=~!@#$%^&*()_+[]{}|\;\':",./<>?"', + 'S': r'`-=~!@#$%^&*()_+[]{}|\;\':",./<>?"', 'u': args.custom_characters} colors_str = {