Add os.sep

This commit is contained in:
Aviv Palivoda committed 2019-04-19 12:09:11 +03:00
1 parent 615a121200
commit a75e7635d5
2 files changed
+10

No files matched your search

+5
View File
@@ -1,5 +1,10 @@
from _os import *
if name == 'nt':
sep = '\\'
else:
sep = '/'
# Change environ to automatically call putenv(), unsetenv if they exist.
from _collections_abc import MutableMapping
+5
View File
@@ -58,3 +58,8 @@ if os.name == "posix":
os.putenv(ENV_KEY, ENV_VALUE)
os.unsetenv(ENV_KEY)
assert os.getenv(ENV_KEY) == None
if os.name == "nt":
assert os.sep == "\\"
else:
assert os.sep == "/"