Skip to content

Commit 670d79d

Browse files
author
dhoegh
committed
Fix UndefVarError: path_separator not defined as path_separator was moved
to Filesystem, fix #14007.
1 parent 1488563 commit 670d79d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/deprecated.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ end
692692
include("require.jl")
693693
@noinline function require(f::AbstractString)
694694
depwarn("`require` is deprecated, use `using` or `import` instead", :require)
695-
if endswith(f,".jl") || contains(f,path_separator)
695+
if endswith(f,".jl") || contains(f,Filesystem.path_separator)
696696
# specifying file path
697697
OldRequire.require(f)
698698
else

0 commit comments

Comments
 (0)