Made collections python module required only for 'pot-update' scons target.
This commit is contained in:
parent
cba8441ac7
commit
bbf5cc114e
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,6 @@ import os, shutil
|
|||
import re
|
||||
from fnmatch import fnmatch
|
||||
from os.path import join, walk
|
||||
from collections import defaultdict
|
||||
Import("env")
|
||||
|
||||
def remove_pot_cdate(path):
|
||||
|
@ -29,6 +28,7 @@ textdomains = filter(os.path.isdir, textdomains)
|
|||
linguas = Split(open("LINGUAS").read())
|
||||
|
||||
if "pot-update" in COMMAND_LINE_TARGETS:
|
||||
from collections import defaultdict
|
||||
domain_sources = defaultdict(list)
|
||||
def fill_source_list(arg, dir, files):
|
||||
for file in files:
|
||||
|
|
Loading…
Add table
Reference in a new issue