فهرست منبع

More future imports for safety

Christopher Grebs 11 سال پیش
والد
کامیت
f600fa8bf3
3فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 1 0
      fig/cli/socketclient.py
  2. 1 0
      fig/cli/utils.py
  3. 3 0
      fig/compat/texttable.py

+ 1 - 0
fig/cli/socketclient.py

@@ -1,3 +1,4 @@
+from __future__ import print_function
 # Adapted from https://github.com/benthor/remotty/blob/master/socketclient.py
 
 from select import select

+ 1 - 0
fig/cli/utils.py

@@ -1,5 +1,6 @@
 from __future__ import unicode_literals
 from __future__ import absolute_import
+from __future__ import division
 import datetime
 import os
 import socket

+ 3 - 0
fig/compat/texttable.py

@@ -66,6 +66,9 @@ Result:
     ijkl   0.000    5.000e-78   89    0.000
     mnop   0.023    5.000e+78   92    1.280e+22
 """
+from __future__ import division
+from __future__ import print_function
+from functools import reduce
 
 __all__ = ["Texttable", "ArraySizeError"]