Skip to content

Commit 7d0814d

Browse files
committed
Keep support of Python 3.9
Signed-off-by: sschulz92 <[email protected]>
1 parent a59794a commit 7d0814d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

getgauge/registry.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import sys
55
from pathlib import Path
66
from subprocess import call
7+
from typing import Union
78
from uuid import uuid1
89

910
from getgauge import logger
@@ -210,7 +211,7 @@ def clear(self):
210211
setattr(self, '__{}'.format(hook), [])
211212

212213

213-
def paths_equal(p1: str | Path, p2: str | Path) -> bool:
214+
def paths_equal(p1: Union[str, Path], p2: Union[str, Path]) -> bool:
214215
"""
215216
Compare two paths in a cross-platform safe way.
216217
On Windows: case-insensitive, slash-insensitive.

0 commit comments

Comments
 (0)