Refactored (3)
Removed unnecessary `import` calls.
This commit is contained in:
1 parent
ab87bb11c4
commit
928637c9db
3 files changed
+2
-9
No files matched your search
@@ -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']:
|
||||
|
||||
+1
-5
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user