Skip to content

Commit ed07e7a

Browse files
committed
Move FluentParserStream to fluent/syntax/stream.py
1 parent 01308bd commit ed07e7a

File tree

3 files changed

+283
-280
lines changed

3 files changed

+283
-280
lines changed

fluent/syntax/ftlstream.py

Lines changed: 0 additions & 276 deletions
This file was deleted.

fluent/syntax/parser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import unicode_literals
22
import re
3-
from .ftlstream import FTLParserStream
43
from . import ast
4+
from .stream import FluentParserStream
55
from .errors import ParseError
66

77

@@ -30,7 +30,7 @@ def __init__(self, with_spans=True):
3030
self.with_spans = with_spans
3131

3232
def parse(self, source):
33-
ps = FTLParserStream(source.replace('\r\n', '\n'))
33+
ps = FluentParserStream(source)
3434
ps.skip_blank_block()
3535

3636
entries = []
@@ -92,7 +92,7 @@ def parse_entry(self, source):
9292
Preceding comments are ignored unless they contain syntax errors
9393
themselves, in which case Junk for the invalid comment is returned.
9494
"""
95-
ps = FTLParserStream(source.replace('\r\n', '\n'))
95+
ps = FluentParserStream(source)
9696
ps.skip_blank_block()
9797

9898
while ps.current_char == '#':

0 commit comments

Comments
 (0)