comparison 0.9.x/scripts/dump_data.py @ 263:5b7d3f9f7d74 stable

Create branch for 0.9.x maintenance.
author cmlenz
date Mon, 20 Aug 2007 08:34:32 +0000
parents
children 6a0e7205790f
comparison
equal deleted inserted replaced
197:79565db4faf0 263:5b7d3f9f7d74
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 #
4 # Copyright (C) 2007 Edgewall Software
5 # All rights reserved.
6 #
7 # This software is licensed as described in the file COPYING, which
8 # you should have received as part of this distribution. The terms
9 # are also available at http://babel.edgewall.org/wiki/License.
10 #
11 # This software consists of voluntary contributions made by many
12 # individuals. For the exact contribution history, see the revision
13 # history and logs, available at http://babel.edgewall.org/log/.
14
15 from pprint import pprint
16 import sys
17
18 from babel.localedata import load
19
20 if len(sys.argv) > 2:
21 pprint(load(sys.argv[1]).get(sys.argv[2]))
22 else:
23 pprint(load(sys.argv[1]))
Copyright (C) 2012-2017 Edgewall Software