Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, basedir):
FontProject.__init__(self)
config = ConfigParser.RawConfigParser()
config.read(os.path.join(basedir, 'res', 'roboto.cfg'))
self.no_italic = config.get('glyphs', 'noitalic').split()
self.less_italic = config.get('glyphs', 'lessitalic').split()
stem_widths = config.get('params', 'stem_widths').splitlines()
self.stem_widths = dict(l.split() for l in stem_widths if l)