# built documents.
#
# The short X.Y version.
-version = '0.7.2'
+version = '0.7.3'
# The full version, including alpha/beta/rc tags.
-release = '0.7.2'
+release = '0.7.3'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
from PIL import Image
from os.path import join, dirname, getmtime, exists, expanduser
from .config import *
+from .py3patch import *
import ctypes
import sys
i = i.resize((width, height), Image.ANTIALIAS)
height = min(height, c['IMAGE_MAX_HEIGHT'])
- for y in range(height):
+ for y in xrange(height):
sys.stdout.write(' ' * start)
- for x in range(width):
+ for x in xrange(width):
p = i.getpixel((x, y))
r, g, b = p[:3]
pixel_print(rgb2short(r, g, b))
tweet = text.split()
# Replace url
if expanded_url:
- for index in range(len(expanded_url)):
+ for index in xrange(len(expanded_url)):
tweet = lmap(
lambda x: expanded_url[index]
if x == url[index]
from PIL import Image
from functools import partial
from .config import *
+from .py3patch import *
import sys
import os
"""
value = value.lstrip('#')
lv = len(value)
- return tuple(int(value[i:i + lv / 3], 16) for i in range(0, lv, lv / 3))
+ return tuple(int(value[i:i + lv / 3], 16) for i in xrange(0, lv, lv / 3))
def rgb_to_hex(rgb):
lmap = lambda f, a: map(f, a)
unc = lambda x: x.decode('utf-8')
else:
+ xrange = range
raw_input = input
lmap = lambda f, a: list(map(f, a))
unc = lambda x: x
import os.path
# Bumped version
-version = '0.7.2'
+version = '0.7.3'
# Require
install_requires = [