Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

#!/usr/bin/env python 

# This file is part of the pyMOR project (http://www.pymor.org). 

# Copyright Holders: Rene Milk, Stephan Rave, Felix Schindler 

# License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) 

 

import pprint 

import sys 

if sys.version_info >= (3, 0, 0): 

    import dbm 

else: 

    import anydbm as dbm 

 

 

def output(filename): 

    db = dbm.open(filename, 'r') 

    pprint.pprint(db.items()) 

    db.close() 

 

 

if __name__ == '__main__': 

    for fn in sys.argv[1:]: 

        output(fn)