mirror of
https://github.com/cheat/cheat.git
synced 2024-12-18 10:45:05 +01:00
Refactored (3)
Removed unnecessary `import` calls.
This commit is contained in:
parent
ab87bb11c4
commit
928637c9db
@ -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']:
|
||||
|
@ -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):
|
||||
|
@ -1,6 +1,4 @@
|
||||
from __future__ import print_function
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user