File tree Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ def src(self):
46
46
@src .setter
47
47
def src (self , value ):
48
48
self ._src = value
49
- self .srcCharCode = [ord (c ) for c in self .src ] if self . src is not None else []
49
+ self .srcCharCode = [ord (c ) for c in self .src ]
50
50
51
51
52
52
# The first positional arg is always a subtype of `StateBase`. Other
Original file line number Diff line number Diff line change 1
1
from markdown_it import MarkdownIt
2
2
from markdown_it .token import Token
3
- from markdown_it .rules_core import StateCore
4
3
from markdown_it .utils import AttrDict
5
4
6
5
@@ -248,18 +247,6 @@ def test_emptyStr():
248
247
]
249
248
250
249
251
- def test_noneState ():
252
- md = MarkdownIt ()
253
- state = StateCore (None , md , {}, [])
254
-
255
- # Remove normalizing rule
256
- rules = md .core .ruler .get_active_rules ()
257
- md .core .ruler .enableOnly (rules [rules .index ("inline" ) :])
258
-
259
- # Check that we can process None str with empty env and block_tokens
260
- md .core .process (state )
261
-
262
-
263
250
def test_empty_env ():
264
251
"""Test that an empty `env` is mutated, not copied and mutated."""
265
252
md = MarkdownIt ()
You can’t perform that action at this time.
0 commit comments