prompt (beautifully) user during configuration of a backend

This commit is contained in:
Romain Bignon 2014-01-23 23:52:41 +01:00
commit b36daee5b1
2 changed files with 46 additions and 13 deletions

View file

@ -20,7 +20,6 @@
import re
import subprocess
import sys
from .ordereddict import OrderedDict
from .misc import to_unicode
@ -130,7 +129,7 @@ class Value(object):
Test if a value begin with ` and end with `
(`command` is used to call external programms)
"""
return (v.startswith(u'`') and v.endswith(u'`'))
return isinstance(v, basestring) and v.startswith(u'`') and v.endswith(u'`')