Perhaps this is a silly question, but why doesn't this code work in python 2.7?
from ConfigParser import ConfigParser
class MyParser(ConfigParser):
def __init__(self, cpath):
super(MyParser, self).__init__()
self.configpath = cpath
self.read(self.configpath)
It fails on:
TypeError: must be type, not classobj
on the super()
line.