Skip to content

Commit

Permalink
Fix part of oppia#6024: Consolidate file-access (oppia#6023)
Browse files Browse the repository at this point in the history
* Fix hola's multiple choice question.

* introduce utils.cache with tests

* import operator

* add trailing newline

* trailing newlines

* introduce FileCache to speed up lint checks

* remove old open

* fixes

* fix superfluous-parens

* nit fixes

* reorganization

* revert utils.cache

* remove unused import

* s/readlines/read_lines/

* use readlines on builtin file obj

* merge get_data with get_lock

* improvements to _FileCache

* make FileCache public

* avoid locking as much as possible

* access FileCache directly

* simpler naming

* remove unused import

* improve str usages

* get lock in separate method
  • Loading branch information
brianrodri authored and apb7 committed Jan 2, 2019
1 parent faf68df commit 75fb742
Showing 1 changed file with 212 additions and 215 deletions.
Loading

0 comments on commit 75fb742

Please sign in to comment.