Searched refs:fnm_pat (Results 1 – 1 of 1) sorted by relevance
146 def fnm2regex(fnm_pat): argument150 rpat = fnmatch.translate(fnm_pat)157 if not fnm_pat.endswith('*'):158 rpat += '|' + fnmatch.translate(fnm_pat + '.*')161 def verbose_fnm2regex(fnm_pat): argument163 ret_pat = fnm2regex(fnm_pat)