From f00bbcefffc7cd7ada06207d8cd940431840c84f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 4 May 2020 00:50:29 +0200 Subject: [PATCH] Fix a syntax typo This worked for now, but is SyntaxError in Python 3.9.0a6: File "/usr/lib/python3.9/site-packages/demjson.py", line 4853 elif c.isalpha() or c in'_$': ^ SyntaxError: invalid string prefix (The Python change might actually be reverted before 3.9 final, but this can be fixed anyway.) --- demjson.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demjson.py b/demjson.py index 226e268..046b867 100644 --- a/demjson.py +++ b/demjson.py @@ -4852,7 +4852,7 @@ def decodeobj(self, state, identifier_as_string=False, at_document_start=False): obj = self.decode_string(state) elif c.isdigit() or c in '.+-': obj = self.decode_number(state) - elif c.isalpha() or c in'_$': + elif c.isalpha() or c in '_$': obj = self.decode_identifier(state, identifier_as_string=identifier_as_string) else: state.push_error('Can not decode value starting with character %r' % c)