Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 291959 Details for
Bug 387389
Bug 369943 has been reintroduced in docutils 8.1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Patch for docutils-0.8.1
docutils-0.8.1.patch (text/plain), 1.07 KB, created by
Blackmore
on 2011-11-08 10:36:04 UTC
(
hide
)
Description:
Patch for docutils-0.8.1
Filename:
MIME Type:
Creator:
Blackmore
Created:
2011-11-08 10:36:04 UTC
Size:
1.07 KB
patch
obsolete
>diff -Naur docutils-0.8.1/docutils/languages/__init__.py docutils-0.8.1.patched/docutils/languages/__init__.py >--- docutils-0.8.1/docutils/languages/__init__.py 2010-09-28 10:21:25.000000000 +0200 >+++ docutils-0.8.1.patched/docutils/languages/__init__.py 2011-11-07 00:15:14.840507517 +0100 >@@ -15,7 +15,7 @@ > > _languages = {} > >-def get_language(language_code, reporter): >+def get_language(language_code, reporter=None): > """Return module with language localizations. > > `language_code` is a "BCP 47" language tag. >@@ -31,9 +31,10 @@ > continue > _languages[tag] = module > return module >- reporter.warning( >- 'language "%s" not supported: ' % language_code + >- 'Docutils-generated text will be in English.') >+ if reporter: # warn only if there is a reporter provided >+ reporter.warning( >+ 'language "%s" not supported: ' % language_code + >+ 'Docutils-generated text will be in English.') > module = __import__('en', globals(), locals()) > _languages[tag] = module # warn only one time! > return module
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 387389
: 291959