mirror of
https://github.com/google/brotli.git
synced 2026-09-22 22:56:08 +00:00
[PR #104] [MERGED] [python] fix compatibility_test.py with Python 3 #710
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/google/brotli/pull/104
Author: @anthrotype
Created: 5/8/2015
Status: ✅ Merged
Merged: 5/8/2015
Merged by: @szabadka
Base:
master← Head:py3split📝 Commits (1)
e6913b2[python] use built-in split instead of 'string' module for py23📊 Changes
1 file changed (+1 additions, -2 deletions)
View changed files
📝
python/tests/compatibility_test.py(+1 -2)📄 Description
the compatibility_test.py raises AttributeError in Python 3, because it tries to use the "split" function from the "string" module, but that's no longer available in Python 3.
We should use the built-in str.split() method of string objects, which works the same in Python 2 and 3.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.