Skip to content

Commit

Permalink
Revert "Fix support for Python 3.9 (sphinx-doc#157)"
Browse files Browse the repository at this point in the history
This reverts commit 55917c6.
  • Loading branch information
AA-Turner committed May 6, 2024
1 parent 022012f commit 63985af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 0 additions & 2 deletions NEWS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ Changelog
unreleased
----------

* Fix support for Python 3.9.

2024.04.16 - 2024-04-16
-----------------------

Expand Down
11 changes: 1 addition & 10 deletions sphinx_autobuild/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import asyncio
import os
import sys
from concurrent.futures import ProcessPoolExecutor
from contextlib import AbstractAsyncContextManager, asynccontextmanager
from typing import TYPE_CHECKING
Expand All @@ -25,15 +24,7 @@ def __init__(
ignore_filter: IgnoreFilter,
change_callback: Callable[[], None],
) -> None:
if sys.version_info[:2] >= (3, 10):
self.paths = [os.path.realpath(path, strict=True) for path in paths]
else:
self.paths = [os.path.realpath(path) for path in paths]
# Sanity check the paths
for p in self.paths:
if not os.path.exists(p):
raise FileNotFoundError(p)

self.paths = [os.path.realpath(path, strict=True) for path in paths]
self.ignore = ignore_filter
self.change_callback = change_callback
self.flag = asyncio.Event()
Expand Down

0 comments on commit 63985af

Please sign in to comment.