From dd512c9c2925254d58cc17c43a086a7f7206f14e Mon Sep 17 00:00:00 2001 From: James Cameron Date: Tue, 1 Aug 2017 09:39:02 +1000 Subject: [PATCH] Fix common typo, occured should be occurred --- src/sugar3/graphics/alert.py | 2 +- src/sugar3/logger.py | 2 +- src/sugar3/util.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sugar3/graphics/alert.py b/src/sugar3/graphics/alert.py index 54210428..291064ac 100644 --- a/src/sugar3/graphics/alert.py +++ b/src/sugar3/graphics/alert.py @@ -246,7 +246,7 @@ class Alert(Gtk.EventBox): Emitting response when we have a result A result can be that a user has clicked a button or - a timeout has occured, the id identifies the button + a timeout has occurred, the id identifies the button that has been clicked and -1 for a timeout """ self.emit('response', response_id) diff --git a/src/sugar3/logger.py b/src/sugar3/logger.py index da5a6f10..2e01b1cb 100644 --- a/src/sugar3/logger.py +++ b/src/sugar3/logger.py @@ -240,7 +240,7 @@ def trace(logger=None, logger_name=None, skip_args=None, skip_kwargs=None, try: res = f(*args, **kwargs) except: - trace_logger.exception("Exception occured in %s" % f.__name__) + trace_logger.exception("Exception occurred in %s" % f.__name__) raise trace_logger.log(TRACE, "%s(%s) returned %s", f.__name__, diff --git a/src/sugar3/util.py b/src/sugar3/util.py index 2fc56507..f44f250c 100644 --- a/src/sugar3/util.py +++ b/src/sugar3/util.py @@ -336,7 +336,7 @@ def _cleanup_temp_files(): os.unlink(path) except: # pylint: disable=W0702 - logging.exception('Exception occured in _cleanup_temp_files') + logging.exception('Exception occurred in _cleanup_temp_files') atexit.register(_cleanup_temp_files)