summarylogtreecommitdiffstats
path: root/pillow-import.patch
blob: a910c47fc1e8b2c0e1fc5a51cd2f64b78b849186 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/flacsync/encoder.py b/flacsync/encoder.py
index afdffc3..9822346 100644
--- a/flacsync/encoder.py
+++ b/flacsync/encoder.py
@@ -15,7 +15,10 @@ import os
 import shutil
 import subprocess as sp
 import tempfile
-import Image
+try:
+  import Image
+except ImportError:
+  import PIL.Image as Image
 
 from . import util