Start using pathlib.Path instead of all the os.path functions

This commit is contained in:
Dave Halter committed 2020-07-10 17:30:36 +02:00
1 parent 92af043906
commit db0e90763b
12 files changed
+97 -104

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ def create_simple_object(inference_state, obj):
Only allows creations of objects that are easily picklable across Python
versions.
"""
assert type(obj) in (int, float, str, bytes, slice, complex, bool), obj
assert type(obj) in (int, float, str, bytes, slice, complex, bool), repr(obj)
compiled_value = create_from_access_path(
inference_state,
inference_state.compiled_subprocess.create_simple_object(obj)