diff options
author | Georg Brandl <georg@python.org> | 2010-07-28 19:35:35 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-07-28 19:35:35 +0200 |
commit | 024ec6696fb72b6658c67891a53021e86bb4b893 (patch) | |
tree | c6549f0f2673c6fce8822bb2a03068f8450a3044 /sphinx/directives/code.py | |
parent | 5f5f9177906c05f7d9049fc6456e1386537edabc (diff) | |
download | sphinx-git-024ec6696fb72b6658c67891a53021e86bb4b893.tar.gz |
Mode "Ub" does not exist.
Diffstat (limited to 'sphinx/directives/code.py')
-rw-r--r-- | sphinx/directives/code.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/directives/code.py b/sphinx/directives/code.py index 54d8edf19..1808cdaba 100644 --- a/sphinx/directives/code.py +++ b/sphinx/directives/code.py @@ -119,7 +119,7 @@ class LiteralInclude(Directive): encoding = self.options.get('encoding', env.config.source_encoding) codec_info = codecs.lookup(encoding) try: - f = codecs.StreamReaderWriter(open(fn, 'Ub'), + f = codecs.StreamReaderWriter(open(fn, 'rb'), codec_info[2], codec_info[3], 'strict') lines = f.readlines() f.close() |