You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
robot.utils: Deprecate read_rest_data, split_tags_from_doc and is_union #5639
Robot can execute reStructuredText files that contain Robot data in code blocks. Most of the related logic is under robot.running, but for some reason we at some point moved actual reStructuredText file parsing under robot.utils and it is exposed via read_rest_data. This function is only used by the RestParser class under robot.running and I don't see why any external code would use it, so there is no real need to have it under robot.utils. Removing it outright would be backwards incompatible, so let's deprecate it similarly as we have deprecated the old Python 2/3 compatibility layer and various other utils (#4501). In practice these deprecated utils currently emit a DeprecationWarning that is not visible by default, but the plan is to change it to more visible UserWarning in RF 8.0 and to finally remove these utils in RF 9.0. That ought to safe enough plan for read_rest_data removal as well.
I noticed this issue when reviewing PR #5633 that adds support to execute Markdown files containing embedded Robot data (#5603). It was modeled how the related reStructuredText functionality works and also initially had Markdown reading logic under robot.utils. I commented that having that logic where the new MarkdownParser is makes more sense and also mentioned that read_rest_data shouldn't be under robot.utils either.
UPDATE: I decided to change this issue so that it covers all deprecated robot.utils functions.
changed the title [-]Deprecate `robot.utils.read_rest_data`[/-][+]`robot.utils`: Deprecate `read_rest_data`, `split_tags_from_doc` and `is_union`[/+]on Aug 23, 2026
Activity
Deprecate `robot.utils.read_rest_data`
[-]Deprecate `robot.utils.read_rest_data`[/-][+]`robot.utils`: Deprecate `read_rest_data`, `split_tags_from_doc` and `is_union`[/+]pekkaklarck commentedon Aug 23, 2026
Two more functions in
robot.utilsare deprecated:split_tags_from_docwas deprecated as part of Enhance parsing tags from keyword documentation #5707.is_unionturned out to be unnecessary as well.Deprecate `robot.utils.is_union`