Strona działa najlepiej z włączonym JavaScript.
Strona główna
Odkrywaj
Pomoc
Zaloguj się
jmg
/
gitmirror
Obserwuj
1
Polub
0
Forkuj
0
Kod
Zgłoszenia
0
Oczekujące zmiany
0
Wydania
39
Wiki
Aktywność
Przeglądaj źródła
yield -> yield from
remotes/origin/gm/2021-09-23T00Z/github.com--lark-parser-lark/master
Erez Sh
3 lat temu
rodzic
fe488d1d44
commit
070c54dc8e
2 zmienionych plików
z
2 dodań
i
4 usunięć
Widok podzielony
Opcje porównania
Pokaż statystyki
Ściągnij plik aktualizacji
Ściągnij plik porównania
+1
-2
lark/indenter.py
+1
-2
lark/reconstruct.py
+ 1
- 2
lark/indenter.py
Wyświetl plik
@@ -44,8 +44,7 @@ class Indenter(PostLex, ABC):
def _process(self, stream):
for token in stream:
if token.type == self.NL_type:
for t in self.handle_NL(token):
yield t
yield from self.handle_NL(token)
else:
yield token
+ 1
- 2
lark/reconstruct.py
Wyświetl plik
@@ -89,8 +89,7 @@ class Reconstructor(TreeMatcher):
for item in res:
if isinstance(item, Tree):
# TODO use orig_expansion.rulename to support templates
for x in self._reconstruct(item):
yield x
yield from self._reconstruct(item)
else:
yield item
Napisz
Podgląd
Ładowanie…
Anuluj
Zapisz