mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
style: Convert GenerateServoCSSPropList.py to py3.
Differential Revision: https://phabricator.services.mozilla.com/D70308
This commit is contained in:
parent
87139a3ea2
commit
07c1b39637
6 changed files with 29 additions and 25 deletions
|
@ -94,7 +94,7 @@ class FileAvoidWrite(BytesIO):
|
|||
self.name = filename
|
||||
|
||||
def write(self, buf):
|
||||
if isinstance(buf, unicode):
|
||||
if isinstance(buf, str):
|
||||
buf = buf.encode('utf-8')
|
||||
BytesIO.write(self, buf)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue