Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Iniciar sessão
jmg
/
gitmirror
Vigiar
1
Marcar como favorito
0
Derivar
0
Código
Questões
0
Pedidos de integração
0
Lançamentos
39
Wiki
Trabalho
Ver a proveniência
Guard Lark.__doc__ assignment for tools.standalone
tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.11.0
Tom Ritchford
há 4 anos
ascendente
809b0308a4
cometimento
fb925f8b31
2 ficheiros alterados
com
3 adições
e
2 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+2
-1
lark/lark.py
+1
-1
tests/test_tools.py
+ 2
- 1
lark/lark.py
Ver ficheiro
@@ -310,7 +310,8 @@ class Lark(Serialize):
with FS.open(cache_fn, 'wb') as f:
self.save(f)
__doc__ += "\n\n" + LarkOptions.OPTIONS_DOC
if __doc__:
__doc__ += "\n\n" + LarkOptions.OPTIONS_DOC
__serialize_fields__ = 'parser', 'rules', 'options'
+ 1
- 1
tests/test_tools.py
Ver ficheiro
@@ -25,7 +25,7 @@ class TestStandalone(TestCase):
standalone.main(StringIO(grammar), 'start', print=pr)
code = code_buf.getvalue()
context = {}
context = {
'__doc__': None
}
exec(code, context)
return context
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar