lint
This commit is contained in:
parent
772d18b564
commit
450c8bf5b4
3 changed files with 3 additions and 3 deletions
|
|
@ -307,7 +307,7 @@ class _Parser:
|
||||||
self._pos += 2
|
self._pos += 2
|
||||||
elif self._read(increment_pos=False, length=2) == "\\t":
|
elif self._read(increment_pos=False, length=2) == "\\t":
|
||||||
string_value += "\t"
|
string_value += "\t"
|
||||||
self._pos +=2
|
self._pos += 2
|
||||||
else:
|
else:
|
||||||
self._pos += 1
|
self._pos += 1
|
||||||
string_value += ch
|
string_value += ch
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,7 @@ class TestNumericFunctions:
|
||||||
("no splits", " | ", None, ["no splits"]),
|
("no splits", " | ", None, ["no splits"]),
|
||||||
("one | split", " | ", None, ["one", "split"]),
|
("one | split", " | ", None, ["one", "split"]),
|
||||||
("max | split | one", " | ", 1, ["max", "split | one"]),
|
("max | split | one", " | ", 1, ["max", "split | one"]),
|
||||||
("multiline\ndescription", "\\n", None, ["multiline", "description"])
|
("multiline\ndescription", "\\n", None, ["multiline", "description"]),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
def test_split(
|
def test_split(
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
import re
|
import re
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from unit.script.conftest import single_variable_output
|
from unit.script.conftest import single_variable_output
|
||||||
|
|
||||||
from ytdl_sub.script.parser import STRINGS_NOT_CLOSED
|
from ytdl_sub.script.parser import STRINGS_NOT_CLOSED
|
||||||
from ytdl_sub.script.parser import STRINGS_ONLY_ARGS
|
from ytdl_sub.script.parser import STRINGS_ONLY_ARGS
|
||||||
from ytdl_sub.script.script import Script
|
from ytdl_sub.script.script import Script
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue