git://git.onelab.eu
/
plewww.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c914633
)
2to3 on jsmin.py
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Thu, 28 Nov 2019 10:20:53 +0000
(11:20 +0100)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Thu, 28 Nov 2019 10:20:53 +0000
(11:20 +0100)
jsmin.py
patch
|
blob
|
history
diff --git
a/jsmin.py
b/jsmin.py
index
5568c7f
..
1f2ab2b
100644
(file)
--- a/
jsmin.py
+++ b/
jsmin.py
@@
-1,4
+1,4
@@
-#!/usr/bin/python
2
\r
+#!/usr/bin/python
3
\r
\r
# This code is original from jsmin by Douglas Crockford, it was translated to
\r
# Python by Baruch Even. The original code had the following copyright and
\r
@@
-30,7
+30,7
@@
# SOFTWARE.
\r
# */
\r
\r
-from
StringIO
import StringIO
\r
+from
io
import StringIO
\r
\r
def jsmin(js):
\r
ins = StringIO(js)
\r