Skip to content

Commit

Permalink
v0.6.0 — ensure_ascii
Browse files Browse the repository at this point in the history
- Include changelog in the Read the Docs site
- Support Python 3.8
- When dumping a value that begins with more than one space, only escape the first space in order to better match Java's behavior
- Gave `dump()`, `dumps()`, `escape()`, and `join_key_value()` an `ensure_ascii` parameter for optionally not escaping non-ASCII characters in output
- Gave `dump()` and `dumps()` an `ensure_ascii_comments` parameter for controlling what characters in the `comments` parameter are escaped
- Gave `to_comment()` an `ensure_ascii` parameter for controlling what characters are escaped
- Added a custom encoding error handler `'javapropertiesreplace'` that encodes invalid characters as `\uXXXX` escape sequences
  • Loading branch information
jwodder committed Feb 28, 2020
1 parent d433150 commit f819839
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
v0.6.0 (in development)
-----------------------
v0.6.0 (2020-02-28)
-------------------
- Include changelog in the Read the Docs site
- Support Python 3.8
- When dumping a value that begins with more than one space, only escape the
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016-2019 John Thorvald Wodder II
Copyright (c) 2016-2020 John Thorvald Wodder II

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Changelog
=========

v0.6.0 (in development)
-----------------------
v0.6.0 (2020-02-28)
-------------------
- Include changelog in the Read the Docs site
- Support Python 3.8
- When dumping a value that begins with more than one space, only escape the
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

project = 'javaproperties'
author = 'John T. Wodder II'
copyright = '2016-2019 John T. Wodder II'
copyright = '2016-2020 John T. Wodder II'

extensions = [
'sphinx.ext.autodoc',
Expand Down
2 changes: 1 addition & 1 deletion javaproperties/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
to_comment
from .xmlprops import load_xml, loads_xml, dump_xml, dumps_xml

__version__ = '0.6.0.dev1'
__version__ = '0.6.0'
__author__ = 'John Thorvald Wodder II'
__author_email__ = '[email protected]'
__license__ = 'MIT'
Expand Down

0 comments on commit f819839

Please sign in to comment.