migration_0064: Remove usage of Text type.

This commit is contained in:
Wyatt Hoodes 2019-07-25 14:10:40 -10:00 committed by Tim Abbott
parent 8107230b35
commit e106f95c8b
1 changed files with 1 additions and 2 deletions

View File

@ -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)