Skip to content

Commit

Permalink
Merge from 2.3: Fix for #2239 and other minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Mar 14, 2015
2 parents 148df40 + 263ce67 commit 1c6541b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions spyderlib/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def is_ubuntu():
SANS_SERIF = ['Ubuntu'] + SANS_SERIF
MONOSPACE = ['Ubuntu Mono'] + MONOSPACE
BIG = 13
MEDIUM = SMALL = 10
MEDIUM = SMALL = 11
else:
BIG = 12
MEDIUM = SMALL = 9
Expand Down Expand Up @@ -713,7 +713,7 @@ def is_ubuntu():
# 2. If you want to *remove* options that are no longer needed in our codebase,
# you need to do a MAJOR update in version, e.g. from 3.0.0 to 4.0.0
# 3. You don't need to touch this value if you're just adding a new option
CONF_VERSION = '16.0.0'
CONF_VERSION = '16.1.0'

# XXX: Previously we had load=(not DEV) here but DEV was set to *False*.
# Check if it *really* needs to be updated or not
Expand Down
8 changes: 4 additions & 4 deletions spyderlib/plugins/inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@
else:
IPythonControlWidget = None # analysis:ignore

# Check for Sphinx presence to activate rich text mode
if programs.is_module_installed('sphinx', '>=0.6.6'):
sphinx_version = programs.get_module_version('sphinx')
# Check if we can import Sphinx to activate rich text mode
try:
from spyderlib.utils.inspector.sphinxify import (CSS_PATH, sphinxify,
warning, generate_context,
usage)
else:
sphinx_version = programs.get_module_version('sphinx')
except ImportError:
sphinxify = sphinx_version = None # analysis:ignore

# To add sphinx dependency to the Dependencies dialog
Expand Down
3 changes: 2 additions & 1 deletion spyderlib/pygments_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def apply():

# Patching IPython's patch of RegLexer (Oh God!!)
from pygments.lexer import _TokenType, Text, Error
from spyderlib.py3compat import to_text_string
try:
from IPython.qt.console.pygments_highlighter import RegexLexer
except ImportError:
Expand Down Expand Up @@ -69,7 +70,7 @@ def get_tokens_unprocessed(self, text, stack=('root',)):
pos += 1
statestack = ['root']
statetokens = tokendefs['root']
yield pos, Text, u'\n'
yield pos, Text, to_text_string('\n')
continue
yield pos, Error, text[pos]
pos += 1
Expand Down

0 comments on commit 1c6541b

Please sign in to comment.