Skip to content

Conversation

@wchargin
Copy link
Contributor

Summary:
This f-string has no interpolations, so it can be a normal string,
and the Bazel target is marked srcs_version = "PY2AND3", so it must
be a normal string.

Test Plan:
This module now parses under Python 2:

python2 -c '__import__("ast").parse(__import__("sys").stdin.read())' \
    <tensorboard/uploader/uploader_main.py

wchargin-branch: uploader-remove-fstring

Summary:
This `f`-string has no interpolations, so it *can* be a normal string,
and the Bazel target is marked `srcs_version = "PY2AND3"`, so it *must*
be a normal string.

Test Plan:
This module now parses under Python 2:

```
python2 -c '__import__("ast").parse(__import__("sys").stdin.read())' \
    <tensorboard/uploader/uploader_main.py
```

wchargin-branch: uploader-remove-fstring
@wchargin wchargin merged commit 799c5cf into master Feb 29, 2020
@wchargin wchargin deleted the wchargin-uploader-remove-fstring branch February 29, 2020 06:47
bileschi pushed a commit to bileschi/tensorboard that referenced this pull request Mar 3, 2020
Summary:
This `f`-string has no interpolations, so it *can* be a normal string,
and the Bazel target is marked `srcs_version = "PY2AND3"`, so it *must*
be a normal string.

Test Plan:
This module now parses under Python 2:

```
python2 -c '__import__("ast").parse(__import__("sys").stdin.read())' \
    <tensorboard/uploader/uploader_main.py
```

wchargin-branch: uploader-remove-fstring
nfelt pushed a commit that referenced this pull request Mar 4, 2020
Summary:
This `f`-string has no interpolations, so it *can* be a normal string,
and the Bazel target is marked `srcs_version = "PY2AND3"`, so it *must*
be a normal string.

Test Plan:
This module now parses under Python 2:

```
python2 -c '__import__("ast").parse(__import__("sys").stdin.read())' \
    <tensorboard/uploader/uploader_main.py
```

wchargin-branch: uploader-remove-fstring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants