Yaniv Bronhaim has uploaded a new change for review.

Change subject: fixing pyflakes errors
......................................................................

fixing pyflakes errors

Change-Id: I54dad2edc73c3922bdb8c97e6fa036a3dfcf683b
Signed-off-by: Yaniv Bronhaim <[email protected]>
---
M contrib/profile-stats
M vdsm/vdsm
M vdsm/vdsmDebugPlugin.py
3 files changed, 2 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/26/35026/1

diff --git a/contrib/profile-stats b/contrib/profile-stats
index 0666eac..4b02cd9 100755
--- a/contrib/profile-stats
+++ b/contrib/profile-stats
@@ -56,7 +56,6 @@
 
 import optparse
 import pstats
-import sys
 
 op = optparse.OptionParser(usage='%prog [options] file')
 op.add_option('-s', '--sort', dest='sort',
diff --git a/vdsm/vdsm b/vdsm/vdsm
index 9004c8c..5c1ab71 100755
--- a/vdsm/vdsm
+++ b/vdsm/vdsm
@@ -111,6 +111,7 @@
     # vdsmDebugPlugin.py should not exists
     try:
         import vdsmDebugPlugin
+        vdsmDebugPlugin.turnOnDebugPlugin()
     except ImportError:
         # This is OK, it just means the file isn't
         # there and we are not running in debug mode.
diff --git a/vdsm/vdsmDebugPlugin.py b/vdsm/vdsmDebugPlugin.py
index 3f4e7b7..af06dbe 100644
--- a/vdsm/vdsmDebugPlugin.py
+++ b/vdsm/vdsmDebugPlugin.py
@@ -36,7 +36,7 @@
         exec(code)
 
 
-def __turnOnDebugPlugin():
+def turnOnDebugPlugin():
     log.warn("Starting Debug Interpreter. Tread lightly!")
     try:
         if os.path.exists(ADDRESS):
@@ -50,5 +50,3 @@
         servThread.start()
     except:
         log.error("Could not start debug plugin", exc_info=True)
-
-__turnOnDebugPlugin()


-- 
To view, visit http://gerrit.ovirt.org/35026
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I54dad2edc73c3922bdb8c97e6fa036a3dfcf683b
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to