Mercurial > hg > configuration
comparison configuration/config.py @ 4:92e1b2dd60c8
more stubbing
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 24 Mar 2012 22:14:59 -0700 |
parents | 35f57b21885f |
children | 7910b0ef0bab |
comparison
equal
deleted
inserted
replaced
3:1175fbabacaf | 4:92e1b2dd60c8 |
---|---|
4 multi-level unified configuration | 4 multi-level unified configuration |
5 """ | 5 """ |
6 | 6 |
7 import sys | 7 import sys |
8 import optparse | 8 import optparse |
9 | |
10 try: | |
11 import json | |
12 except ImportError: | |
13 try: | |
14 import simplejson as json | |
15 except ImportError: | |
16 json = None | |
17 | |
18 __all__ = ['Configuration'] | |
9 | 19 |
10 class Configuration(object): | 20 class Configuration(object): |
11 options = {} | 21 options = {} |
12 | 22 |
13 def __init__(self): | 23 def __init__(self): |