X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Flib%2Fsimastr.py;h=ec82d91510bd57c724e829ff968ff34bb9e27e3e;hb=beba5ba73dbb1b5c4d6161e472f89fe18f14aeeb;hp=033a994e23f7bea76b99db648570426c8a62e4ad;hpb=37dd60538984a3917354b794a5c96b0a025f8e95;p=mpd-sima.git diff --git a/sima/lib/simastr.py b/sima/lib/simastr.py index 033a994..ec82d91 100644 --- a/sima/lib/simastr.py +++ b/sima/lib/simastr.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (c) 2009, 2010, 2013 kaliko +# Copyright (c) 2009, 2010, 2013, 2021 kaliko # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as @@ -81,7 +81,7 @@ class SimaStr(str): """ diafilter = True leven_ratio = 0.82 - regexp_dict = dict() + regexp_dict = {} # Leading patterns: The Le Les # case-insensitive matching for this RE @@ -102,6 +102,7 @@ class SimaStr(str): def __init__(self, fuzzstr): """ """ + super().__init__() self.orig = str(fuzzstr) self.stripped = str(fuzzstr.strip()) # fuzzy computation