Deprecate and/or remove ospaths (#14767)

This commit is contained in:
Juan Carlos 2020-06-23 05:51:33 -03:00 • committed by GitHub
commit 8e54bc5b0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View file

@ -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)

View file

@ -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

View file

@ -2,7 +2,7 @@
# bug #9505 # bug #9505
import std/[ import std/[
strutils, ospaths, os strutils, os
] ]
import pkg/[ import pkg/[
regex regex

View file

@ -2,7 +2,7 @@
# bug #9505 # bug #9505
import std/[ import std/[
strutils, ospaths, os strutils, os
] ]
import pkg/[ import pkg/[
regex regex

View file

@ -12,7 +12,7 @@
import httpclient, import httpclient,
net, net,
unittest, unittest,
ospaths os
from strutils import contains from strutils import contains

View file

@ -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