From 39d77b6cfa633b94a31de5ec387949a7c7b85623 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 9 Sep 2009 19:04:42 +0200 Subject: fix the bug where lock file was not removed Signed-off-by: Denys Vlasenko --- lib/Plugins/Python.cpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'lib/Plugins/Python.cpp') diff --git a/lib/Plugins/Python.cpp b/lib/Plugins/Python.cpp index c3677e7..3e6926c 100644 --- a/lib/Plugins/Python.cpp +++ b/lib/Plugins/Python.cpp @@ -9,21 +9,20 @@ std::string CAnalyzerPython::CreateHash(const std::string& pDebugDumpDir) { - std::string uuid; - CDebugDump dd; - dd.Open(pDebugDumpDir); - dd.LoadText("uuid", uuid); - dd.Close(); - return uuid; + std::string uuid; + CDebugDump dd; + dd.Open(pDebugDumpDir); + dd.LoadText("uuid", uuid); + return uuid; } std::string CAnalyzerPython::GetLocalUUID(const std::string& pDebugDumpDir) { - return CreateHash(pDebugDumpDir); + return CreateHash(pDebugDumpDir); } std::string CAnalyzerPython::GetGlobalUUID(const std::string& pDebugDumpDir) { - return GetLocalUUID(pDebugDumpDir); + return GetLocalUUID(pDebugDumpDir); } void CAnalyzerPython::Init() @@ -39,8 +38,8 @@ void CAnalyzerPython::Init() void CAnalyzerPython::DeInit() { - // TODO: remove copied abrt exception handler - std::ofstream fOutPySiteCustomize; + // TODO: remove copied abrt exception handler + std::ofstream fOutPySiteCustomize; fOutPySiteCustomize.open(PYHOOK_CONFIG); if (fOutPySiteCustomize.is_open()) { -- cgit