Refactored (3)

Removed unnecessary `import` calls.
This commit is contained in:
Chris Lane 2019-01-31 17:14:21 -05:00
parent ab87bb11c4
commit 928637c9db
3 changed files with 2 additions and 9 deletions

View File

@ -42,7 +42,6 @@ from cheat.sheet import Sheet
from cheat.sheets import Sheets
from cheat.utils import Utils
from docopt import docopt
import os
if __name__ == '__main__':
@ -57,7 +56,7 @@ if __name__ == '__main__':
editor = Editor(config)
sheets = Sheets(config)
utils = Utils(config)
sheet = Sheet(sheets, utils, editor)
sheet = Sheet(sheets, editor)
# list directories
if options['--directories']:

View File

@ -2,15 +2,11 @@ import io
import os
import shutil
from cheat.editor import Editor
from cheat.utils import Utils
class Sheet:
def __init__(self, sheets, utils, editor):
def __init__(self, sheets, editor):
self._sheets = sheets
self._utils = utils
self._editor = editor
def copy(self, current_sheet_path, new_sheet_path):

View File

@ -1,6 +1,4 @@
from __future__ import print_function
import os
import subprocess
import sys