Skip to content

Commit

Permalink
Fix typos in comments and update docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
goanpeca committed Jun 15, 2017
1 parent 299200d commit 93137c8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions spyder/utils/syntaxhighlighters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ class PygmentsSH(BaseSH):
# Store the language name and a ref to the lexer
_lang_name = None
_lexer = None
_charlist = []

# Syntax highlighting states (from one text block to another):
NORMAL = 0
def __init__(self, parent, font=None, color_scheme=None):
Expand Down Expand Up @@ -1082,11 +1082,11 @@ def __init__(self, parent, font=None, color_scheme=None):
# parsing
self._worker_manager = WorkerManager()

# Store the format for all the tokens after pygments parsing
# Store the format for all the tokens after Pygments parsing
self._charlist = []

# Flag variable to avoid unnecessary highlights if the worker has not
# yet finish processing
# yet finished processing
self._allow_highlight = True

def make_charlist(self):
Expand Down
10 changes: 7 additions & 3 deletions spyder/utils/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
# Licensed under the terms of the MIT License
# (see spyder/__init__.py for details)
# -----------------------------------------------------------------------------
"""Worker threads for downloading files."""
"""
Worker manager and workers for running files long processes in non GUI
blocking threads.
"""

# Standard library imports
from collections import deque
Expand Down Expand Up @@ -41,7 +44,7 @@ class PythonWorker(QObject):
sig_finished = Signal(object, object, object) # worker, stdout, stderr

def __init__(self, func, args, kwargs):
"""Download Worker based on requests."""
"""Generic python worker for running python code on threads."""
super(PythonWorker, self).__init__()
self.func = func
self.args = args
Expand Down Expand Up @@ -86,7 +89,8 @@ class ProcessWorker(QObject):
sig_partial = Signal(object, object, object)

def __init__(self, cmd_list, environ=None):
"""Conda worker based on a QProcess for non blocking UI.
"""
Process worker based on a QProcess for non blocking UI.
Parameters
----------
Expand Down

0 comments on commit 93137c8

Please sign in to comment.