ueshin commented on code in PR #45298:
URL: https://github.com/apache/spark/pull/45298#discussion_r1505232292
##########
python/pyspark/sql/readwriter.py:
##########
@@ -400,7 +400,8 @@ def json(
Example 2: Read JSON from multiple files in a directory
>>> import tempfile
- >>> with tempfile.TemporaryDirectory() as d1,
tempfile.TemporaryDirectory() as d2:
+ >>> with (tempfile.TemporaryDirectory(prefix="json2") as d1,
+ ... tempfile.TemporaryDirectory(prefix="json3") as d2):
Review Comment:
IIRC, the syntax:
```py
with (..., ...):
...
```
is not supported in Python 3.8.
It should be without `()`.
```py
with ..., ...:
...
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]