Skip to content

Instantly share code, notes, and snippets.

View carlsmith's full-sized avatar

Carl Smith carlsmith

  • Cambridgeshire, UK
View GitHub Profile
@Natim
Natim / ini2json.py
Created January 11, 2013 10:21
Convert an ini configuration file into a json file
# -*- coding: utf-8 -*-
import json
import sys
from ConfigParser import (ConfigParser, MissingSectionHeaderError,
ParsingError, DEFAULTSECT)
class StrictConfigParser(ConfigParser):
def _read(self, fp, fpname):