aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/test
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-01-27 00:33:42 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-01-27 00:46:18 -0800
commit557c5395dbdc7e87137549b355944e53fb6030d8 (patch)
tree042baa6a8f4f6691a29c2b2caf6df3d7440bbd14 /tensorflow/tools/test
parent95c7dfc16063c77871257b4da8d8958c731d19c2 (diff)
Use glob.glob instead of gfile.Glob in system_info_lib.py.
Change: 145768535
Diffstat (limited to 'tensorflow/tools/test')
-rw-r--r--tensorflow/tools/test/system_info_lib.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/tools/test/system_info_lib.py b/tensorflow/tools/test/system_info_lib.py
index 40e520106e..c352abaa54 100644
--- a/tensorflow/tools/test/system_info_lib.py
+++ b/tensorflow/tools/test/system_info_lib.py
@@ -18,6 +18,7 @@ from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
+import glob
import multiprocessing
import platform
import re
@@ -104,7 +105,7 @@ def gather_cpu_info():
try:
cpu_governors = set([
gfile.GFile(f, 'r').readline().rstrip()
- for f in gfile.Glob(
+ for f in glob.glob(
'/sys/devices/system/cpu/cpu*/cpufreq/scaling_governor')
])
if cpu_governors: