fix f strings

This commit is contained in:
Jack Robison 2022-01-26 11:16:45 -05:00
parent bd1027a4ae
commit da5ec43d05
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -1752,17 +1752,15 @@ cdef class DB(object):
for cf_name, cf_options in column_families.items():
if not isinstance(cf_name, bytes):
raise TypeError(
f"column family name {cf_name!r} is not of type {bytes}!"
f"column family name {cf_name!r} is not of type bytes!"
)
if not isinstance(cf_options, ColumnFamilyOptions):
raise TypeError(
f"column family options {cf_options!r} is not of type "
f"{ColumnFamilyOptions}!"
f"column family options {cf_options!r} is not of type ColumnFamilyOptions!"
)
if (<ColumnFamilyOptions>cf_options).in_use:
raise Exception(
f"ColumnFamilyOptions object for {cf_name} is already "
"used by another Column Family"
f"ColumnFamilyOptions object for {cf_name} is already used by another Column Family"
)
(<ColumnFamilyOptions>cf_options).in_use = True
column_family_descriptors.push_back(