From 00e88d3a5c3402cf7fe708d2a32573ff13b02ade Mon Sep 17 00:00:00 2001 From: ndparker Date: Wed, 19 Feb 2014 17:18:17 +0100 Subject: [PATCH] work with -OO --- rjsmin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rjsmin.py b/rjsmin.py index 94387aa..0445fbf 100755 --- a/rjsmin.py +++ b/rjsmin.py @@ -60,7 +60,9 @@ Both python 2 and python 3 are supported. .. _jsmin.c by Douglas Crockford: http://www.crockford.com/javascript/jsmin.c """ -__doc__ = __doc__.encode('ascii').decode('unicode_escape') # pylint: disable = W0622, C0301 +if __doc__: + # pylint: disable = W0622 + __doc__ = __doc__.encode('ascii').decode('unicode_escape') __author__ = r"Andr\xe9 Malo".encode('ascii').decode('unicode_escape') __docformat__ = "restructuredtext en" __license__ = "Apache License, Version 2.0"