Skip to content

Minor problem with INMTYPE handling. #4

Description

@marcoxa

Hi

In def __text_units the following code is a correction to fix the INMTYPE handling. The commented elifs are the original ones. Obviously just a cut-n-paste issue.

               if IBM_text_units[key]['name'] == 'INMTYPE':
                            value = self.__get_int(value)
                            if value == 0x80:
                                value = "Data Library"
                            elif value == 0x40:
                                value = "Program Library"
                            # elif value == 0x80:
                            elif value == 0x04:
                                value = "Extended PS"
                            # elif value == 0x80:
                            elif value == 0x01:
                                value = "Large Format PS"
                            else:
                                value = "None"

All the best
Marco

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions