changeset 25:2a2063d571a6

py3
author Jeff Hammel <k0scist@gmail.com>
date Mon, 28 Dec 2020 20:42:56 +0000
parents 466443d48906
children 821a4dfa62cb
files contenttransformer/app.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contenttransformer/app.py	Tue Nov 03 11:08:44 2020 -0800
+++ b/contenttransformer/app.py	Mon Dec 28 20:42:56 2020 +0000
@@ -27,7 +27,7 @@
         for pattern, transformer_name in self.types:
             if fnmatch(filename, pattern):
                 content_type, _ = guess_type(filename)
-                content = file(path).read()
+                content = open(path).read()
 
                 # transform content type
                 # XXX hack: -> refactor