Skip to content

review usage of py3compat.u_format #11987

Closed

Description

@Carreau

py3compat.u_format use to help formatting string between python 2 and python 3 by doing:

py3compat.u_format('{u}"a string"')  -> u"a string" # py 2
py3compat.u_format('{u}"a string"')  -> "a string" # py 3

my guess is now it is useless and can just be removed.

  • check every place where it is used:
    • if input have no '{u}', remove the function call.
    • if Input have a {u}, look at how to update it and potentially inline (or not) the u"".

Activity

  1. added this to the 7.11 milestone on Nov 30, 2019
  2. kousikmitra commented on Dec 5, 2019

    @kousikmitra
    Contributor

    @Carreau can I work on this? or is it closed?

  3. removed this from the 7.11 milestone on Feb 1, 2020
  4. mijiturka commented on Jun 13, 2020

    @mijiturka

    u_format has been completely removed with PR #12259
    @meeseeksdev close

  5. added this to the 8.0 milestone on Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions