Permalink
Browse files

tidy up storage

  • Loading branch information...
1 parent d50801b commit 9a4502255339caada95a802396378976e47f6694 @muffinresearch muffinresearch committed May 22, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 yql/storage.py
View
@@ -34,12 +34,11 @@ def __init__(self, dir_path, secret=None):
"""Initialize token storage"""
if not os.path.exists(dir_path):
- raise TokenStoreError, "Path is not valid"
+ raise TokenStoreError("Path is not valid")
self.base_dir = dir_path
self.secret = secret or SECRET
-
def get_filepath(self, name):
"""Build filepath"""
@@ -48,7 +47,6 @@ def get_filepath(self, name):
return filepath
-
def set(self, name, token):
"""Write a token to file"""
@@ -61,7 +59,6 @@ def set(self, name, token):
f_handle.write(token)
f_handle.close()
-
def get(self, name):
"""Get a token from the filesystem"""
@@ -74,4 +71,3 @@ def get(self, name):
token = YahooToken.from_string(token)
return token
-

0 comments on commit 9a45022

Please sign in to comment.