mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
fix wscripts to work with python3.
encode/decode return byte arrays in python3, not strings
This commit is contained in:
parent
d26a57d377
commit
1e169ea3e8
1 changed files with 5 additions and 3 deletions
8
wscript
8
wscript
|
|
@ -180,9 +180,11 @@ else:
|
|||
|
||||
V = MAJOR + '.' + MINOR + '.' + MICRO
|
||||
# Ensure that these are not unicode, which
|
||||
# can cause odd problems elsewhere
|
||||
VERSION = V.encode ('ascii', 'ignore')
|
||||
PROGRAM_VERSION = MAJOR.encode ('ascii', 'ignore')
|
||||
# can cause odd problems elsewhere. Note that
|
||||
# in python3, encode and decode do not return
|
||||
# strings, so we have to force the type.
|
||||
VERSION = str (V.encode ('ascii', 'ignore'))
|
||||
PROGRAM_VERSION = str (MAJOR.encode ('ascii', 'ignore'))
|
||||
|
||||
# Mandatory variables
|
||||
top = '.'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue