Fix drop python 3.7

This commit is contained in:
Cédric Leporcq 2021-08-15 09:48:11 +02:00
parent 64018561f2
commit a45c11b216
3 changed files with 4 additions and 8 deletions

View File

@ -1,6 +1,4 @@
"""Look up geolocation information for media objects."""
from past.utils import old_div
from os import path
@ -53,12 +51,10 @@ def decimal_to_dms(decimal):
def dms_to_decimal(degrees, minutes, seconds, direction=' '):
sign = 1
if(direction[0] in 'WSws'):
if direction[0] in 'WSws':
sign = -1
return (
float(degrees) + old_div(float(minutes), 60) +
old_div(float(seconds), 3600)
) * sign
return (degrees + minutes / 60 + seconds / 3600) * sign
def dms_string(decimal, type='latitude'):

View File

@ -5,7 +5,6 @@ Media :class:`Media` class to get file metadata
import logging
import mimetypes
import os
import six
# load modules
from dateutil.parser import parse

View File

@ -5,4 +5,5 @@ Send2Trash==1.3.0
configparser==3.5.0
tabulate==0.7.7
Pillow==8.0
pyheif_pillow_opener=0.1
six==1.9