Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A lot of code cleanup, in timeline_webview #3291

Merged
merged 4 commits into from
May 9, 2020

Conversation

ferdnyc
Copy link
Contributor

@ferdnyc ferdnyc commented Mar 11, 2020

  • Rewrap lots of long lines, reindent, fix spacing
  • Replace print() with log.info()
  • Eliminate unused imports, variables
  • No bare Excepts
  • Eliminate prop_name variables, which are unnecessarily obtuse
  • Get rid of translations list, incorporate translated strings into regular flow of code
    (sometimes using tuples, to pair them with untranslated partners)
  • Reformat several long lists as item-per-line
  • Use .format() to assemble JS calls

ferdnyc added 4 commits March 11, 2020 08:31
- Rewrap lines, reindent, fix spacing
- Replace print() with log.info()
- Eliminate unused imports, variables
- No bare Excepts
- ELiminate 'prop_name' variables, which are unnecessarily obtuse
- Get rid of 'translations' list, incorporate translated strings into
  regular flow of code
- Reformat several long lists as item-per-line
Bad:
"strings (" + "like this" + ") being " + assembled() + " with 
addition..."

Slightly better:
"strings (like this) being {} with...".format(assembled())
@jonoomph
Copy link
Member

jonoomph commented May 9, 2020

LGTM!

@jonoomph jonoomph merged commit 41e7a35 into OpenShot:develop May 9, 2020
@ferdnyc ferdnyc deleted the tl-wv-formatting branch January 7, 2022 02:26
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.

2 participants