Skip to content
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

Replaced built-in six with external six module #132

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Replaced built-in six with external six module
  • Loading branch information
Chris Fonnesbeck committed Aug 17, 2016
commit 8b001872f3a2cfb8dbecdb704fd0f5d5ae933219
2 changes: 1 addition & 1 deletion pymc/CommonDeterministics.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
def UnboundMethodType(func, inst, cls):
return func

from . import six
import six
xrange = six.moves.xrange

__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion pymc/Container.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self):
from types import ModuleType
import pdb

from . import six
import six
xrange = six.moves.xrange

__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion pymc/InstantiationDecorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def enable_special_methods(sma=special_methods_available):
def check_special_methods(sma=special_methods_available):
return sma[0]

from . import six
import six


def _extract(__func__, kwds, keys, classname, probe=True):
Expand Down
2 changes: 1 addition & 1 deletion pymc/MCMC.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from .utils import crawl_dataless
import warnings

from .six import print_
from six import print_

# from .progressbar import ProgressBar, Percentage, Bar, ETA, Iterations
from .progressbar import progress_bar as pbar
Expand Down
4 changes: 2 additions & 2 deletions pymc/Matplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
special = None
from scipy.stats import kurtosis

from . import six
from .six import print_
import six
from six import print_

__all__ = ['func_quantiles', 'func_envelopes', 'func_sd_envelope',
'centered_envelope', 'get_index_list', 'plot', 'histogram', 'trace',
Expand Down
2 changes: 1 addition & 1 deletion pymc/Model.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import traceback
import itertools

from .six import print_, reraise
from six import print_, reraise

GuiInterrupt = 'Computation halt'
Paused = 'Computation paused'
Expand Down
2 changes: 1 addition & 1 deletion pymc/Node.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import pdb
import numpy as np
import types
from . import six
import six
print_ = six.print_

try:
Expand Down
4 changes: 2 additions & 2 deletions pymc/NormalApproximation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
from .utils import msqrt, check_type, round_array, logp_of_set
from copy import copy

from . import six
from .six import print_
import six
from six import print_
xrange = six.moves.xrange

try:
Expand Down
2 changes: 1 addition & 1 deletion pymc/NumpyDeterministics.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from .utils import find_element, get_signature
import inspect

from . import six
import six
xrange = six.moves.xrange

# accumulations
Expand Down
4 changes: 2 additions & 2 deletions pymc/PyMCObjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

from . import datatypes

from . import six
from .six import print_
import six
from six import print_

d_neg_inf = float(-1.7976931348623157e+308)

Expand Down
4 changes: 2 additions & 2 deletions pymc/StepMethods.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
import sys
import inspect

from . import six
from .six import print_
import six
from six import print_

__docformat__ = 'reStructuredText'

Expand Down
2 changes: 1 addition & 1 deletion pymc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import pymc
if os.getcwd().find(
os.path.abspath(os.path.split(os.path.split(pymc.__file__)[0])[0])) > -1:
from .six import print_
from six import print_
print_('\n\tWarning: You are importing PyMC from inside its source tree.')
from .Node import *
from .Container import *
Expand Down
2 changes: 1 addition & 1 deletion pymc/database/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

from pymc import six
from pymc import utils
from pymc.six import print_
from six import print_


class Trace(object):
Expand Down
2 changes: 1 addition & 1 deletion pymc/database/txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import string

from pymc import six
from pymc.six import print_
from six import print_


__all__ = ['Trace', 'Database', 'load']
Expand Down
4 changes: 2 additions & 2 deletions pymc/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
except ImportError:
has_sm = False

from . import six
from .six import print_
import six
from six import print_
xrange = six.moves.xrange

__all__ = [
Expand Down
4 changes: 2 additions & 2 deletions pymc/distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
from . import utils
import warnings

from . import six
from .six import print_
import six
from six import print_
xrange = six.moves.xrange


Expand Down
2 changes: 1 addition & 1 deletion pymc/gp/GPutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import pymc

from pymc import six
from pymc.six import print_
from six import print_
xrange = six.moves.xrange

try:
Expand Down
2 changes: 1 addition & 1 deletion pymc/gp/step_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import warnings

from pymc import six
from pymc.six import print_
from six import print_
xrange = six.moves.xrange

from .Realization import Realization
Expand Down
Loading