1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/www/twms/files/patch-twms__drawing.py
William Grzybowski 99231cff97 www/twms: switch from py-imaging to py-pillow
With hat:	python
Approved by:	portmgr (bdrewery, implicit)
2014-10-07 12:01:51 +00:00

19 lines
595 B
Python

--- twms/drawing.py.orig 2014-10-07 11:57:57 UTC
+++ twms/drawing.py
@@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with tWMS. If not, see <http://www.gnu.org/licenses/>.
-import Image, ImageDraw
+from PIL import Image, ImageDraw
import urllib
import os, sys
@@ -79,4 +79,4 @@
draw.ellipse((coords[0][0]-3,coords[0][1]-3,coords[0][0]+3,coords[0][1]+3),fill=color,outline=color)
elif geometry == "POLYGON":
draw.polygon(coords, fill=color, outline=color)
- return img
\ No newline at end of file
+ return img