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(): for cf_name, cf_options in column_families.items():
if not isinstance(cf_name, bytes): if not isinstance(cf_name, bytes):
raise TypeError( 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): if not isinstance(cf_options, ColumnFamilyOptions):
raise TypeError( raise TypeError(
f"column family options {cf_options!r} is not of type " f"column family options {cf_options!r} is not of type ColumnFamilyOptions!"
f"{ColumnFamilyOptions}!"
) )
if (<ColumnFamilyOptions>cf_options).in_use: if (<ColumnFamilyOptions>cf_options).in_use:
raise Exception( raise Exception(
f"ColumnFamilyOptions object for {cf_name} is already " f"ColumnFamilyOptions object for {cf_name} is already used by another Column Family"
"used by another Column Family"
) )
(<ColumnFamilyOptions>cf_options).in_use = True (<ColumnFamilyOptions>cf_options).in_use = True
column_family_descriptors.push_back( column_family_descriptors.push_back(