File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -110,14 +110,17 @@ def ensure_bytes(x):
110
110
return x
111
111
112
112
if isinstance (args , (tuple , list )):
113
- return tuple (literal (ensure_bytes (arg )) for arg in args )
113
+ ret = tuple (literal (ensure_bytes (arg )) for arg in args )
114
114
elif isinstance (args , dict ):
115
- return {ensure_bytes (key ): literal (ensure_bytes (val ))
116
- for (key , val ) in args .items ()}
115
+ ret = {ensure_bytes (key ): literal (ensure_bytes (val ))
116
+ for (key , val ) in args .items ()}
117
117
else :
118
118
# If it's not a dictionary let's try escaping it anyways.
119
119
# Worst case it will throw a Value error
120
- return literal (ensure_bytes (args ))
120
+ ret = literal (ensure_bytes (args ))
121
+
122
+ ensure_bytes = None # break circular reference
123
+ return ret
121
124
122
125
def _check_executed (self ):
123
126
if not self ._executed :
You can’t perform that action at this time.
0 commit comments