Skip to content

Commit 2ccc0e9

Browse files
committed
fix: circular import pyppeteer#344
1 parent 5f1483d commit 2ccc0e9

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ History
55

66
* [populate me]
77

8+
## Version 1.0.2
9+
10+
* Fix circular import as result of 1.0.1 (#344)
11+
812
## Version 1.0.1
913

1014
* don't configure logging ourselves (#343)
@@ -13,7 +17,7 @@ History
1317
## Version 1.0.0
1418

1519
* hotfix: websockets 10 for python 3.10 (#321, #327)
16-
* removes support for python 3.6
20+
* removes support for python 3.6./
1721
* remove `Page.craete`
1822

1923
## Version 0.2.6

pyppeteer/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
import os
88

99
from appdirs import AppDirs
10-
from pyppeteer.launcher import connect, executablePath, launch
11-
12-
from pyppeteer.launcher import defaultArgs # noqa: E402; noqa: E402
1310

1411
try:
1512
# noinspection PyCompatibility
@@ -22,14 +19,15 @@
2219
try:
2320
__version__ = version(__name__)
2421
except Exception:
25-
pass
22+
__version__ = None
2623

2724

2825
__chromium_revision__ = '588429'
2926
__base_puppeteer_version__ = 'v1.6.0'
3027
__pyppeteer_home__ = os.environ.get('PYPPETEER_HOME', AppDirs('pyppeteer').user_data_dir) # type: str
3128
DEBUG = False
3229

30+
from pyppeteer.launcher import connect, executablePath, launch, defaultArgs # noqa: E402; noqa: E402
3331

3432
version = __version__
3533
version_info = tuple(int(i) for i in version.split('.'))

0 commit comments

Comments
 (0)