hassanakbar4 / tractive-test

0 stars 0 forks source link

scripts.py doesn't work in python2 #343

Closed hassanakbar4 closed 2 years ago

hassanakbar4 commented 6 years ago

component_Version 2 cli resolution_fixed type_defect | by jyasskin@chromium.org


data/Scripts.txt includes non-ASCII characters, but is loaded as a str, not a unicode. With from __future__ import unicode_literals, you wind up with

b'# \xc2\xa9 2017 Unicode\xc2\xae, Inc.'.startswith(u'#')

which gives a UnicodeDecodeError.


Issue migrated from trac:343 at 2021-10-20 18:25:58 +0500

hassanakbar4 commented 6 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed status from new to closed

hassanakbar4 commented 6 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed resolution from ` tofixed`

hassanakbar4 commented 6 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} commented


Fixed in [2425]:

Fixed issues with installation and with execution under python 2.7. Fixes issue #342 and #343.