Skip to content

Commit

Permalink
Fix serialize with multiple disks on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
urbanmatthias authored Sep 25, 2020
1 parent e56df6e commit 81d0f99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rdflib/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 81d0f99

Please sign in to comment.