fix ox.image

This commit is contained in:
j 2014-10-01 11:05:08 +02:00
commit a04e0ede04
3 changed files with 20 additions and 13 deletions

View file

@ -1,16 +1,16 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
import sys
from ox.utils import json
from six import PY2
from .utils import json
def minify(source, comment=''):
# see https://github.com/douglascrockford/JSMin/blob/master/README
def get_next_non_whitespace_token():
pass
# python2 performance with unicode string is terrible
if sys.version[0] == '2':
if PY2:
if isinstance(source, unicode):
source = source.encode('utf-8')
if isinstance(comment, unicode):