mirror of
https://github.com/zulip/zulip.git
synced 2025-11-08 07:52:19 +00:00
get_all_templates should not return __init__.py.
This commit is contained in:
@@ -445,7 +445,8 @@ def get_all_templates():
|
|||||||
isfile = os.path.isfile
|
isfile = os.path.isfile
|
||||||
path_exists = os.path.exists
|
path_exists = os.path.exists
|
||||||
|
|
||||||
is_valid_template = lambda p, n: not n.startswith('.') and isfile(p)
|
def is_valid_template(p, n):
|
||||||
|
not n.startswith('.') and not n.startswith('__init__') and isfile(p)
|
||||||
|
|
||||||
def process(template_dir, dirname, fnames):
|
def process(template_dir, dirname, fnames):
|
||||||
# type: (str, str, Iterable[str]) -> None
|
# type: (str, str, Iterable[str]) -> None
|
||||||
|
|||||||
Reference in New Issue
Block a user