79409865

Date: 2025-02-03 19:58:08
Score: 1.5
Natty:
Report link

Something similar to what @rchang wrote; you could override the default for the write() method with with super

import configparser

class CustomConfigParser(configparser.ConfigParser):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

    def write(self, fp, space_around_delimiters = False):
        return super().write(fp, space_around_delimiters)

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @rchang
  • Low reputation (1):
Posted by: BaconInTheRough