From 20dcd835ec05924272cfb6a4377cfb19ad48dde5 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 21 Aug 2020 10:38:36 +0300 Subject: [PATCH] Feat(dotfiles2html): Always remove `cgmem_nice` --- dotfiles2html/dotfiles2html.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dotfiles2html/dotfiles2html.py b/dotfiles2html/dotfiles2html.py index e8e52ae..7c6f95a 100755 --- a/dotfiles2html/dotfiles2html.py +++ b/dotfiles2html/dotfiles2html.py @@ -5,6 +5,7 @@ __copyright__ = "Copyright (C) 2004-2020 PhiloSoft Design" import filecmp import os +import re import shutil os.umask(0022) # octal; -rw-r--r-- @@ -79,6 +80,8 @@ def process_dotfile(i, fname, ftype, file_types): text = file.read() file.close() + text = re.sub('cgmem_nice \d+ ', '', text) + if fname in ('mailcap', 'mc.ext', 'menu'): file = open(fname, 'w') text = text.replace('mplay', 'mplayer') -- 2.39.2