Skip to content

mock-core-configs opensuse tumbleweed template producing python syntax warning #1785

Description

@garybuhrmaster

With recent pythons, when using mock and specifying the opensuse-tumbleweed root one gets:

<string>:5: SyntaxWarning: "\$" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\$"? A raw string is also an option.

I believe this is from the templates/opensuse-tumbleweed.tpl line 5 of the form:

config_opts['macros']['%dist'] = '.suse.tw%(sh -c ". /etc/os-release; echo \$VERSION_ID")'

Obviously a very low priority issue (I don't think the python community has any consensus on the earliest date they might turn the warning into a hard error, but it will probably be many years)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions