Changeset 97f136c in osmose-backend


Ignore:
Timestamp:
Mar 16, 2014 2:05:33 PM (6 years ago)
Author:
Jocelyn Jaubert <jocelyn.jaubert@…>
Branches:
master
Children:
106010b
Parents:
dd703c0
Message:

Move declaration of variables to init in plugin TagWatchFrViPofm?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/TagWatchFrViPofm.py

    r05b7744 r97f136c  
    2828class TagWatchFrViPofm(Plugin): 
    2929 
    30     _update_ks = {} 
    31     _update_kr = {} 
    32     _update_ks_vs = defaultdict(dict) 
    33     _update_kr_vs = defaultdict(dict) 
    34     _update_ks_vr = defaultdict(dict) 
    35     _update_kr_vr = defaultdict(dict) 
    36  
    3730    def quoted(self, string): 
    3831        return len(string)>=2 and string[0]==u"`" and string[-1]==u"`" 
     
    4639        country = self.father.config.options.get("country") if self.father else None 
    4740        language = self.father.config.options.get("language") if self.father else None 
     41 
     42        self._update_ks = {} 
     43        self._update_kr = {} 
     44        self._update_ks_vs = defaultdict(dict) 
     45        self._update_kr_vs = defaultdict(dict) 
     46        self._update_ks_vr = defaultdict(dict) 
     47        self._update_kr_vr = defaultdict(dict) 
    4848 
    4949        reline = re.compile("^\|([^|]*)\|\|([^|]*)\|\|([^|]*)\|\|(?:([^|]*)\|\|)?.*") 
Note: See TracChangeset for help on using the changeset viewer.