|
95 | 95 | "try:\n", |
96 | 96 | " assert isinstance(CONFIG_OVERRIDES, list)\n", |
97 | 97 | "except AssertionError:\n", |
98 | | - " if is_instance(CONFIG_OVERRIDES, str):\n", |
99 | | - " logger.warning(\n", |
100 | | - " \"The CONFIG_OVERRIDES variable should be a list of filenames.\"\n", |
101 | | - " \"I noticed you set this variable to a string. I'll wrap that in \"\n", |
102 | | - " \"a list for you this time, but after this cell completes execution, \"\n", |
103 | | - " \"please repair how you set the variable above. Instead of\"\n", |
104 | | - " f'\\n\\n\\tCONFIG_OVERRIDES=\"{CONFIG_OVERRIDES}\\n\\n'\n", |
105 | | - " \"it should be\"\n", |
106 | | - " f'\\n\\n\\tCONFIG_OVERRIDES=[\"{CONFIG_OVERRIDES}\"]\\n\\n'\n", |
107 | | - " )\n", |
108 | | - " CONFIG_OVERRIDES = [CONFIG_OVERRIDES]\n", |
| 98 | + " if isinstance(CONFIG_OVERRIDES, str):\n", |
| 99 | + " logger.warning(\n", |
| 100 | + " \"The CONFIG_OVERRIDES variable should be a list of filenames.\"\n", |
| 101 | + " \"I noticed you set this variable to a string. I'll wrap that in \"\n", |
| 102 | + " \"a list for you this time, but after this cell completes execution, \"\n", |
| 103 | + " \"please repair how you set the variable above. Instead of\"\n", |
| 104 | + " f'\\n\\n\\tCONFIG_OVERRIDES=\"{CONFIG_OVERRIDES}\\n\\n'\n", |
| 105 | + " \"it should be\"\n", |
| 106 | + " f'\\n\\n\\tCONFIG_OVERRIDES=[\"{CONFIG_OVERRIDES}\"]\\n\\n'\n", |
| 107 | + " )\n", |
| 108 | + " CONFIG_OVERRIDES = [CONFIG_OVERRIDES]\n", |
109 | 109 | "\n", |
110 | 110 | "\n", |
111 | 111 | "import os\n", |
|
0 commit comments