Skip to content

Commit 8832cb1

Browse files
author
Anatoly Galiulin
committed
Fixed issue with removed sequtils defaults
1 parent dd3ea43 commit 8832cb1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/docopt.nim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ method either(self: Pattern): Either =
128128
var groups = @[@[self]]
129129
while groups.len > 0:
130130
var children = groups[0]
131-
groups.delete()
131+
groups.delete(0)
132132
let classes = children.map_it(string, it.class)
133133
const parents = "Required Optional AnyOptions Either OneOrMore".split()
134134
if parents.any_it(it in classes):
@@ -346,7 +346,7 @@ proc current(self: TokenStream): string =
346346

347347
proc move(self: TokenStream): string =
348348
result = self.current
349-
@self.delete()
349+
@self.delete(0)
350350

351351

352352
proc parse_long(tokens: TokenStream, options: var seq[Option]): seq[Pattern] =
@@ -543,15 +543,15 @@ proc printable_usage(doc: string): string =
543543
if usage_split.len > 3:
544544
raise new_exception(DocoptLanguageError,
545545
"""More than one "usage:" (case-insensitive).""")
546-
usage_split.delete()
546+
usage_split.delete(0)
547547
usage_split.join().split_inc(re"\n\s*\n")[0].strip()
548548

549549

550550
proc formal_usage(printable_usage: string): string =
551551
var pu = printable_usage.split()
552-
pu.delete()
552+
pu.delete(0)
553553
var pu0 = pu[0]
554-
pu.delete()
554+
pu.delete(0)
555555
"( " & pu.map_it(string, if it == pu0: ") | (" else: it).join(" ") & " )"
556556

557557

0 commit comments

Comments
 (0)