Skip to content

Commit

Permalink
Addressed some issues reported by pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
pchakraborty committed Apr 18, 2024
1 parent 2b5fde0 commit 28b012d
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/mepo3/state.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
import os
import sys
import yaml
import glob
import pickle

from pathlib import Path

from .component import MepoComponent
from .utilities.exceptions import StateDoesNotExistError
from .utilities.exceptions import StateAlreadyInitializedError

from .utilities import shellcmd

class MepoState(object):
class MepoState:

__state_dir_name = '.mepo3'
__state_fileptr_name = 'state.pkl'
Expand Down Expand Up @@ -44,7 +36,7 @@ def get_file(cls):
state_file = os.path.join(cls.get_dir(), cls.__state_fileptr_name)
if os.path.exists(state_file):
return state_file
raise OSError('mepo3 state file [%s] does not exist' % state_file)
raise OSError(f'mepo3 state file [{state_file}] does not exist')

@classmethod
def exists(cls):
Expand Down

0 comments on commit 28b012d

Please sign in to comment.