mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 08:54:53 +00:00
Deprecate and/or remove ospaths (#14767)
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
##
|
||||
## Unstable API.
|
||||
|
||||
from ospaths import raiseOSError, osLastError
|
||||
from os import raiseOSError, osLastError
|
||||
|
||||
template distance*(lhs, rhs: pointer): int =
|
||||
cast[int](rhs) - cast[int](lhs)
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
## SSL_CERT_DIR environment variables.
|
||||
|
||||
import os, strutils
|
||||
from ospaths import existsEnv, getEnv
|
||||
from os import existsEnv, getEnv
|
||||
import strutils
|
||||
|
||||
# SECURITY: this unnecessarily scans through dirs/files regardless of the
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# bug #9505
|
||||
|
||||
import std/[
|
||||
strutils, ospaths, os
|
||||
strutils, os
|
||||
]
|
||||
import pkg/[
|
||||
regex
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# bug #9505
|
||||
|
||||
import std/[
|
||||
strutils, ospaths, os
|
||||
strutils, os
|
||||
]
|
||||
import pkg/[
|
||||
regex
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
import httpclient,
|
||||
net,
|
||||
unittest,
|
||||
ospaths
|
||||
os
|
||||
|
||||
from strutils import contains
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
## SSL_CERT_FILE=BogusInexistentFileName tests/untestable/thttpclient_ssl_env_var
|
||||
## SSL_CERT_DIR=BogusInexistentDirName tests/untestable/thttpclient_ssl_env_var
|
||||
|
||||
import httpclient, unittest, ospaths
|
||||
import httpclient, unittest, os
|
||||
from net import newSocket, newContext, wrapSocket, connect, close, Port,
|
||||
CVerifyPeerUseEnvVars
|
||||
from strutils import contains
|
||||
|
||||
Reference in New Issue
Block a user