refactor os imports into corresponding small modules (#20720)

This commit is contained in:
ringabout 2022-11-01 17:18:04 +08:00 • committed by GitHub
commit 6166b796ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 11 additions and 8 deletions

View file

@ -24,7 +24,8 @@ elif defined(posix):
else:
{.error: "the memfiles module is not supported on your operating system!".}
import os, streams
import streams
import std/oserrors
when defined(nimPreviewSlimSystem):
import std/[syncio, assertions]