Skip to content

Commit e7763b3

Browse files
committed
quick fixes, bump version number, and changelog.
1 parent 93f5382 commit e7763b3

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

CHANGELOG.textile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
h1. Textile Changelog
22

3+
h2. Version 2.3.3
4+
* Bugfix: Unicode in URL titles no longer break everything ("#30":https://github.com/textile/python-textile/issues/30)
5+
* Display DeprecationWarning when using textile on Python 2.6.
6+
37
h2. Version 2.3.2
48
* Bugfix: properly handle @":"@ as text, not a link.
59

textile/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
if sys.version_info[:2] == (2, 6):
1515
warnings.warn(
1616
"Python 2.6 is no longer supported by the Python core team, please "
17-
"upgrade your Python. A future version of cryptography will drop "
18-
"support for Python 2.6",
17+
"upgrade your Python. A future version of textile will drop support "
18+
"for Python 2.6",
1919
DeprecationWarning
2020
)

textile/core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,9 @@ def _casesdefault(c, pop, popped, url_chars, counts, pre):
874874
url = self.shelveURL(self.encode_url(urlunsplit(uri_parts)))
875875
attributes = parse_attributes(atts)
876876
if title:
877+
# if the title contains unicode data, it is annoying to get Python
878+
# 2.6 and all the latter versions working properly. But shelving
879+
# the title is a quick and dirty solution.
877880
attributes['title'] = self.shelve(title)
878881
attributes['href'] = url
879882
if self.rel:

textile/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = '2.3.2'
1+
VERSION = '2.3.3'

0 commit comments

Comments
 (0)