Skip to content

Commit 7680929

Browse files
committed
Remove normalize_input call in the usage snippet in the README
The call is unnecessary because normalization is done in the `parse_stylesheet` procedure, as per the [Syntax] specification.
1 parent b930beb commit 7680929

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ It should go without saying that whether you choose to install the package with
2929
The code snippet below demonstrates obtaining of a _parse tree_ (in the `stylesheet` variable) by parsing the file `example.css`:
3030

3131
```python
32-
from csspring.parsing import normalize_input, parse_stylesheet
33-
stylesheet = parse_stylesheet(normalize_input(open('example.css', newline=''))))) # The `newline=''` argument prevents default re-writing of newline sequences in input — per the CSS Syntax spec., parsing does filtering of newline sequences so no rewriting by `open` is necessary or desirable
32+
from csspring.parsing import parse_stylesheet
33+
stylesheet = parse_stylesheet(open('example.css', newline='')))) # The `newline=''` argument prevents default re-writing of newline sequences in input — per the CSS Syntax spec., parsing does filtering of newline sequences so no rewriting by `open` is necessary or desirable
3434
```
3535

3636
## Documentation

0 commit comments

Comments
 (0)