Skip to content

Commit

Permalink
Merge pull request #19 from esnet/slots-0.4.6
Browse files Browse the repository at this point in the history
Slots 0.4.6
  • Loading branch information
montegoode committed Sep 21, 2016
2 parents 3612d88 + 7f76fed commit 366f9bd
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Expand Up @@ -78,9 +78,9 @@
# built documents.
#
# The short X.Y version.
version = '0.4.5'
version = '0.4.6'
# The full version, including alpha/beta/rc tags.
release = '0.4.5'
release = '0.4.6'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 2 additions & 0 deletions pypond/bases.py
Expand Up @@ -36,6 +36,7 @@ def setup_log(log_path=None): # pragma: no cover
logger.setLevel(logging.INFO)
return logger


log = setup_log() # pylint: disable=invalid-name


Expand All @@ -48,6 +49,7 @@ class PypondBase(object): # pylint: disable=too-few-public-methods
Universal base class. Used to provide common functionality (logging, etc)
to all the other classes.
"""
__slots__ = ('_logger',)

def __init__(self):
"""ctor"""
Expand Down
2 changes: 2 additions & 0 deletions pypond/event.py
Expand Up @@ -53,6 +53,7 @@ class EventBase(PypondBase):
Immutable dict-like object containing the payload for the
events.
"""
__slots__ = ('_d',)

def __init__(self, underscore_d):
"""Constructor for base class.
Expand Down Expand Up @@ -392,6 +393,7 @@ class Event(EventBase): # pylint: disable=too-many-public-methods
data : None, optional
Could be dict/PMap/int/float/str to use for data payload.
"""
__slots__ = () # inheriting relevant slots, stil need this

def __init__(self, instance_or_time, data=None):
"""
Expand Down
1 change: 1 addition & 0 deletions pypond/indexed_event.py
Expand Up @@ -45,6 +45,7 @@ class IndexedEvent(EventBase):
UTC or localtime to create index in. Please don't not use UTC.
Yes, that's a double negative.
"""
__slots__ = () # inheriting relevant slots, stil need this

def __init__(self, instance_or_begin, data=None, utc=True):
"""
Expand Down
1 change: 1 addition & 0 deletions pypond/timerange_event.py
Expand Up @@ -46,6 +46,7 @@ class TimeRangeEvent(EventBase):
arg2 : dict, pmap, int, float, str, optional
See above.
"""
__slots__ = () # inheriting relevant slots, stil need this

def __init__(self, instance_or_args, arg2=None):
"""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -22,7 +22,7 @@

setup(
name='pypond',
version='0.4.5',
version='0.4.6',
description='Python implementation of the Pond JavaScript timeseries library (https://github.com/esnet/pond).', # pylint: disable=line-too-long
long_description=DESCRIPTION,
author='Monte M. Goode',
Expand Down

0 comments on commit 366f9bd

Please sign in to comment.