[pitivi] Fix pylint consider-using-sys-exit
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Fix pylint consider-using-sys-exit
- Date: Mon, 11 Nov 2019 22:04:43 +0000 (UTC)
commit c1c719afcdd8457224dbc6ab6c2a07daf40e7caf
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Fri Oct 25 14:25:54 2019 +0200
Fix pylint consider-using-sys-exit
pitivi/check.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/pitivi/check.py b/pitivi/check.py
index 6694e06c..8a0de935 100644
--- a/pitivi/check.py
+++ b/pitivi/check.py
@@ -336,7 +336,7 @@ def require_version(modulename, version):
except ValueError:
print(_("Could not import '%s'. Make sure you have it available.")
% modulename)
- exit(1)
+ sys.exit(1)
def initialize_modules():
@@ -350,7 +350,7 @@ def initialize_modules():
except ImportError:
print(_("Could not import 'gi'. "
"Make sure you have pygobject available."))
- exit(1)
+ sys.exit(1)
require_version("Gtk", GTK_API_VERSION)
require_version("Gdk", GTK_API_VERSION)
@@ -376,7 +376,7 @@ def initialize_modules():
from gi.repository import GstPbutils
from pitivi.utils.misc import video_info_get_natural_height, video_info_get_natural_width,
video_info_get_rotation
- # Monky patch a helper method for retrieving the size of a video
+ # Monkey patch a helper method for retrieving the size of a video
# when using square pixels.
GstPbutils.DiscovererVideoInfo.get_natural_width = video_info_get_natural_width
GstPbutils.DiscovererVideoInfo.get_natural_height = video_info_get_natural_height
@@ -398,9 +398,9 @@ def initialize_modules():
except IndexError:
action_type = []
if validate.GstValidate.print_action_types(action_type):
- exit(0)
+ sys.exit(0)
else:
- exit(1)
+ sys.exit(1)
# Package maintainers, this is where you can see the list of requirements.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]