From 81d0f996966ecce8f0b70784c92067b08f548fd0 Mon Sep 17 00:00:00 2001 From: Matthias Urban <42069939+urbanmatthias@users.noreply.github.com> Date: Fri, 25 Sep 2020 11:03:09 +0200 Subject: [PATCH] Fix serialize with multiple disks on windows --- rdflib/graph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rdflib/graph.py b/rdflib/graph.py index f6024c467..90dfc2f73 100644 --- a/rdflib/graph.py +++ b/rdflib/graph.py @@ -993,9 +993,9 @@ def serialize( serializer.serialize(stream, base=base, encoding=encoding, **args) stream.close() if hasattr(shutil, "move"): - shutil.move(name, path) + shutil.move(name, location) else: - shutil.copy(name, path) + shutil.copy(name, location) os.remove(name) def parse(