
import json
import os
from shlex import quote as shlex_quote

from tistory.api import Tistory, TistoryError
from tistory.auth import TistoryOAuth2


def load_config(fname):
    fname = shlex_quote(fname)
    cf_path = os.path.dirname(os.path.realpath(__file__))
    abspath = os.path.abspath(os.path.join(cf_path, '../config/', fname))

    with open(abspath) as data:
        config = json.loads(data.read())

    return config

if __name__ == "__main__":
    pass


from tistory.api import Tistory, TistoryError
from tistory.auth import TistoryOAuth2

if __name__ == "__main__":
    pass

Remove load_config() from the tistory module
Remove load_config() from the tistory module

- 
- import json
- import os
- from shlex import quote as shlex_quote
  
  from tistory.api import Tistory, TistoryError
  from tistory.auth import TistoryOAuth2
  
- 
- def load_config(fname):
-     fname = shlex_quote(fname)
-     cf_path = os.path.dirname(os.path.realpath(__file__))
-     abspath = os.path.abspath(os.path.join(cf_path, '../config/', fname))
- 
-     with open(abspath) as data:
-         config = json.loads(data.read())
- 
-     return config
- 
  if __name__ == "__main__":
      pass
  
Remove load_config() from the tistory module
## Code Before:

import json
import os
from shlex import quote as shlex_quote

from tistory.api import Tistory, TistoryError
from tistory.auth import TistoryOAuth2


def load_config(fname):
    fname = shlex_quote(fname)
    cf_path = os.path.dirname(os.path.realpath(__file__))
    abspath = os.path.abspath(os.path.join(cf_path, '../config/', fname))

    with open(abspath) as data:
        config = json.loads(data.read())

    return config

if __name__ == "__main__":
    pass

## Instruction:
Remove load_config() from the tistory module
## Code After:

from tistory.api import Tistory, TistoryError
from tistory.auth import TistoryOAuth2

if __name__ == "__main__":
    pass
