aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcclauss <cclauss@bluewin.ch>2018-06-11 23:17:46 +0200
committerJie Luo <anandolee@gmail.com>2018-06-11 14:17:46 -0700
commit35c6927cc13aceef90fe5dba7eceae28bde50045 (patch)
treea68e88f6fc96b9110db76049d142b903b80f3bfc
parenta0e82dbe569552ac848d088391b63aaa1108d1a3 (diff)
downloadprotobuf-35c6927cc13aceef90fe5dba7eceae28bde50045.tar.gz
protobuf-35c6927cc13aceef90fe5dba7eceae28bde50045.tar.bz2
protobuf-35c6927cc13aceef90fe5dba7eceae28bde50045.zip
import inspect (#3507)
Inspect is used five times on line 65-74 without being imported.
-rwxr-xr-xpython/stubout.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/stubout.py b/python/stubout.py
index aee4f2da..ba391045 100755
--- a/python/stubout.py
+++ b/python/stubout.py
@@ -17,6 +17,9 @@
# This file is used for testing. The original is at:
# http://code.google.com/p/pymox/
+import inspect
+
+
class StubOutForTesting:
"""Sample Usage:
You want os.path.exists() to always return true during testing.