~mszamot-gmail/automatictexplugin/atp-vim

« back to all changes in this revision

Viewing changes to ftplugin/ATP_files/latextags.py

  • Committer: mszamotulski
  • Date: 2012-04-27 10:21:38 UTC
  • Revision ID: svn-v4:0f6a0787-2b0d-4cb9-afe4-9962f7273948:trunk:413
Version 11 (first commit).
Small changes in .py scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python
 
2
# -*- coding: utf-8 -*-
2
3
 
3
4
import re, optparse, subprocess, os, traceback, sys
4
5
from optparse import OptionParser
101
102
# file_dict is a dictionary with { 'file_name' : file }.
102
103
    r_file = ""
103
104
    r_type = ""
104
 
    for file in file_dict.keys():
 
105
    for file in file_dict.iterkeys():
105
106
        flinenr=1
106
107
        for line in file_dict[file]:
107
108
            pat_match=re.search(match, line)