From 1c2bdd1654af38019e65bf175f0c4871bb621284 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 30 Jan 2014 08:44:19 -0600 Subject: [PATCH] fixed issue 1862, readline problem in cpdb, thanks kmelevskiy --- VERSION | 2 +- scripts/cpdb.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index ac3fbde7..b34db6ad 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.8.2-stable+timestamp.2014.01.27.15.49.57 +Version 2.8.2-stable+timestamp.2014.01.30.08.43.19 diff --git a/scripts/cpdb.py b/scripts/cpdb.py index c5d00fbf..347a9a5b 100644 --- a/scripts/cpdb.py +++ b/scripts/cpdb.py @@ -10,7 +10,10 @@ from collections import deque import math import re import cmd -import readline +try: + import pyreadline as readline +except ImportError: + import readline try: from gluon import DAL except ImportError as err: