Skip to content

Commit f72c42a

Browse files
committed
0.20210212: fix #1, fix #4: python3 compatibility
1 parent afae4e3 commit f72c42a

File tree

5 files changed

+15
-532
lines changed

5 files changed

+15
-532
lines changed

CHANGE.log

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
package: python-cropper-tk
2-
author: zvezdochiot [https://github.com/zvezdochiot], potatoboiler [https://github.com/potatoboiler]
2+
author: zvezdochiot [https://github.com/zvezdochiot]
3+
4+
0.20210212
5+
COMPATIBLE
6+
7+
fixed: python3 compatibility
8+
remove code for Python3 by @potatoboiler
39

410
0.20201015
511
REORGANIZE

croppertk.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515
'''
1616

1717
PROGNAME = 'Cropper-Tk'
18-
VERSION = '0.20200509'
18+
VERSION = '0.20210212'
1919

2020
import os
2121
import sys
2222
from PIL import Image, ImageTk, ImageFilter, ImageChops
2323

24-
reload(sys)
25-
sys.setdefaultencoding(sys.stdout.encoding)
26-
2724
py_version = sys.version
2825

2926
if py_version[0] == "2":
3027
# for Python2
28+
reload(sys)
29+
sys.setdefaultencoding(sys.stdout.encoding)
30+
3131
import Tkinter as tk
3232
import tkFileDialog as tkfd
3333

0 commit comments

Comments
 (0)