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

@ -18,7 +18,7 @@
##
## Unstable API.
from os import raiseOSError, osLastError
from std/oserrors import raiseOSError, osLastError
template distance*(lhs, rhs: pointer): int =
cast[int](rhs) - cast[int](lhs)