Skip to content

Commit

Permalink
2.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
ultrafunkamsterdam committed Apr 30, 2021
1 parent 86efd23 commit 9e988fa
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,16 @@
import re
import codecs

<<<<<<< HEAD

dirname = os.path.abspath(os.path.dirname(__file__))

with codecs.open(
os.path.join(dirname, "undetected_chromedriver", "__init__.py"),
=======
with open(
os.path.join(
os.path.abspath(os.path.dirname(__file__)),
"undetected_chromedriver",
"__init__.py",
),
>>>>>>> cf059a638cc9139f6fda5da23072488d06577071
mode="r",
encoding="latin1",
) as fp:
try:
<<<<<<< HEAD
version = re.findall(r"^__version__ = ['\"]([^'\"]*)['\"]", fp.read(), re.M)[0]
=======
version = re.findall(r"^__version__ = '([^']+)'\r?$", fp.read(), re.M)[0]
>>>>>>> cf059a638cc9139f6fda5da23072488d06577071
except Exception:
raise RuntimeError("unable to determine version")

Expand Down

0 comments on commit 9e988fa

Please sign in to comment.