From a6fe87a52af45a5edd6b32b41ddb481ad110818e Mon Sep 17 00:00:00 2001 From: Scott Williams Date: Sun, 7 Feb 2016 14:38:33 +0000 Subject: [PATCH] Use more appropriate variable name --- .../src/main/resources/python/api_client.mustache | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/python/api_client.mustache b/modules/swagger-codegen/src/main/resources/python/api_client.mustache index 3ee9e7cc004..7aac36e1a20 100644 --- a/modules/swagger-codegen/src/main/resources/python/api_client.mustache +++ b/modules/swagger-codegen/src/main/resources/python/api_client.mustache @@ -395,8 +395,8 @@ class ApiClient(object): for k, v in iteritems(files): if not v: continue - all_files = v if type(v) is list else [v] - for n in all_files: + file_names = v if type(v) is list else [v] + for n in file_names: with open(n, 'rb') as f: filename = os.path.basename(f.name) filedata = f.read()