mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 10:31:17 +00:00
Since we can rely on map files to have a .map extension now,
...simplify a test a bit and remove an explicit list of exception extensions.
This commit is contained in:
parent
d3e819dd22
commit
2d07184bc9
@ -1052,14 +1052,11 @@ def translator(filename, mapxforms, textxform):
|
||||
else:
|
||||
return None
|
||||
|
||||
ignore = (".tgz", ".png", ".jpg", "-bak")
|
||||
vctypes = (".svn", ".git")
|
||||
|
||||
def interesting(fn):
|
||||
"Is a file interesting for conversion purposes?"
|
||||
return fn.endswith(".cfg") or fn.endswith(".map") \
|
||||
or ("maps" in fn and fn[-4:] not in ignore) \
|
||||
or is_map(fn)
|
||||
return fn.endswith(".cfg") or is_map(fn)
|
||||
|
||||
def allcfgfiles(dir):
|
||||
"Get the names of all interesting files under dir."
|
||||
|
Loading…
x
Reference in New Issue
Block a user