diff --git a/superset/config.py b/superset/config.py index 1cce91e91a314..acabb0e7b6e7c 100644 --- a/superset/config.py +++ b/superset/config.py @@ -146,9 +146,7 @@ def _try_json_readsha( # pylint: disable=unused-argument # --------------------------------------------------------- # Your App secret key -SECRET_KEY = ( - "\2\1thisismyscretkey\1\2\e\y\y\h" # pylint: disable=anomalous-backslash-in-string -) +SECRET_KEY = "\2\1thisismyscretkey\1\2\\e\\y\\y\\h" # The SQLAlchemy connection string. SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.join(DATA_DIR, "superset.db") diff --git a/superset/models/helpers.py b/superset/models/helpers.py index d903d271a1499..3fdcd9702cfb2 100644 --- a/superset/models/helpers.py +++ b/superset/models/helpers.py @@ -45,9 +45,7 @@ def json_to_dict(json_str: str) -> Dict[Any, Any]: if json_str: val = re.sub(",[ \t\r\n]+}", "}", json_str) - val = re.sub( - ",[ \t\r\n]+\]", "]", val # pylint: disable=anomalous-backslash-in-string - ) + val = re.sub(",[ \t\r\n]+\\]", "]", val) return json.loads(val) return {}