[pitivi] loggable: Fix the getFileLine return value when there is an error
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] loggable: Fix the getFileLine return value when there is an error
- Date: Sun, 2 Mar 2014 12:37:14 +0000 (UTC)
commit 508253e44d66b060ac94709f65064ec45b2b7351
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Wed Jan 29 15:02:14 2014 +0100
loggable: Fix the getFileLine return value when there is an error
pitivi/utils/loggable.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/utils/loggable.py b/pitivi/utils/loggable.py
index 82c82c9..1569e42 100644
--- a/pitivi/utils/loggable.py
+++ b/pitivi/utils/loggable.py
@@ -427,8 +427,8 @@ def getFileLine(where=-1):
@param where: how many frames to go back up, or function
@type where: int (negative) or function
- @return: tuple of (file, line)
- @rtype: tuple of (str, int)
+ @return: tuple of (file, line, function_name)
+ @rtype: tuple of (str, int, str)
"""
co = None
lineno = None
@@ -458,7 +458,7 @@ def getFileLine(where=-1):
stackFrame = stackFrame.f_back
if not co:
- return "<unknown file>", 0
+ return "<unknown file>", 0, None
return scrubFilename(co.co_filename), lineno, name
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]