Closed hurlenko closed 5 years ago
compresslevel
and encoding
in intensio/exclude/python/exclude_python_words.txt
compresslevel
argument in your function, avoid putting the same name as the keywords of the python library you use, example below:
class DatabaseWriter:
def __init__(self, filename, compressLevel=5):
self._file = gzip.open(filename, "wt", encoding="utf-8", compresslevel=compressLevel)
Got it, in that case I believe you can close the issue.
Consider this sample code
Variables
compresslevel
andencoding
will be replaced with random names that are not acceptable bygzip
builtin library. Also all three occurrences ofcompresslevel
will be replaced with the same name