]> git.lizzy.rs Git - rust.git/commitdiff
Add __future__ imports to increase compatibility with Python 3. Derive Option from...
authorjohnthagen <johnthagen@users.noreply.github.com>
Mon, 9 Oct 2017 15:16:18 +0000 (08:16 -0700)
committerjohnthagen <johnthagen@users.noreply.github.com>
Mon, 9 Oct 2017 15:16:18 +0000 (08:16 -0700)
src/bootstrap/bootstrap.py
src/bootstrap/bootstrap_test.py
src/bootstrap/configure.py

index 4a8c3dcebcb498619186894cd0d92ccdea4d56b1..fecb8e6a05e474a6d0af469e2e57438e6f7a4060 100644 (file)
@@ -8,7 +8,7 @@
 # option. This file may not be copied, modified, or distributed
 # except according to those terms.
 
-from __future__ import print_function
+from __future__ import absolute_import, division, print_function
 import argparse
 import contextlib
 import datetime
index 32ea4b4abe638b51cfc95d898e800922962ce792..4db7e2ec016f0c5ef145ba850a3f0bc86cd9c8e9 100644 (file)
@@ -10,6 +10,7 @@
 
 """Bootstrap tests"""
 
+from __future__ import absolute_import, division, print_function
 import os
 import doctest
 import unittest
index 67337bf44214e982269b50c8de286cf1d2453f92..3c161b7bb145d5c58d162a471dbf348fa621b982 100755 (executable)
@@ -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