Skip to content

MAINT: remove never-needed callable and never-used compat functions - #5221

Closed
jbrockmendel wants to merge 2 commits into
statsmodels:masterfrom
jbrockmendel:cflint3
Closed

jbrockmendel wants to merge 2 commits into
statsmodels:masterfrom
jbrockmendel:cflint3

Conversation

@jbrockmendel

Copy link
Copy Markdown
Contributor

Broken off from #5181.

The only things outside of compat.python that are changed are imports of callable, which are no longer necessary since 3.1,3.2 are not supported. Some other unused imports in datetools are cleaned up, nothing major.

In compat.python, callable is removed, along with a handful of functions that are never even imported.

pickle = cPickle
import urllib.request
import urllib.parse
from urllib.request import HTTPError, urlretrieve, URLError

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ATM urlretrieve is defined twice

@coveralls

coveralls commented Sep 18, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.007%) to 84.209% when pulling 7a873e2 on jbrockmendel:cflint3 into a764908 on statsmodels:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.002%) to 84.093% when pulling 4b37381 on jbrockmendel:cflint3 into 074c8d2 on statsmodels:master.

@bashtage

Copy link
Copy Markdown
Member

LGTM. callable should definitely go. The others are likely overly aggressive copying from six.

@codecov

codecov Bot commented Sep 19, 2018 •

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (master@d5395be). Click here to learn what that means.
The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #5221   +/-   ##
=========================================
  Coverage          ?   81.71%           
=========================================
  Files             ?      569           
  Lines             ?    89628           
  Branches          ?    10022           
=========================================
  Hits              ?    73238           
  Misses            ?    14124           
  Partials          ?     2266
Impacted Files Coverage Δ
statsmodels/sandbox/distributions/gof_new.py 0% <0%> (ø)
statsmodels/sandbox/formula.py 79.18% <100%> (ø)
statsmodels/discrete/discrete_margins.py 67.42% <100%> (ø)
statsmodels/tsa/base/datetools.py 77.77% <100%> (ø)
statsmodels/sandbox/nonparametric/kernels.py 71.13% <100%> (ø)
statsmodels/robust/scale.py 85.71% <100%> (ø)

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 d5395be...fc0388a. Read the comment docs.

@jbrockmendel
jbrockmendel deleted the cflint3 branch May 2, 2019 17:23
@bashtage bashtage added the rejected Used for PRs with changes that are not acceptable label Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rejected Used for PRs with changes that are not acceptable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants