Skip to content

new python3 divide #24

@cynicalight

Description

@cynicalight

error:

  File "xxxx/Gopherus/scripts/FastCGI.py", line 17, in FastCGI
    temp1 = chr(len(data) / 256)
            ^^^^^^^^^^^^^^^^^^^^
TypeError: 'float' object cannot be interpreted as an integer

TO return A integer
the code should be replaced by

temp1 = chr(len(data) // 256)

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