소스 검색

clean up prints

allan 9 년 전
부모
커밋
183eaa2f56
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      photos/photos.py

+ 1 - 3
photos/photos.py

@@ -65,7 +65,7 @@ def resize_photos(generator, writer):
                 os.path.getmtime(orig) > os.path.getmtime(resized)):
             logger.info('photos: make photo %s -> %s', orig, resized)
             im = Image.open(orig)
-	    try:
+            try:
                 exif = im._getexif()
                 icc_profile = im.info.get("icc_profile")
             except Exception:
@@ -84,7 +84,6 @@ def resize_photos(generator, writer):
             except:
                 pass
             im.save(resized, 'JPEG', quality=spec[2], icc_profile=icc_profile)
-        print(resized)
 
 def detect_content(content):
 
@@ -106,7 +105,6 @@ def detect_content(content):
                     path,
                     os.path.join('photos', photo),
                     settings['PHOTO_ARTICLE'])
-                print(origin)
         return ''.join((m.group('markup'), m.group('quote'), origin,
                         m.group('quote')))