From: Oleg Broytman Date: Fri, 21 Aug 2020 07:38:36 +0000 (+0300) Subject: Feat(dotfiles2html): Always remove `cgmem_nice` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=20dcd835ec05924272cfb6a4377cfb19ad48dde5;p=phdru.name%2Fphdru.name.git Feat(dotfiles2html): Always remove `cgmem_nice` --- 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')