|
From: <mi...@us...> - 2012-03-30 07:11:48
|
Revision: 7388
http://docutils.svn.sourceforge.net/docutils/?rev=7388&view=rev
Author: milde
Date: 2012-03-30 07:11:39 +0000 (Fri, 30 Mar 2012)
Log Message:
-----------
Apply [ 3512791 ] do not compare string literals with "is".
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/docutils/writers/latex2e/__init__.py
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2012-03-23 02:29:27 UTC (rev 7387)
+++ trunk/docutils/HISTORY.txt 2012-03-30 07:11:39 UTC (rev 7388)
@@ -82,6 +82,7 @@
- Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
when suppressing LaTeX section numbering.
- Use ``\DUtitle`` for unsupported section levels
+ - Apply [ 3512791 ] do not compare string literals with "is"
* docutils/writers/html4css1/__init__.py
Modified: trunk/docutils/docutils/writers/latex2e/__init__.py
===================================================================
--- trunk/docutils/docutils/writers/latex2e/__init__.py 2012-03-23 02:29:27 UTC (rev 7387)
+++ trunk/docutils/docutils/writers/latex2e/__init__.py 2012-03-30 07:11:39 UTC (rev 7388)
@@ -392,7 +392,7 @@
self.setup.append(
r'\addto\shorthandsspanish{\spanishdeactivate{."~<>}}')
# or prepend r'\def\spanishoptions{es-noshorthands}'
- if (languages[-1] is 'english' and
+ if (languages[-1] == 'english' and
'french' in self.otherlanguages.keys()):
self.setup += ['% Prevent side-effects if French hyphenation '
'patterns are not loaded:',
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|