google / google/CodeCity

Address python style issues in MobWrite server

Offen
#201 1 Kommentar 0 Reaktionen 1 zugewiesene Person Beansprucht von @NeilFraser Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
198
Forks
38
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

The MobWrite server is written in python, and was adopted by CodeCity. It has numerous python style issues, raised in PR #198, including:

- Extensive use of global variables.
- Generally poor object-orientation / encapsulation.
- Unnecessarily complicated `__init__` signatures.
- Using `try`/`finally` instead of `with` for locking, etc.

Rewrite it conform to [the style guide](https://github.com/google/styleguide/blob/gh-pages/pyguide.md) (or alternatively rewrite it to conform to [the *other* style guide](https://google.github.io/styleguide/jsguide.html)).

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.