Normally the dictionary adr_dict contains lines with four components
all separated by a colon (:). In the case of generated code the last
component may contain the generated code instead of the filename of the
file where the code resides. Since generated code most likely will
contain at least one colon the full line will contain more than the
expected three colons resulting in a 'too many values to unpack' error.
To ensure that this string can always be safely split the 'maxsplit'
parameter should be set to 3.
Normally the dictionary adr_dict contains lines with four components all separated by a colon (:). In the case of generated code the last component may contain the generated code instead of the filename of the file where the code resides. Since generated code most likely will contain at least one colon the full line will contain more than the expected three colons resulting in a 'too many values to unpack' error.
To ensure that this string can always be safely split the 'maxsplit' parameter should be set to 3.