mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-11 17:00:49 +00:00
captcha.py: Simplify and sort import statements
Change-Id: Iaf968a4d69dba0550c8580b09e8029fee7b5fa94
This commit is contained in:
parent
99b1478884
commit
9f1f29dd8d
20
captcha.py
20
captcha.py
|
@ -25,22 +25,18 @@
|
||||||
# Tweaks by Greg Sabino Mullane <greg@turnstep.com>:
|
# Tweaks by Greg Sabino Mullane <greg@turnstep.com>:
|
||||||
# 2008-01-06: Add regex check to skip words containing other than a-z
|
# 2008-01-06: Add regex check to skip words containing other than a-z
|
||||||
|
|
||||||
import random
|
|
||||||
import math
|
|
||||||
import hashlib
|
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import os
|
import hashlib
|
||||||
import sys
|
|
||||||
import re
|
|
||||||
import multiprocessing
|
|
||||||
import json
|
import json
|
||||||
|
import math
|
||||||
|
import multiprocessing
|
||||||
|
import os
|
||||||
|
import random
|
||||||
|
import re
|
||||||
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from PIL import Image
|
from PIL import Image, ImageDraw, ImageEnhance, ImageFont, ImageOps
|
||||||
from PIL import ImageFont
|
|
||||||
from PIL import ImageDraw
|
|
||||||
from PIL import ImageEnhance
|
|
||||||
from PIL import ImageOps
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
sys.exit(
|
sys.exit(
|
||||||
"This script requires the Python Imaging Library - http://www.pythonware.com/products/pil/"
|
"This script requires the Python Imaging Library - http://www.pythonware.com/products/pil/"
|
||||||
|
|
Loading…
Reference in a new issue