Skip to content

Python3: base virtualBuffer: coerce attribute values to a string before escaping for regular expression - #9759

Merged
michaelDCurran merged 3 commits into
threshold_py3_stagingfrom
py3_virtualBufferEscape
Jun 16, 2019
Merged

Python3: base virtualBuffer: coerce attribute values to a string before escaping for regular expression #9759
michaelDCurran merged 3 commits into
threshold_py3_stagingfrom
py3_virtualBufferEscape

Conversation

@michaelDCurran

Copy link
Copy Markdown
Member

Link to issue number:

None.

Summary of the issue:

When trying to read content in virtualBuffers with Python3, an AttributeError is raised as int does not have an attribute: translate.

Description of how this pull request fixes the issue:

When preparing attribute values for a regular expression for finding attributes, make sure to coerce each value to a string before escaping symbols.

Testing performed:

Ran NVDA and read a virtualBuffer document and AttributeError was no longer raised.

Known issues with pull request:

None.

Change log entry:

None.

Section: New features, Changes, Bug fixes

@michaelDCurran
michaelDCurran requested a review from josephsl June 16, 2019 23:31

@josephsl josephsl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, working in Firefox. Thanks.

@michaelDCurran
michaelDCurran merged commit 7862dfb into threshold_py3_staging Jun 16, 2019
@nvaccessAuto nvaccessAuto added this to the 2019.3 milestone Jun 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants