@@ -153,15 +153,15 @@ def format_epilog(self, formatter):
153
153
def __init__ (self , * args , ** kwargs ):
154
154
# -- Type Checkers
155
155
156
- def check_tls_option (opt_str , value ):
156
+ def check_tls_option (_ , opt_str , value ):
157
157
value = str (value )
158
158
159
159
if os .path .isfile (value ):
160
160
return {'ca_certs' : os .path .realpath (value )}
161
161
else :
162
162
raise optparse .OptionValueError ('Option %s value is not a file: %r' % (opt_str , value ))
163
163
164
- def check_db_table_option (value ):
164
+ def check_db_table_option (_ , opt_str , value ):
165
165
res = _tableNameRegex .match (value )
166
166
167
167
if not res :
@@ -171,7 +171,7 @@ def check_db_table_option(value):
171
171
172
172
return DbTable (res .group ('db' ), res .group ('table' ))
173
173
174
- def check_positive_int (opt_str , value ):
174
+ def check_positive_int (_ , opt_str , value ):
175
175
if not isinstance (value , int ) or value < 1 :
176
176
raise optparse .OptionValueError ('%s value must be an integer greater that 1: %s' % (opt_str , value ))
177
177
@@ -183,7 +183,7 @@ def check_existing_file(_, opt_str, value):
183
183
184
184
return os .path .realpath (value )
185
185
186
- def check_new_file_location (opt_str , value ):
186
+ def check_new_file_location (_ , opt_str , value ):
187
187
try :
188
188
real_value = os .path .realpath (value )
189
189
except Exception :
@@ -194,7 +194,7 @@ def check_new_file_location(opt_str, value):
194
194
195
195
return real_value
196
196
197
- def file_contents (opt_str , value ):
197
+ def file_contents (_ , opt_str , value ):
198
198
if not os .path .isfile (value ):
199
199
raise optparse .OptionValueError ('%s value is not an existing file: %r' % (opt_str , value ))
200
200
0 commit comments