Skip to content

Commit

Permalink
Fix up minor issues with the README.
Browse files Browse the repository at this point in the history
  • Loading branch information
metatoaster committed Jun 9, 2017
1 parent 67ef721 commit b21b195
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ For platforms or systems that do not have utf8 configured as the default
encoding, the automatic table generation may fail when constructing a
parser instance. An example:

.. code:: python-doctest
.. code:: python
>>> from calmjs.parse.parsers import es5
>>> parser = es5.Parser()
Expand All @@ -232,15 +232,15 @@ parser instance. An example:
tf.write('_lexstatere = %s\n' % repr(tabre))
File "c:\python35\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u02c1' in position 2488: character maps to <undefined>
UnicodeEncodeError: 'charmap' codec ...
A workaround helper script is provided, it may be executed like so:

.. code:: sh
$ python -m calmjs.parse.parsers.optimize
For more details, refer to the ``Manual optimization`` section of this
For more details, refer to the `Manual optimization`_ section of this
document.


Expand Down

0 comments on commit b21b195

Please sign in to comment.