Skip to content

Commit 25b591e

Browse files
committed
lint fixes
1 parent 9e720f1 commit 25b591e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

function_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def process_option(option):
261261
for option in declaration['options']:
262262
try:
263263
process_option(option)
264-
except NYIError as e:
264+
except NYIError:
265265
option['skip'] = True
266266

267267

gen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import sys
21
from optparse import OptionParser
32

43
import cwrap_parser
@@ -20,7 +19,7 @@
2019

2120
options, files = parser.parse_args()
2221
if options.output_dependencies is not None:
23-
output_dependencies_file = open(options.output_dependencies,'w')
22+
output_dependencies_file = open(options.output_dependencies, 'w')
2423

2524
TEMPLATE_PATH = options.source_path + "/templates"
2625
GENERATOR_DERIVED = CodeTemplate.from_file(
@@ -99,6 +98,7 @@ def write(filename, s):
9998
with open(filename, "w") as f:
10099
f.write(s)
101100

101+
102102
def generate_storage_type_and_tensor(backend, density, scalar_type, declarations):
103103
scalar_name, c_type, accreal, th_scalar_type = scalar_type
104104
env = {}

0 commit comments

Comments
 (0)