Skip to content

Commit 3589631

Browse files
authored
cleanup old codes (#16173)
1 parent 31a8cf1 commit 3589631

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

tests/tuples/tuple_with_nil.nim

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
11
import macros
2-
from strutils import IdentStartChars
32
import parseutils
43
import unicode
54
import math
6-
import fenv
75
import pegs
86
import streams
97

108
type
11-
FormatError = object of Exception ## Error in the format string.
9+
FormatError = object of CatchableError ## Error in the format string.
1210

1311
Writer = concept W
1412
## Writer to output a character `c`.
15-
when (NimMajor, NimMinor, NimPatch) > (0, 10, 2):
16-
write(W, 'c')
17-
else:
18-
block:
19-
var x: W
20-
write(x, char)
13+
write(W, 'c')
2114

2215
FmtAlign = enum ## Format alignment
2316
faDefault ## default for given format type

0 commit comments

Comments
 (0)