Deprecate and/or remove ospaths (#14767)
This commit is contained in:
parent
511bd947d3
commit
8e54bc5b0c
6 changed files with 6 additions and 6 deletions
|
|
@ -18,7 +18,7 @@
|
||||||
##
|
##
|
||||||
## Unstable API.
|
## Unstable API.
|
||||||
|
|
||||||
from ospaths import raiseOSError, osLastError
|
from os import raiseOSError, osLastError
|
||||||
|
|
||||||
template distance*(lhs, rhs: pointer): int =
|
template distance*(lhs, rhs: pointer): int =
|
||||||
cast[int](rhs) - cast[int](lhs)
|
cast[int](rhs) - cast[int](lhs)
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
## SSL_CERT_DIR environment variables.
|
## SSL_CERT_DIR environment variables.
|
||||||
|
|
||||||
import os, strutils
|
import os, strutils
|
||||||
from ospaths import existsEnv, getEnv
|
from os import existsEnv, getEnv
|
||||||
import strutils
|
import strutils
|
||||||
|
|
||||||
# SECURITY: this unnecessarily scans through dirs/files regardless of the
|
# SECURITY: this unnecessarily scans through dirs/files regardless of the
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
# bug #9505
|
# bug #9505
|
||||||
|
|
||||||
import std/[
|
import std/[
|
||||||
strutils, ospaths, os
|
strutils, os
|
||||||
]
|
]
|
||||||
import pkg/[
|
import pkg/[
|
||||||
regex
|
regex
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
# bug #9505
|
# bug #9505
|
||||||
|
|
||||||
import std/[
|
import std/[
|
||||||
strutils, ospaths, os
|
strutils, os
|
||||||
]
|
]
|
||||||
import pkg/[
|
import pkg/[
|
||||||
regex
|
regex
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
import httpclient,
|
import httpclient,
|
||||||
net,
|
net,
|
||||||
unittest,
|
unittest,
|
||||||
ospaths
|
os
|
||||||
|
|
||||||
from strutils import contains
|
from strutils import contains
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
## SSL_CERT_FILE=BogusInexistentFileName tests/untestable/thttpclient_ssl_env_var
|
## SSL_CERT_FILE=BogusInexistentFileName tests/untestable/thttpclient_ssl_env_var
|
||||||
## SSL_CERT_DIR=BogusInexistentDirName 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,
|
from net import newSocket, newContext, wrapSocket, connect, close, Port,
|
||||||
CVerifyPeerUseEnvVars
|
CVerifyPeerUseEnvVars
|
||||||
from strutils import contains
|
from strutils import contains
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue