1. Andriy Kornatskyy
  2. wheezy.captcha

Commits

Andriy Kornatskyy  committed 49d37b8

Fixed pep8 warnings.

  • Participants
  • Parent commits 6828acd
  • Branches default

Comments (0)

Files changed (1)

File src/wheezy/captcha/image.py

View file
 import Image
 import ImageFilter
 
-from ImageFont import truetype
 from ImageColor import getrgb
 from ImageDraw import Draw
+from ImageFont import truetype
 
 
 def captcha(drawings, width=200, height=75):
         return image
     return render
 
+
 #region: captcha drawers
 
 def background(color='#EEEECC'):
         return image
     return drawer
 
+
 #region: text drawers
 
 def warp(dx_factor=0.27, dy_factor=0.21):
         background(),
         text(fonts=[
             'fonts/CourierNew-Bold.ttf',
-            'fonts/Tahoma.ttf'],
+            'fonts/LiberationMono-Bold.ttf'],
             drawings=[
                 warp(),
                 rotate(),