Skip to content

Commit c2e5597

Browse files
committed
Patchright Release [Post Release]
1 parent 372e96f commit c2e5597

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

patch_python_package.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,16 +114,9 @@ def patch_file(file_path: str, patched_tree: ast.AST) -> None:
114114

115115
node.keywords.append(ast.keyword(
116116
arg="version",
117-
value=ast.Call(
118-
func=ast.Attribute(
119-
value=ast.Attribute(
120-
value=ast.Name(id='os', ctx=ast.Load()),
121-
attr='environ', ctx=ast.Load()),
122-
attr='get',
123-
ctx=ast.Load()),
124-
args=[ast.Constant(value="playwright_version")],
125-
keywords=[],
126-
)
117+
value=
118+
# ast.parse("os.environ.get('playwright_version')'")
119+
ast.parse("os.environ.get('playwright_version') + '.post0'")
127120
))
128121

129122

0 commit comments

Comments
 (0)