File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ def cli(
199
199
"Error: Both -Z/--without-tables and -W/--without-data are set. There is nothing to do. Exiting..."
200
200
)
201
201
202
- if mysql_tables and exclude_mysql_tables :
202
+ if mysql_tables is not None and exclude_mysql_tables is not None :
203
203
raise click .UsageError ("Illegal usage: --mysql-tables and --exclude-mysql-tables are mutually exclusive!" )
204
204
205
205
converter = MySQLtoSQLite (
@@ -212,11 +212,7 @@ def cli(
212
212
limit_rows = limit_rows ,
213
213
collation = collation ,
214
214
prefix_indices = prefix_indices ,
215
- without_foreign_keys = without_foreign_keys
216
- or (
217
- (mysql_tables is not None and len (mysql_tables ) > 0 )
218
- or (exclude_mysql_tables is not None and len (exclude_mysql_tables ) > 0 )
219
- ),
215
+ without_foreign_keys = without_foreign_keys or bool (mysql_tables ) or bool (exclude_mysql_tables ),
220
216
without_tables = without_tables ,
221
217
without_data = without_data ,
222
218
mysql_host = mysql_host ,
You can’t perform that action at this time.
0 commit comments