Skip to content

Conversation

@nthmost
Copy link
Contributor

@nthmost nthmost commented Mar 4, 2020

Issue: #1126

Description: To complete this PR, I visually scanned every single line of code in the codebase looking for clauses designed to accommodate python2. Both the production code and the tests were scrubbed.

Major clauses excoriated:

  • try-except blocks making up for lack of a python3 feature in python2
  • if-else blocks testing for attributes that showed up differently in py2 and py3 classes.
  • tests checking for correct behavior in python2 and python3.

Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@nthmost nthmost requested a review from a team as a code owner March 4, 2020 02:47
@whiten whiten self-assigned this Mar 4, 2020
@nthmost nthmost dismissed whiten’s stale review March 26, 2020 18:03

Team changes

@kantuni
Copy link
Collaborator

kantuni commented Mar 27, 2020

LGTM!

@nthmost nthmost merged commit 018f49f into streamlit:develop Mar 28, 2020
@nthmost nthmost deleted the py2k_elimination branch March 28, 2020 02:58
tconkling added a commit that referenced this pull request Mar 30, 2020
* develop:
  Release 0.57.1 - Fixes SessionInfo alert bug (#1270)
  Py2k Elimination (phase 2): Scrubbing all the py2/3 compatibility clauses (#1177)
  Changing selectbox filtering as case insensitive (#1269)
  Moving st_in_cache_warning from flaky to stable (#1267)
  DataFrame | Fixing column width behavior (#1258)
  Release 0.57 (#1266)
  Fix bug where script was executing twice on first run. (#1263)
  Add default hash func for regex patterns (#1232)
  Updated readme.md help people find msft installation instructions.
  MediaFileManager: fix "Content-Type" header
tconkling added a commit to tconkling/streamlit that referenced this pull request Mar 30, 2020
* feature/plugins:
  Release 0.57.1 - Fixes SessionInfo alert bug (streamlit#1270)
  Py2k Elimination (phase 2): Scrubbing all the py2/3 compatibility clauses (streamlit#1177)
  Changing selectbox filtering as case insensitive (streamlit#1269)
  Moving st_in_cache_warning from flaky to stable (streamlit#1267)
  DataFrame | Fixing column width behavior (streamlit#1258)
  Release 0.57 (streamlit#1266)
  Fix bug where script was executing twice on first run. (streamlit#1263)
  Add default hash func for regex patterns (streamlit#1232)
  Updated readme.md help people find msft installation instructions.
  MediaFileManager: fix "Content-Type" header
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.

3 participants