Skip to content

return in Python 3.8 in try ... except #369

Description

@Eleiber

Description

Hi! I'm trying to decompile a cog from my Discord bot which I overwrote by error. When using uncompyle, all classes except one (the longest one) were recovered. In the last one, I get the following output (I also attached the full output, and the full .pyc):

             3708  POP_TOP          

Parse error at or near `LOAD_CONST' instruction at offset 220


    def setup(bot):
        bot.add_cog(BRCog(bot))

The script raises an error exactly on the last two lines of the code, so there isn't anything after that.

How to Reproduce

$ uncompyle6 battleroyale.cpython-38.pyc > output.txt
# file battleroyale.cpython-38.pyc
# Deparsing stopped due to parse error

Environment

  • OS: Ubuntu Server 20.04 LTS (focal)
  • Python: Python 3.8.10 (default, Sep 28 2021, 16:10:42)
  • Uncompyle6 version: version 3.8.1.dev0

Uncompyle6.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions