Please consider sending a pull request! > On Mar 10, 2018, at 6:27 AM, jhermann <[email protected]> wrote: > >> On Sunday, March 4, 2018 at 4:57:05 PM UTC+1, Adrian Sampson wrote: >> Hmm; this looks bad! > > Well, what do you expect when using private identifiers? Better code: > > if hasattr(value1, 'match'): > return bool(value1.match(value2)) > return value1 == value2 > > Other options are a try/except, or `def _eq(self, value1, value2, > _re_type=type(re.compile('.'))):`. > -- > You received this message because you are subscribed to the Google Groups > "beets" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout.
-- You received this message because you are subscribed to the Google Groups "beets" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
