Skip to content

Commit 59319fc

Browse files
committed
Drop usage of f-strings for backward compatibility
1 parent bc2f5b2 commit 59319fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django_pandas/io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def _get_dtypes(fields_to_dtypes, fields, fieldnames):
103103
f2d.update(fields_to_dtypes)
104104
for k, v in f2d.items():
105105
if not issubclass(k, django.db.models.fields.Field):
106-
raise TypeError(f'Expected a type of field, not {k!r}')
106+
raise TypeError('Expected a type of field, not {!r}'.format(k))
107107
if not isinstance(v, np.dtype):
108108
f2d[k] = np.dtype(v)
109109
for field, name in zip(fields, fieldnames):
@@ -256,7 +256,7 @@ def read_frame(qs, fieldnames=(), index_col=None, coerce_float=False,
256256

257257
if compress:
258258
if not isinstance(compress, (bool, Mapping)):
259-
raise TypeError(f'Ambiguous compress argument: {compress!r}')
259+
raise TypeError('Ambiguous compress argument: {!r}'.format(compress))
260260
if not isinstance(compress, Mapping):
261261
compress = {}
262262
dtype = _get_dtypes(compress, fields, fieldnames)

0 commit comments

Comments
 (0)