Commits

Gregory Petukhov committed d3e1b94

Change default background color for random_image

Comments (0)

Files changed (2)

     return 'rgb(%d, %d, %d)' % (randint(0, 255), randint(0, 255), randint(0, 255))
 
 
-def generate_image(size, bgcolor='#000000'):
+def generate_image(size, bgcolor='#ffffff'):
     img = Image.new('RGBA', size=size)
     draw = ImageDraw.Draw(img)
     draw.rectangle(((0, 0), size), fill=bgcolor)
     return img
 
 
-def random_image(size=(200, 200), bgcolor='#000000'):
+def random_image(size=(200, 200), bgcolor='#ffffff'):
     source = '%d%d' % (time.time(), id({}))
     hashname = sha1(source).hexdigest() + '.jpg'
     tmpfile = NamedTemporaryFile()
 from setuptools import setup
 
 PACKAGE = 'common'
-VERSION = '0.1.42'
+VERSION = '0.1.43'
 
 if __name__ == '__main__':
     # Compile the list of packages available, because distutils doesn't have