Skip to content

fix: make onlbuilder compatible with Python 3#204

Open
rayxhuangEC wants to merge 1 commit into
accton:support_linux_6.12from
rayxhuangEC:build-issue
Open

fix: make onlbuilder compatible with Python 3#204
rayxhuangEC wants to merge 1 commit into
accton:support_linux_6.12from
rayxhuangEC:build-issue

Conversation

@rayxhuangEC

Copy link
Copy Markdown

The onlbuilder script used Python 2 syntax (print statements, except comma syntax, identity comparison with literals) which fails on systems without Python 2 installed.

  • Change shebang to #!/usr/bin/env python
  • Convert print statements to print() function calls
  • Replace 'except Exception, e' with 'except Exception as e'
  • Replace 'is 0' with '== 0'

The onlbuilder script used Python 2 syntax (print statements,
except comma syntax, identity comparison with literals) which
fails on systems without Python 2 installed.

- Change shebang to #!/usr/bin/env python
- Convert print statements to print() function calls
- Replace 'except Exception, e' with 'except Exception as e'
- Replace 'is 0' with '== 0'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant