From: Thierry Parmentelat <thierry.parmentelat@inria.fr>
Date: Thu, 28 Nov 2019 10:20:53 +0000 (+0100)
Subject: 2to3 on jsmin.py
X-Git-Tag: plewww-5.3-0~30
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=e7aa0388931b643066aed74a4a99955be58f2007;p=plewww.git

2to3 on jsmin.py
---

diff --git a/jsmin.py b/jsmin.py
index 5568c7f..1f2ab2b 100644
--- a/jsmin.py
+++ b/jsmin.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/python3
 
 # This code is original from jsmin by Douglas Crockford, it was translated to
 # Python by Baruch Even. The original code had the following copyright and
@@ -30,7 +30,7 @@
 # SOFTWARE.
 # */
 
-from StringIO import StringIO
+from io import StringIO
 
 def jsmin(js):
     ins = StringIO(js)