Add __future__ imports to increase compatibility with Python 3. Derive Option from object to make it a new-style class for Python 3 compatibility.
This commit is contained in:
parent
d7acd29ad5
commit
49a73d0901
3 changed files with 4 additions and 2 deletions
|
@ -11,6 +11,7 @@
|
|||
|
||||
# ignore-tidy-linelength
|
||||
|
||||
from __future__ import absolute_import, division, print_function
|
||||
import sys
|
||||
import os
|
||||
rust_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
|
@ -19,7 +20,7 @@ rust_dir = os.path.dirname(rust_dir)
|
|||
sys.path.append(os.path.join(rust_dir, "src", "bootstrap"))
|
||||
import bootstrap
|
||||
|
||||
class Option:
|
||||
class Option(object):
|
||||
def __init__(self, name, rustbuild, desc, value):
|
||||
self.name = name
|
||||
self.rustbuild = rustbuild
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue