Skip to content

CLN: use IS64 instead of is_platform_32bit #36108 #36109

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

Merged
merged 1 commit into from
Sep 4, 2020

Conversation

fangchenli
Copy link
Member

@fangchenli fangchenli commented Sep 4, 2020

@@ -72,7 +62,7 @@ def is_platform_linux() -> bool:
bool
True if the running platform is linux.
"""
return sys.platform == "linux2"
return sys.platform == "linux"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was changed to "linux" in Python 3.3

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh lol, i don't think this is actually used anyhow (but good to change)

Comment on lines -23 to -30
# ----------------------------------------------------------------------------
# functions largely based / taken from the six module

# Much of the code in this module comes from Benjamin Peterson's six library.
# The license for this library can be found in LICENSES/SIX and the code can be
# found at https://bitbucket.org/gutworth/six


Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The LICENSES folder doesn't contain SIX. So I guess this comment is not valid anymore.

@jreback jreback added 32bit 32-bit systems Clean labels Sep 4, 2020
@jreback jreback added this to the 1.2 milestone Sep 4, 2020
@@ -72,7 +62,7 @@ def is_platform_linux() -> bool:
bool
True if the running platform is linux.
"""
return sys.platform == "linux2"
return sys.platform == "linux"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh lol, i don't think this is actually used anyhow (but good to change)

@jreback jreback merged commit b53dc8f into pandas-dev:master Sep 4, 2020
@jreback
Copy link
Contributor

jreback commented Sep 4, 2020

thanks @VirosaLi very nice

@fangchenli fangchenli deleted the remove-is_platform_32bit branch September 6, 2020 05:16
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
32bit 32-bit systems Clean
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLN: clean pandas/compat.__init__.py
2 participants