mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-23 23:47:16 +08:00
Python 3 compatibility
This commit is contained in:
parent
ba446132d4
commit
d6c6017c25
@ -262,7 +262,7 @@ class ModuleManager(builder.ModuleManager):
|
|||||||
self.add('try:')
|
self.add('try:')
|
||||||
self.add(' import rtems_waf.rtems as rtems')
|
self.add(' import rtems_waf.rtems as rtems')
|
||||||
self.add('except:')
|
self.add('except:')
|
||||||
self.add(' print "error: no rtems_waf git submodule; see README.waf"')
|
self.add(' print("error: no rtems_waf git submodule; see README.waf")')
|
||||||
self.add(' import sys')
|
self.add(' import sys')
|
||||||
self.add(' sys.exit(1)')
|
self.add(' sys.exit(1)')
|
||||||
self.add('')
|
self.add('')
|
||||||
|
2
wscript
2
wscript
@ -11,7 +11,7 @@ import os.path
|
|||||||
try:
|
try:
|
||||||
import rtems_waf.rtems as rtems
|
import rtems_waf.rtems as rtems
|
||||||
except:
|
except:
|
||||||
print "error: no rtems_waf git submodule; see README.waf"
|
print("error: no rtems_waf git submodule; see README.waf")
|
||||||
import sys
|
import sys
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user