@@ -20,7 +20,7 @@ msgstr ""
2020
2121#: ../../library/fnmatch.rst:2
2222msgid ":mod:`fnmatch` --- Unix filename pattern matching"
23- msgstr ""
23+ msgstr ":mod:`fnmatch` --- Correspondência de padrões de nome de arquivo Unix "
2424
2525#: ../../library/fnmatch.rst:12
2626msgid "**Source code:** :source:`Lib/fnmatch.py`"
@@ -32,10 +32,13 @@ msgid ""
3232"the same as regular expressions (which are documented in the :mod:`re` "
3333"module). The special characters used in shell-style wildcards are:"
3434msgstr ""
35+ "Este módulo fornece suporte para curingas no estilo shell do Unix, que *não* "
36+ "são iguais às expressões regulares (documentadas no módulo :mod:`re`). Os "
37+ "caracteres especiais usados nos curingas no estilo de shell são:"
3538
3639#: ../../library/fnmatch.rst:21
3740msgid "Pattern"
38- msgstr ""
41+ msgstr "Padrão "
3942
4043#: ../../library/fnmatch.rst:21
4144msgid "Meaning"
@@ -47,37 +50,39 @@ msgstr "``*``"
4750
4851#: ../../library/fnmatch.rst:23
4952msgid "matches everything"
50- msgstr ""
53+ msgstr "corresponde a tudo "
5154
5255#: ../../library/fnmatch.rst:25
5356msgid "``?``"
5457msgstr "``?``"
5558
5659#: ../../library/fnmatch.rst:25
5760msgid "matches any single character"
58- msgstr ""
61+ msgstr "Corresponde a qualquer caractere único "
5962
6063#: ../../library/fnmatch.rst:27
6164msgid "``[seq]``"
6265msgstr "``[seq]``"
6366
6467#: ../../library/fnmatch.rst:27
6568msgid "matches any character in *seq*"
66- msgstr ""
69+ msgstr "corresponde a qualquer caractere em *seq* "
6770
6871#: ../../library/fnmatch.rst:29
6972msgid "``[!seq]``"
7073msgstr "``[!seq]``"
7174
7275#: ../../library/fnmatch.rst:29
7376msgid "matches any character not in *seq*"
74- msgstr ""
77+ msgstr "corresponde a qualquer caractere ausente em *seq* "
7578
7679#: ../../library/fnmatch.rst:32
7780msgid ""
7881"For a literal match, wrap the meta-characters in brackets. For example, "
7982"``'[?]'`` matches the character ``'?'``."
8083msgstr ""
84+ "Para uma correspondência literal, coloque os metacaracteres entre colchetes. "
85+ "Por exemplo, ``'[?]'`` corresponde ao caractere ``'?'``."
8186
8287#: ../../library/fnmatch.rst:37
8388msgid ""
@@ -87,6 +92,12 @@ msgid ""
8792"with a period are not special for this module, and are matched by the ``*`` "
8893"and ``?`` patterns."
8994msgstr ""
95+ "Note que o separador de nome de arquivo (``'/'`` no Unix) *não* é especial "
96+ "para este módulo. Veja o módulo :mod:`glob` para expansão do nome do caminho "
97+ "(:mod:`glob` usa :func:`.filter` para corresponder aos segmentos do nome do "
98+ "caminho). Da mesma forma, os nomes de arquivos que começam com um ponto "
99+ "final não são especiais para este módulo e são correspondidos pelos padrões "
100+ "``*`` e ``?``."
90101
91102#: ../../library/fnmatch.rst:46
92103msgid ""
@@ -96,40 +107,55 @@ msgid ""
96107"sensitive comparison, regardless of whether that's standard for the "
97108"operating system."
98109msgstr ""
110+ "Testa se a string *filename* corresponde à string *pattern*, retornando :"
111+ "const:`True` ou :const:`False`. Ambos os parâmetros são normalizados em "
112+ "maiúsculas e minúsculas usando :func:`os.path.normcase`. :func:`fnmatchcase` "
113+ "pode ser usado para realizar uma comparação com distinção entre maiúsculas e "
114+ "minúsculas, independentemente de ser padrão para o sistema operacional."
99115
100116#: ../../library/fnmatch.rst:52
101117msgid ""
102118"This example will print all file names in the current directory with the "
103119"extension ``.txt``::"
104120msgstr ""
121+ "Este exemplo vai exibir todos os nomes de arquivos no diretório atual com a "
122+ "extensão ``.txt``::"
105123
106124#: ../../library/fnmatch.rst:65
107125msgid ""
108126"Test whether *filename* matches *pattern*, returning :const:`True` or :const:"
109127"`False`; the comparison is case-sensitive and does not apply :func:`os.path."
110128"normcase`."
111129msgstr ""
130+ "Testa se *filename* corresponde ao *pattern*, retornando :const:`True` ou :"
131+ "const:`False`; a comparação diferencia maiúsculas de minúsculas e não se "
132+ "aplica :func:`os.path.normcase`."
112133
113134#: ../../library/fnmatch.rst:72
114135msgid ""
115136"Return the subset of the list of *names* that match *pattern*. It is the "
116137"same as ``[n for n in names if fnmatch(n, pattern)]``, but implemented more "
117138"efficiently."
118139msgstr ""
140+ "Retorna o subconjunto da lista de *names* que correspondem *pattern*. É o "
141+ "mesmo que ``[n for n in names if fnmatch(n, pattern)]``, mas implementado "
142+ "com mais eficiência."
119143
120144#: ../../library/fnmatch.rst:80
121145msgid ""
122146"Return the shell-style *pattern* converted to a regular expression for using "
123147"with :func:`re.match`."
124148msgstr ""
149+ "Retorna o *pattern* no estilo shell convertido em uma expressão regular para "
150+ "usar com :func:`re.match`."
125151
126152#: ../../library/fnmatch.rst:83
127153msgid "Example:"
128154msgstr "Exemplo"
129155
130156#: ../../library/fnmatch.rst:97
131157msgid "Module :mod:`glob`"
132- msgstr ""
158+ msgstr "Módulo :mod:`glob` "
133159
134160#: ../../library/fnmatch.rst:98
135161msgid "Unix shell-style path expansion."
0 commit comments