Skip to content

Conversation

gfyoung
Copy link
Member

@gfyoung gfyoung commented Mar 29, 2019

Remaining is_terminal function is used in core/config_init.py, and as this function is not meant to be public, we can move it there.

This will help with dependency organization of pandas' modules.

Follow-up to #25886.

cc @jbrockmendel

Remaining is_terminal function is
used in core/config_init.py, and
as this function is not meant to
be public, we can move it there.

This will help with dependency
organization of pandas' modules.

Follow-up to pandas-devgh-25886.
@gfyoung gfyoung added IO Data IO issues that don't fit into a more specific label Internals Related to non-user accessible pandas implementation Clean labels Mar 29, 2019
@gfyoung gfyoung added this to the 0.25.0 milestone Mar 29, 2019
@gfyoung gfyoung force-pushed the io-fmt-term-remove branch from 79755b1 to 4f3d078 Compare March 29, 2019 00:59
@codecov
Copy link

codecov bot commented Mar 29, 2019

Codecov Report

Merging #25916 into master will decrease coverage by <.01%.
The diff coverage is 62.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #25916      +/-   ##
==========================================
- Coverage   91.77%   91.76%   -0.01%     
==========================================
  Files         175      174       -1     
  Lines       52606    52604       -2     
==========================================
- Hits        48280    48274       -6     
- Misses       4326     4330       +4
Flag Coverage Δ
#multiple 90.32% <62.5%> (-0.01%) ⬇️
#single 41.9% <62.5%> (-0.08%) ⬇️
Impacted Files Coverage Δ
pandas/core/config_init.py 96.96% <62.5%> (-2.24%) ⬇️
pandas/io/gbq.py 75% <0%> (-12.5%) ⬇️
pandas/core/frame.py 96.79% <0%> (-0.12%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7721f70...4f3d078. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Mar 29, 2019

Codecov Report

Merging #25916 into master will decrease coverage by <.01%.
The diff coverage is 62.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #25916      +/-   ##
==========================================
- Coverage   91.77%   91.76%   -0.01%     
==========================================
  Files         175      174       -1     
  Lines       52606    52604       -2     
==========================================
- Hits        48280    48274       -6     
- Misses       4326     4330       +4
Flag Coverage Δ
#multiple 90.32% <62.5%> (-0.01%) ⬇️
#single 41.9% <62.5%> (-0.08%) ⬇️
Impacted Files Coverage Δ
pandas/core/config_init.py 96.96% <62.5%> (-2.24%) ⬇️
pandas/io/gbq.py 75% <0%> (-12.5%) ⬇️
pandas/core/frame.py 96.79% <0%> (-0.12%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7721f70...4f3d078. Read the comment docs.

Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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

lgtm

Returns True if Python is running in a terminal or False if not.
"""
try:
ip = get_ipython()
Copy link
Member

Choose a reason for hiding this comment

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

I would expect flake8 to complain about this (F821 I think). Any idea why it doesn’t?

Low priority: could make the docstring follow the standard format

Copy link
Member Author

Choose a reason for hiding this comment

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

I would expect flake8 to complain about this (F821 I think)

Uncertain. I don't think it's because of the try-except block wrapping it?

Low priority: could make the docstring follow the standard format

Agreed on priority. Can always do after.

@jreback jreback merged commit d2d9e2d into pandas-dev:master Mar 29, 2019
@jreback
Copy link
Contributor

jreback commented Mar 29, 2019

thanks @gfyoung

@gfyoung gfyoung deleted the io-fmt-term-remove branch March 30, 2019 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Internals Related to non-user accessible pandas implementation IO Data IO issues that don't fit into a more specific label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants