$ locale LANG=ja_JP.UTF-8 LANGUAGE=ja_JP:ja:en_GB:en LC_CTYPE="ja_JP.UTF-8" LC_NUMERIC="ja_JP.UTF-8" LC_TIME="ja_JP.UTF-8" LC_COLLATE="ja_JP.UTF-8" LC_MONETARY="ja_JP.UTF-8"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| % Takaoフォントファミリー | |
| %% 明朝系 | |
| rml H TakaoMincho.ttf | |
| rmlv V TakaoMincho.ttf | |
| rml-jis H TakaoMincho.ttf | |
| %% ゴシック系 | |
| gbm H TakaoGothic.ttf | |
| gbm V TakaoGothic.ttf | |
| gbm-jis H TakaoGothic.ttf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| from fractions import Fraction | |
| import unittest | |
| def fraction_from_repeating(period, base=10): | |
| """ | |
| Return a fraction equivalent to the given repeating decimal. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def fix_basic_auth_handler(): | |
| # Workaround for http://bugs.python.org/issue9639 | |
| if sys.version_info[:2] == (2, 6) and sys.version_info[2] >= 6: | |
| def fixed_http_error_401(self, req, fp, code, msg, headers): | |
| url = req.get_full_url() | |
| response = self.http_error_auth_reqed( | |
| 'www-authenticate', url, req, headers) | |
| self.retried = 0 | |
| return response |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| def fix_charref(s): | |
| return re.sub(r'&#(\d+);', lambda m: unichr(int(m.group(1))), s) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .. role:: del | |
| .. role:: new | |
| .. raw:: html | |
| <style> | |
| .del { text-decoration: line-through; } | |
| .new { color: red; } | |
| </style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sphinx/cmdline.py:189, in main | |
| app.build(force_all, filenames) | |
| sphinx/application.py:204, in build | |
| self.builder.build_update() | |
| sphinx/builders/__init__.py:196, in build_update | |
| 'out of date' % len(to_build)) | |
| sphinx/builders/__init__.py:252, in build | |
| self.write(docnames, list(updated_docnames), method) | |
| sphinx/builders/__init__.py:292, in write | |
| self.write_doc(docname, doctree) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >>> 1 + 2j | |
| (1+2j) | |
| >>> type(1 + 2j) | |
| <type 'complex'> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Before: | |
| # | |
| # * 06071d8 fix | |
| # | | |
| # * 75c9b25 merge | |
| # |\ | |
| # | * 34f1259 branch-B | |
| # | | | |
| # * | 5db192c branch-A | |
| # | | |