from __future__ import absolute_import

from gauge.__about__ import __version__  # noqa
from gauge.constants import CLAMP, ERROR, OK, ONCE
from gauge.core import Gauge, Momentum


__all__ = ['Gauge', 'Momentum', 'ERROR', 'OK', 'ONCE', 'CLAMP']

from __future__ import absolute_import

from gauge.__about__ import __version__  # noqa
from gauge.constants import CLAMP, ERROR, OK, ONCE
from gauge.core import Gauge, Momentum


__all__ = ['Gauge', 'Momentum', 'ERROR', 'OK', 'ONCE', 'CLAMP']


try:
    import __pypy__
except ImportError:
    pass
else:
    # Here's a workaround which makes :class:`Gauge` be picklable in PyPy.
    # ``Gauge.__module__`` and ``__name__`` should be ``'gauge.core'`` and
    # ``'Gauge'``.  But in PyPy, unlike CPython, they are ``'gauge'`` and
    # ``'core.Gauge'``.
    locals()['core.Gauge'] = Gauge
    del __pypy__

Fix pickle failure in PyPy
Fix pickle failure in PyPy

  from __future__ import absolute_import
  
  from gauge.__about__ import __version__  # noqa
  from gauge.constants import CLAMP, ERROR, OK, ONCE
  from gauge.core import Gauge, Momentum
  
  
  __all__ = ['Gauge', 'Momentum', 'ERROR', 'OK', 'ONCE', 'CLAMP']
  
+ 
+ try:
+     import __pypy__
+ except ImportError:
+     pass
+ else:
+     # Here's a workaround which makes :class:`Gauge` be picklable in PyPy.
+     # ``Gauge.__module__`` and ``__name__`` should be ``'gauge.core'`` and
+     # ``'Gauge'``.  But in PyPy, unlike CPython, they are ``'gauge'`` and
+     # ``'core.Gauge'``.
+     locals()['core.Gauge'] = Gauge
+     del __pypy__
+ 
Fix pickle failure in PyPy
## Code Before:
from __future__ import absolute_import

from gauge.__about__ import __version__  # noqa
from gauge.constants import CLAMP, ERROR, OK, ONCE
from gauge.core import Gauge, Momentum


__all__ = ['Gauge', 'Momentum', 'ERROR', 'OK', 'ONCE', 'CLAMP']

## Instruction:
Fix pickle failure in PyPy
## Code After:
from __future__ import absolute_import

from gauge.__about__ import __version__  # noqa
from gauge.constants import CLAMP, ERROR, OK, ONCE
from gauge.core import Gauge, Momentum


__all__ = ['Gauge', 'Momentum', 'ERROR', 'OK', 'ONCE', 'CLAMP']


try:
    import __pypy__
except ImportError:
    pass
else:
    # Here's a workaround which makes :class:`Gauge` be picklable in PyPy.
    # ``Gauge.__module__`` and ``__name__`` should be ``'gauge.core'`` and
    # ``'Gauge'``.  But in PyPy, unlike CPython, they are ``'gauge'`` and
    # ``'core.Gauge'``.
    locals()['core.Gauge'] = Gauge
    del __pypy__
