Skip to content

Commit fe07099

Browse files
author
Adam Grandquist
committed
Apply a patch from @sontek for a mutable global object.
1 parent 18788bf commit fe07099

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rethinkdb/ast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,9 +705,9 @@ class ReQLDecoder(py_json.JSONDecoder):
705705
'''
706706
Default JSONDecoder subclass to handle pseudo-type conversion.
707707
'''
708-
def __init__(self, reql_format_opts={}):
708+
def __init__(self, reql_format_opts=None):
709709
py_json.JSONDecoder.__init__(self, object_hook=self.convert_pseudotype)
710-
self.reql_format_opts = reql_format_opts
710+
self.reql_format_opts = reql_format_opts or {}
711711

712712
def convert_time(self, obj):
713713
if 'epoch_time' not in obj:

0 commit comments

Comments
 (0)