diff options
| author | Tomaz Solc <tomaz.solc@tablix.org> | 2013-01-26 19:59:40 +0100 |
|---|---|---|
| committer | Tomaz Solc <tomaz.solc@tablix.org> | 2013-01-26 19:59:40 +0100 |
| commit | 832a044a0cbdf6d25338b427662a99df772299f2 (patch) | |
| tree | aa2fe320fcd9e12893c56f793c8c2852a46c5597 /unidecode | |
| parent | e167158b5ce008fa6c537640a1b82c188a4825b2 (diff) | |
| download | unidecode-832a044a0cbdf6d25338b427662a99df772299f2.tar.gz | |
Make the warning refer to unidecode()'s caller.
Diffstat (limited to 'unidecode')
| -rw-r--r-- | unidecode/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unidecode/__init__.py b/unidecode/__init__.py index f86fb03..82eb5a3 100644 --- a/unidecode/__init__.py +++ b/unidecode/__init__.py @@ -28,7 +28,8 @@ def unidecode(string): if version_info[0] < 3 and not isinstance(string, unicode): warnings.warn( "Argument %r is not an unicode object. " "Passing an encoded string will likely have " - "unexpected results." % (type(string),) , RuntimeWarning) + "unexpected results." % (type(string),), + RuntimeWarning, 2) retval = [] |
