Skip to content

Commit dee7e14

Browse files
committed
Update notebook in assignment check for python 3.8
1 parent dd0200a commit dee7e14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nbgrader/converters/generate_assignment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def _clean_old_notebooks(self, assignment_id: str, student_id: str) -> None:
101101
for notebook in self.notebooks:
102102
notebook = Path(notebook)
103103

104-
if not notebook.is_relative_to(assignment_dir):
104+
if assignment_dir not in notebook.parents:
105105
continue
106106

107107
new_notebook_ids.add(notebook.stem)

0 commit comments

Comments
 (0)