mirror of
https://github.com/davidhalter/parso.git
synced 2026-01-23 11:32:25 +08:00
Remove the remove_newline hack and build that stuff into error recovery instead.
Tests are passing except for diff parser tests.
This commit is contained in:
@@ -6,8 +6,8 @@ class Normalizer(object):
|
||||
|
||||
>>> normalizer = Normalizer()
|
||||
>>> @normalizer.register_rule
|
||||
>>> class MyRule(Rule):
|
||||
>>> error_code = 42
|
||||
... class MyRule(Rule):
|
||||
... error_code = 42
|
||||
"""
|
||||
try:
|
||||
rules = cls.rules
|
||||
|
||||
Reference in New Issue
Block a user