cleanup: unused vars & wrong comment
This commit is contained in:
@@ -457,7 +457,7 @@ class bam_commands:
|
||||
@staticmethod
|
||||
def update(paths):
|
||||
# Load project configuration
|
||||
cfg = bam_config.load(abort=True)
|
||||
# cfg = bam_config.load(abort=True)
|
||||
|
||||
# TODO(cam) multiple paths
|
||||
session_rootdir = bam_config.find_sessiondir(paths[0], abort=True)
|
||||
@@ -861,7 +861,6 @@ class bam_commands:
|
||||
# bytes needed for blendfile_path_remap API
|
||||
paths = [p.encode('utf-8') for p in paths]
|
||||
|
||||
|
||||
if not os.path.exists(filepath_remap):
|
||||
fatal("Remap not started, run with 'start', (%r not found)" % filepath_remap)
|
||||
|
||||
@@ -891,7 +890,6 @@ class bam_commands:
|
||||
fatal("remapping not started, nothing to do!")
|
||||
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Argument Parser
|
||||
|
||||
|
@@ -91,4 +91,3 @@ def write_json_to_file(path, data):
|
||||
# optional (pretty)
|
||||
sort_keys=True, indent=4, separators=(',', ': '),
|
||||
)
|
||||
|
||||
|
@@ -99,7 +99,7 @@ class DirectoryAPI(Resource):
|
||||
parser = reqparse.RequestParser()
|
||||
# parser.add_argument('rate', type=int, help='Rate cannot be converted')
|
||||
parser.add_argument('path', type=str)
|
||||
args = parser.parse_args()
|
||||
# args = parser.parse_args()
|
||||
super(DirectoryAPI, self).__init__()
|
||||
|
||||
def get(self, project_name):
|
||||
@@ -163,7 +163,7 @@ class FileAPI(Resource):
|
||||
parser.add_argument('arguments', type=str)
|
||||
parser.add_argument('files', type=werkzeug.datastructures.FileStorage,
|
||||
location='files')
|
||||
args = parser.parse_args()
|
||||
# args = parser.parse_args()
|
||||
|
||||
super(FileAPI, self).__init__()
|
||||
|
||||
@@ -373,7 +373,6 @@ class FileAPI(Resource):
|
||||
yield from blendfile_pack.pack(
|
||||
filepath.encode('utf-8'), filepath_zip.encode('utf-8'), mode='ZIP',
|
||||
paths_remap_relbase=paths_remap_relbase.encode('utf-8'),
|
||||
# TODO(cam) this just means the json is written in the zip
|
||||
deps_remap=deps_remap, paths_remap=paths_remap, paths_uuid=paths_uuid,
|
||||
all_deps=all_deps,
|
||||
report=report,
|
||||
|
Reference in New Issue
Block a user