/stdhome

To get this branch, use:
bzr branch http://bzr.ed.am/stdhome

« back to all changes in this revision

Viewing changes to lib/stdhome/file_matcher.py

  • Committer: Tim Marston
  • Date: 2014-04-05 22:27:09 UTC
  • Revision ID: tim@ed.am-20140405222709-4mp50aiu184blnf1
fixed file_matcher

Show diffs side-by-side

added added

removed removed

19
19
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
20
 
21
21
 
22
 
import os
 
22
import os, re
23
23
 
24
24
 
25
25
class FileMatcher:
26
26
 
 
27
        patterns = list()
 
28
 
27
29
 
28
30
        def __init__( self, file, section = None ):
29
31
                self.file = file
30
 
                self.patterns = list()
 
32
                self.section = section
31
33
                self.read()
32
34
 
33
35