mirror of
https://github.com/zedeus/nitter.git
synced 2025-01-08 08:05:24 +00:00
better imports
This commit is contained in:
parent
a11332b2b5
commit
f6ca1a3f2a
2 changed files with 3 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
# SPDX-License-Identifier: AGPL-3.0-only
|
# SPDX-License-Identifier: AGPL-3.0-only
|
||||||
import parsecfg except Config
|
import std/parsecfg except Config
|
||||||
import types, strutils
|
|
||||||
import std/uri
|
import std/uri
|
||||||
|
import types, strutils
|
||||||
|
|
||||||
proc get*[T](config: parseCfg.Config; section, key: string; default: T): T =
|
proc get*[T](config: parseCfg.Config; section, key: string; default: T): T =
|
||||||
let val = config.getSectionValue(section, key)
|
let val = config.getSectionValue(section, key)
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# SPDX-License-Identifier: AGPL-3.0-only
|
# SPDX-License-Identifier: AGPL-3.0-only
|
||||||
import times, sequtils, options, tables
|
import std/[times, sequtils, options, tables, uri]
|
||||||
import prefs_impl
|
import prefs_impl
|
||||||
import std/uri
|
|
||||||
|
|
||||||
genPrefsType()
|
genPrefsType()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue