Commit Graph

44 Commits

Author SHA1 Message Date
Takayuki Shimizukawa
ba4dcaa8dd use b prefix for bytes instead of sphinx.pycompat.b function. 2014-05-01 22:54:09 +09:00
Takayuki Shimizukawa
1e58062692 remove 'six' name except importing line. 2014-04-30 21:30:46 +09:00
Takayuki Shimizukawa
9dbb6bf092 use UnicodeMixin for __str__, __unicode__ to support py2/py3 in one source. refs #1350. 2014-04-30 00:31:09 +09:00
Takayuki Shimizukawa
00eff0b7f6 use six privided text_type() to replace with unicode() to support py2/py3 in one source. refs #1350. 2014-04-29 23:44:12 +09:00
Takayuki Shimizukawa
68290a266c introduce the six module and reduce sphinx.util.pycompat implementation. refs #1350. 2014-04-29 11:46:47 +09:00
Georg Brandl
ac92719ac3 Update copyright year. 2014-03-01 08:18:23 +01:00
Georg Brandl
e030031321 Update copyright year. 2014-03-01 08:18:16 +01:00
Georg Brandl
d165644ce4 merge with stable 2014-03-01 08:07:31 +01:00
Georg Brandl
f3dba82564 Fix inspect using the "__builtins__" CPython specific module. 2014-03-01 08:00:20 +01:00
Dmitry Shachnev
ce2185ce27 Modernize the code now that Python 2.5 is no longer supported
- Use print function instead of print statement;
- Use new exception handling;
- Use in operator instead of has_key();
- Do not use tuple arguments in functions;
- Other miscellaneous improvements.

This is based on output of `futurize --stage1`, with some
manual corrections.
2014-01-19 14:17:10 +04:00
Takayuki Shimizukawa
cc7509966c merge heads 2014-01-15 05:25:56 +00:00
Georg Brandl
c12aa9250c Closes #908: On Python 3, handle error messages from LaTeX correctly in the pngmath extension. 2014-01-11 09:07:11 +01:00
Takayuki Shimizukawa
f7cb510ebd Drop python-3.1 and remove support codes 2013-12-15 16:04:23 +09:00
Takayuki Shimizukawa
a8fc938d1b Drop python-2.5 and remove 2.4,2.5 support codes 2013-12-15 14:16:53 +09:00
Takayuki Shimizukawa
a462284f95 fix: make.bat is always saved with 'LF' instead of 'CRLF' for both Win/Unix. 2013-02-10 11:51:36 +09:00
Takayuki Shimizukawa
05718e4a1a conf.py now accept CRLF end-of-line. 2013-02-10 15:25:45 +09:00
Georg Brandl
9b4efc9ba3 Fix pyflakes issues. 2013-01-13 10:26:52 +01:00
Georg Brandl
151856819c Copyright update. 2013-01-01 22:13:15 +01:00
Takayuki Shimizukawa
7e56be6f62 * fix for Python2.5: test failed by using os.path.relpath that introduced at Python-2.6. 2012-05-02 12:06:29 +09:00
Georg Brandl
4ff9c71c91 Closes #810: fix deprecation warnings with Python 3. What is left over is from nose or docutils. 2012-01-29 12:23:17 +01:00
Georg Brandl
c05063d0a5 Fix #767: safely encode SphinxErrors when printing to sys.stderr. 2011-09-21 10:46:39 +02:00
Georg Brandl
7fa67682ac Fix #705: read module source in ModuleAnalyzer in binary mode, decode afterwards. 2011-09-19 09:03:07 +02:00
Georg Brandl
17efae5622 merge with 1.0 2011-01-04 11:29:09 +01:00
Georg Brandl
0e1db6ad90 New year update. 2011-01-04 10:00:51 +01:00
Georg Brandl
65505907f1 Fix loading JS searchindex data in Py3k. 2010-10-29 07:17:14 +02:00
Georg Brandl
af509f4c73 Next is new in 2.6. 2010-08-21 22:19:50 +02:00
Georg Brandl
896be9a201 Group conditional sections in pycompat. 2010-08-21 22:11:01 +02:00
Georg Brandl
cfb6331c6a merge 2010-08-21 21:56:37 +02:00
Georg Brandl
2887d24710 Supply substitute implementation of itertools.(i)zip_longest. 2010-08-21 21:54:50 +02:00
Daniel Neuhäuser
bbd39e5533 Added a fallback for itertools.izip_longest to pycompat for python versions < 2.6 2010-08-21 21:08:15 +02:00
Daniel Neuhäuser
043579e468 Added a fallback for itertools product to pycompat for python versions < 2.6 2010-08-21 20:53:05 +02:00
Georg Brandl
0e84c75822 Improve support for automatic 2to3 conversion of config files. It now kicks in whenever the original file raises SyntaxErrors on compiling. 2010-07-31 19:47:15 +02:00
Georg Brandl
86cd745dc1 Run 2to3 on config files which contain Python 2.x unicode literals. 2010-07-30 16:59:47 +02:00
Georg Brandl
d249c619fd Move doctest blocks out of blockquotes even if there is more than one. 2010-06-01 09:42:57 +02:00
Georg Brandl
b621cfaec1 Unify version_info checks. 2010-07-28 19:36:57 +02:00
Georg Brandl
fc10038398 Move bytes to pycompat. 2010-07-28 19:13:25 +02:00
Georg Brandl
563f506d1b Fix assignment. 2010-07-28 19:08:44 +02:00
Georg Brandl
434da2a4fb Use next() function instead of iter.next(). 2010-07-28 18:51:57 +02:00
Georg Brandl
ec5a5e739b Move the "b" function to pycompat. 2010-07-28 18:43:40 +02:00
Georg Brandl
d6e5dfacd4 Add a constant for class types, which lacks types.ClassType in Py3k. 2010-07-28 18:13:57 +02:00
Georg Brandl
c5d67b0321 Refactor util package. 2010-01-17 17:35:12 +01:00
Georg Brandl
f6a56192d1 Happy new year! 2010-01-01 14:09:13 +01:00
Georg Brandl
728e1904ec Make check happy. 2009-06-17 08:48:19 +02:00
Georg Brandl
d98e9e3376 Restore Python 2.4 compatibility. 2009-06-16 23:38:47 +02:00