Skip to content

Commit

Permalink
Merge pull request #32 from tripleee/unpickle
Browse files Browse the repository at this point in the history
Remove extraneous 'import pickle' statements
  • Loading branch information
double-fault authored Aug 6, 2019
2 parents 15b394d + 7dbc6d6 commit 6480dd3
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions Source/Bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,6 @@ def _save_users(self):
except IOError as ioerr:
logging.error("IOError occurred: ")
logging.error(str(ioerr))
except pickle.PickleError as perr:
logging.error("Pickling error occurred: ")
logging.error(str(perr))

def _load_users(self):
for room in self._rooms:
Expand All @@ -415,9 +412,6 @@ def _load_users(self):
except IOError as ioerr:
logging.error("IOError occurred: ")
logging.error(str(ioerr))
except pickle.PickleError as perr:
logging.error("Pickling error occurred: ")
logging.error(str(perr))

def _convert_to_save_filename(self, id):
return self._storage_prefix + self.name.replace(' ', '_') + '_room_' + str(id) + '_data'
Expand Down
1 change: 0 additions & 1 deletion Source/ChatRoom.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#

import os
import pickle
import weakref
import logging

Expand Down
1 change: 0 additions & 1 deletion build/lib/BotpySE/Bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from . import Utilities

import os
import pickle
import json
import jsonpickle as jp

Expand Down
1 change: 0 additions & 1 deletion build/lib/BotpySE/ChatRoom.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import chatexchange as ce
import os
import pickle
import weakref

from . import ChatUser
Expand Down

0 comments on commit 6480dd3

Please sign in to comment.