Skip to content

Commit 34fa661

Browse files
committed
Compatiblity with Python 3.6.
1 parent 9a01f7f commit 34fa661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ def symlink(www_root: Path, language: Language, directory: str, name: str, group
832832
directory_path = path / directory
833833
if not directory_path.exists():
834834
return # No touching link, dest doc not built yet.
835-
if link.exists() and link.readlink().name == directory:
835+
if link.exists() and os.readlink(str(link)) == directory:
836836
return # Link is already pointing to right doc.
837837
link.symlink_to(directory)
838838
run(["chown", "-h", ":" + group, str(link)])

0 commit comments

Comments
 (0)