Skip to content

Commit 4d865fd

Browse files
committed
Bugfix with add tag, v1.14.2
1 parent 2cf384c commit 4d865fd

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

Changes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Revision history for the Python package RiveScript.
22

3+
1.14.2 Oct 18 2016
4+
- Fix numeric tags like `<add>` raising a `TypeError` exception.
5+
36
1.14.1 Aug 9 2016
47
- Fix a regression when handling Unicode strings under Python 2 (bug #40).
58

python-rivescript.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
%global desc A scripting language to make it easy to write responses for a chatterbot.
44

55
Name: python-%{srcname}
6-
Version: 1.14.1
6+
Version: 1.14.2
77
Release: 1%{?dist}
88
Summary: %{sum}
99

rivescript/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
__docformat__ = 'plaintext'
2121

2222
__all__ = ['rivescript']
23-
__version__ = '1.14.1'
23+
__version__ = '1.14.2'
2424

2525
from .rivescript import RiveScript
2626
from .exceptions import (

rivescript/brain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ def process_tags(self, user, msg, reply, st=[], bst=[], depth=0, ignore_object_e
705705
# Unrecognized tag.
706706
insert = "\x00{}\x01".format(match)
707707

708-
reply = reply.replace("<{}>".format(match), insert)
708+
reply = reply.replace("<{}>".format(match), text_type(insert))
709709

710710
# Restore unrecognized tags.
711711
reply = reply.replace("\x00", "<").replace("\x01", ">")

0 commit comments

Comments
 (0)