Fix indentation bug
This commit is contained in:
parent
5f746706b6
commit
a6b31247cf
|
@ -1,6 +1,6 @@
|
||||||
# Package
|
# Package
|
||||||
|
|
||||||
version = "3.1.0" # versioned in git, this version is just to confuse nimble
|
version = "3.2.0" # versioned in git, this version is just to confuse nimble
|
||||||
author = "Emery Hemingway"
|
author = "Emery Hemingway"
|
||||||
description = "data model and serialization format"
|
description = "data model and serialization format"
|
||||||
license = "Unlicense"
|
license = "Unlicense"
|
||||||
|
|
|
@ -245,7 +245,7 @@ proc `[]`*(pr, key: Preserve): Preserve =
|
||||||
if pr.isDictionary:
|
if pr.isDictionary:
|
||||||
for (k, v) in pr.dict.items:
|
for (k, v) in pr.dict.items:
|
||||||
if k == key: return v
|
if k == key: return v
|
||||||
raise newException(KeyError, "value not in Preserves dictionary")
|
raise newException(KeyError, "value not in Preserves dictionary")
|
||||||
elif (pr.isRecord or pr.isSequence) and key.isInteger:
|
elif (pr.isRecord or pr.isSequence) and key.isInteger:
|
||||||
result = pr[int key.int]
|
result = pr[int key.int]
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue