print_grammar to stderr (#1052)
This commit is contained in:
parent
431cb3ec81
commit
2ddce7294e
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ class LlamaGrammar:
|
|||
)
|
||||
if verbose:
|
||||
print(f"{cls.from_string.__name__} grammar:", file=sys.stderr)
|
||||
print_grammar(sys.stdout, parsed_grammar)
|
||||
print_grammar(sys.stderr, parsed_grammar)
|
||||
print(file=sys.stderr)
|
||||
return cls(parsed_grammar)
|
||||
|
||||
|
|
Loading…
Reference in a new issue