diff --git a/zerver/migrations/0064_sync_uploads_filesize_with_db.py b/zerver/migrations/0064_sync_uploads_filesize_with_db.py index 481ea1f6e8..c53f44922d 100644 --- a/zerver/migrations/0064_sync_uploads_filesize_with_db.py +++ b/zerver/migrations/0064_sync_uploads_filesize_with_db.py @@ -2,7 +2,6 @@ # Generated by Django 1.10.5 on 2017-03-18 12:38 import os -from typing import Text from boto.s3.connection import S3Connection from django.conf import settings @@ -13,7 +12,7 @@ from django.db.migrations.state import StateApps class MissingUploadFileException(Exception): pass -def get_file_size_local(path_id: Text) -> int: +def get_file_size_local(path_id: str) -> int: file_path = os.path.join(settings.LOCAL_UPLOADS_DIR, 'files', path_id) try: size = os.path.getsize(file_path)