Module Import alias Import alias Import alias Import alias Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults ListLoad Str Str NameLoad body Expr Str Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body If NameLoad body If Call NameLoad keyword NameLoad keyword NameLoad body Continue If NameLoad body If UnaryOpNot Call NameLoad keyword NameLoad keyword NameLoad body Continue Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body If BoolOpAnd Call AttributeLoad NameLoad attr Str CompareEq Call AttributeLoad NameLoad attr Str Num body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Assign NameStore BinOpMod Str NameLoad Return NameLoad orelse Assign NameStore BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad orelse If CompareNotEq Call AttributeLoad NameLoad attr Str Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore BinOpAdd NameLoad Str With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str AugAssignAdd NameStore BinOpAdd Str NameLoad AugAssignAdd NameStore Str AugAssignAdd NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Assign NameStore Str Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num If Call AttributeLoad NameLoad attr Str body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword ListLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Return NameLoad Assign NameStore BinOpMod Str NameLoad Return NameLoad decorator_list Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore TupleLoad TupleLoad Str Str TupleLoad Str Str For TupleStore NameStore NameStore NameLoad body Assert CompareEq Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Print Call NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad Expr Call NameLoad
N/A N/A logging N/A os N/A re N/A commons N/A N/A N/A N/A N/A logging getLogger macro_cat setLevel N/A logging DEBUG match_in_re N/A N/A name patterns N/A N/A N/A p patterns N/A N/A re_obj N/A N/A re compile p N/A N/A N/A re_obj match name N/A N/A True N/A False N/A get_files_list N/A N/A path ignore_patterns match_patterns N/A N/A ^\.(.+?)$ ^(.+?)~$ None N/A N/A  `ignore_patterns` is a list of regular expressions, ignore '.DS_Store', 'foo~' etc by default.  N/A files N/A N/A pending_filename N/A N/A os listdir path N/A N/A ignore_patterns N/A N/A N/A match_in_re name pending_filename patterns ignore_patterns N/A N/A N/A match_patterns N/A N/A N/A N/A match_in_re name pending_filename patterns match_patterns N/A N/A N/A N/A N/A files append pending_filename N/A files N/A fix_pattern N/A N/A p N/A N/A N/A N/A N/A N/A N/A re compile p N/A N/A N/A N/A N/A N/A N/A p startswith *. N/A N/A N/A p count *. 1 N/A N/A suffix N/A N/A N/A p split *. N/A -1 N/A fixed N/A ^(.+?)\.%s$ suffix N/A fixed N/A N/A msg N/A expected regular expression or '*.suffix' style expression, got `%s` p N/A N/A N/A logging error msg N/A None N/A p N/A parse_work_path N/A N/A file_name folder_pages_full_path req_path N/A N/A N/A N/A N/A N/A os path exists file_name N/A N/A file_name N/A N/A N/A N/A N/A file_name find / -1 N/A N/A par N/A N/A N/A os path dirname file_name N/A N/A N/A N/A os path exists par N/A N/A par N/A file_full_path N/A N/A N/A os path join folder_pages_full_path par N/A N/A N/A N/A os path exists file_full_path N/A N/A file_full_path N/A default_work_path N/A N/A N/A os path join folder_pages_full_path req_path N/A req_path N/A N/A par N/A N/A N/A os path dirname default_work_path N/A N/A N/A N/A os path exists par N/A N/A par N/A default_work_path N/A cat_files N/A N/A work_path files N/A N/A N/A all N/A filename files N/A N/A full_path N/A N/A N/A os path join work_path filename N/A chunk N/A filename N/A N/A open full_path f N/A N/A buf N/A N/A N/A commons strutils safeunicode N/A N/A f read N/A buf N/A N/A join N/A N/A buf split N/A buf N/A N/A N/A commons strutils rstrips buf N/A chunk N/A buf N/A chunk N/A all chunk N/A all N/A macro_zw2md_cat N/A N/A text folder_pages_full_path req_path N/A view_settings N/A N/A shebang_p #!zw N/A code_p (?P<code>[^]+?) N/A code_block_p N/A ^\{\{\{[\s]*%s*%s[\s]*\}\}\} N/A shebang_p code_p N/A p_obj N/A N/A re compile code_block_p N/A re MULTILINE code_repl N/A N/A match_obj N/A N/A N/A code N/A N/A match_obj group code N/A code N/A N/A N/A code split N/A 1 N/A N/A N/A code startswith cat( N/A N/A p cat\((?P<file_name>.+?)\) N/A m N/A N/A re match p code N/A N/A re UNICODE N/A re MULTILINE N/A file_name N/A N/A m group file_name N/A file_name N/A N/A file_name strip N/A work_path N/A parse_work_path file_name file_name folder_pages_full_path folder_pages_full_path req_path req_path N/A match_pattern N/A N/A N/A N/A file_name strip ' strip " N/A match_pattern N/A N/A N/A commons strutils lstrips match_pattern work_path N/A match_pattern N/A N/A N/A commons strutils strips match_pattern / N/A match_pattern N/A fix_pattern match_pattern N/A files N/A get_files_list path work_path match_patterns N/A match_pattern N/A buf N/A cat_files work_path work_path files files N/A buf N/A buf_fixed N/A {{{#!zw
%s
}}} code N/A buf_fixed N/A N/A N/A N/A p_obj sub code_repl text N/A test_fix_pattern N/A N/A N/A N/A N/A auto_patterns N/A N/A *.md ^(.+?)\.md$ N/A ^(.+?)\.md$ ^(.+?)\.md$ N/A N/A e g auto_patterns N/A N/A N/A N/A fix_pattern e g N/A test_macro_cat N/A N/A N/A N/A N/A text 
{{{#!zw
cat("*.md")
}}}
 N/A req_path N/A folder_pages_full_path /tmp/lees_wiki/pages/ N/A result N/A macro_zw2md_cat text text folder_pages_full_path folder_pages_full_path req_path req_path N/A result N/A N/A N/A commons strutils strips result N/A N/A repr result N/A N/A N/A __name__ __main__ N/A N/A N/A test_fix_pattern N/A N/A test_macro_cat