Skip to content

Loudly deprecate old Python 2/3 compatibility layer and other deprecated utils #4501

Closed

Description

@pekkaklarck

We "quietly" deprecated Python 2/3 compatibility layer in RF 5.0 (#4150) and TRUE/FALSE_STRINGS in RF 6.0 (#4500). Should deprecate them more loudly in RF 7.0. As discussed in #4150, deprecating constants is easiest with module __getattr__.

Activity

  1. added this to the v7.0 milestone on Oct 8, 2022
  2. changed the title [-]Loundly deprecate old Python 2/3 compatibility layer and other deprecated utils[/-] [+]Loudly deprecate old Python 2/3 compatibility layer and other deprecated utils[/+] on Sep 5, 2023
  3. pekkaklarck commented on Sep 8, 2023

    @pekkaklarck
    MemberAuthor

    Some time related utils were made redundant by #4258. They were deprecated in 679edf6.

  4. self-assigned this
    on Sep 11, 2023
  5. pekkaklarck commented on Dec 20, 2023

    @pekkaklarck
    MemberAuthor

    SSHLibrary still uses these deprecated utilities. It's unfortunately not actively maintained and thus likely not to be updated in the near future. It's a widely used an important library (and mature enough to work without active maintenance at least for the time being) and we don't want to break it. I thus decided to change the deprecation/removal of these utils like this:

    1. Preserve the utils at least until RF 9.0. This gives more time to update SSHLibrary and possible other affected libraries.
    2. Change the level of the deprecation warning from UserWarning to DeprecationWarning to make it not visible by default. This avoids users getting confused about these warnings.
    3. Change the level back to UserWarning in RF 8.0. At that point we need to start taking actions with SSHLibrary if it's still not maintained. This decision obviously can still be changed later.
  6. pekkaklarck commented on Mar 27, 2026

    @pekkaklarck
    MemberAuthor

    read_rest_data was deprecated in RF 7.5 using this same mechanism (#5639).

  7. pekkaklarck commented on Jul 14, 2026

    @pekkaklarck
    MemberAuthor

    split_tags_from_doc was deprecated in RF 7.5 as well (#5707).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions