summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpepperpepperpepper <pepper@scannerjammer.com>2015-12-08 21:40:36 -0800
committerpepperpepperpepper <pepper@scannerjammer.com>2015-12-08 21:40:36 -0800
commitd702af2979ef4e023d0fff68639b53f8a40361e1 (patch)
treef4703603c179cb56b0c03e77fa89ccfab5c7784e
parent0e082b3065d8c3bafbd82cbaf24d6efb85825b05 (diff)
fixed some old api references
-rw-r--r--ricky/params/__init__.py11
-rw-r--r--ricky/pb.py3
2 files changed, 1 insertions, 13 deletions
diff --git a/ricky/params/__init__.py b/ricky/params/__init__.py
index da4562f..a48f681 100644
--- a/ricky/params/__init__.py
+++ b/ricky/params/__init__.py
@@ -9,7 +9,6 @@ import ricky.utils as utils
class Params(object):
def __init__(self, *args):
- self._api = None
self._url = None
self._params = tuple(args)
@@ -32,7 +31,7 @@ class Params(object):
else:
filepath = os.path.join(
PROBABILITIES_DIR,
- "%s.json" % (self.api.__class__.__name__)
+ "%s.json" % (self.__class__.__name__)
)
try:
f = open(filepath, 'r')
@@ -65,15 +64,7 @@ class Params(object):
for param in self._params:
param.randomize(probabilities=probabilities_dict.get(param.name))
- @property
- def api(self):
- """property setter for im api"""
- return self._api
- @api.setter
- def api(self, cls):
- """property getter for im api"""
- self._api = cls
def execute(self):
"""calls the associated api"""
diff --git a/ricky/pb.py b/ricky/pb.py
deleted file mode 100644
index fe0cb0f..0000000
--- a/ricky/pb.py
+++ /dev/null
@@ -1,3 +0,0 @@
-class Pb(object):
- def __init__(self):
- pass