mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 12:59:42 -07:00
Bump future from 0.18.2 to 0.18.3 (#1970)
* Bump future from 0.18.2 to 0.18.3 Bumps [future](https://github.com/PythonCharmers/python-future) from 0.18.2 to 0.18.3. - [Release notes](https://github.com/PythonCharmers/python-future/releases) - [Changelog](https://github.com/PythonCharmers/python-future/blob/master/docs/changelog.rst) - [Commits](https://github.com/PythonCharmers/python-future/compare/v0.18.2...v0.18.3) --- updated-dependencies: - dependency-name: future dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Update future==0.18.3 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> [skip ci]
This commit is contained in:
parent
cc78f17be5
commit
9f727d0086
18 changed files with 196 additions and 115 deletions
|
@ -57,6 +57,16 @@ class FixPrint(fixer_base.BaseFix):
|
|||
if args and args[-1] == Comma():
|
||||
args = args[:-1]
|
||||
end = " "
|
||||
|
||||
# try to determine if the string ends in a non-space whitespace character, in which
|
||||
# case there should be no space at the end of the conversion
|
||||
string_leaves = [leaf for leaf in args[-1].leaves() if leaf.type == token.STRING]
|
||||
if (
|
||||
string_leaves
|
||||
and string_leaves[-1].value[0] != "r" # "raw" string
|
||||
and string_leaves[-1].value[-3:-1] in (r"\t", r"\n", r"\r")
|
||||
):
|
||||
end = ""
|
||||
if args and args[0] == pytree.Leaf(token.RIGHTSHIFT, u">>"):
|
||||
assert len(args) >= 2
|
||||
file = args[1].clone()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue