fix f strings
This commit is contained in:
parent
bd1027a4ae
commit
da5ec43d05
1 changed files with 3 additions and 5 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue