Home | History | Annotate | Download | only in python2.7

Lines Matching full:none

138     if getattr(namespace, name, None) is None:
158 width=None):
161 if width is None:
177 self._root_section = self._Section(self, None)
197 def __init__(self, formatter, parent, heading=None):
205 if self.parent is not None:
211 if self.parent is not None:
219 if self.heading is not SUPPRESS and self.heading is not None:
245 if text is not SUPPRESS and text is not None:
248 def add_usage(self, usage, actions, groups, prefix=None):
291 if prefix is None:
295 if usage is not None:
299 elif usage is None and not actions:
303 elif usage is None:
334 def get_lines(parts, indent, prefix=None):
337 if prefix is not None:
350 if prefix is not None:
415 # suppressed arguments are marked with None
418 parts.append(None)
464 text = ' '.join([item for item in parts if item is not None])
556 if action.metavar is not None:
558 elif action.choices is not None:
573 if action.nargs is None:
598 if params.get('choices') is not None:
671 if argument is None:
672 return None
675 elif argument.metavar not in (None, SUPPRESS):
677 elif argument.dest not in (None, SUPPRESS):
680 return None
695 if self.argument_name is None:
745 float, and complex are useful examples of such callables. If None,
748 - choices -- A container of values that should be allowed. If not None,
760 help string. If None, the 'dest' value will be used as the name.
766 nargs=None,
767 const=None,
768 default=None,
769 type=None,
770 choices=None,
772 help=None,
773 metavar=None):
799 def __call__(self, parser, namespace, values, option_string=None):
808 nargs=None,
809 const=None,
810 default=None,
811 type=None,
812 choices=None,
814 help=None,
815 metavar=None):
820 if const is not None and nargs != OPTIONAL:
834 def __call__(self, parser, namespace, values, option_string=None):
844 default=None,
846 help=None,
847 metavar=None):
857 def __call__(self, parser, namespace, values, option_string=None):
868 help=None):
885 help=None):
900 nargs=None,
901 const=None,
902 default=None,
903 type=None,
904 choices=None,
906 help=None,
907 metavar=None):
912 if const is not None and nargs != OPTIONAL:
926 def __call__(self, parser, namespace, values, option_string=None):
938 default=None,
940 help=None,
941 metavar=None):
952 def __call__(self, parser, namespace, values, option_string=None):
963 default=None,
965 help=None):
974 def __call__(self, parser, namespace, values, option_string=None):
985 help=None):
993 def __call__(self, parser, namespace, values, option_string=None):
1002 version=None,
1014 def __call__(self, parser, namespace, values, option_string=None):
1016 if version is None:
1036 help=None,
1037 metavar=None):
1054 if kwargs.get('prog') is None:
1071 def __call__(self, parser, namespace, values, option_string=None):
1155 __hash__ = None
1185 self.register('action', None, _StoreAction)
1225 def _registry_get(self, registry_name, value, default=None):
1242 if action.dest == dest and action.default is not None:
1244 return self._defaults.get(dest, None)
1274 elif self.argument_default is not None:
1291 self._get_formatter()._format_args(action, None)
1407 dest = kwargs.pop('dest', None)
1408 if dest is None:
1422 def _pop_action_class(self, kwargs, default=None):
1463 self._option_string_actions.pop(option_string, None)
1473 def __init__(self, container, title=None, description=None, **kwargs):
1544 prog=None,
1545 usage=None,
1546 description=None,
1547 epilog=None,
1548 version=None,
1552 fromfile_prefix_chars=None,
1553 argument_default=None,
1557 if version is not None:
1572 if prog is None:
1586 self._subparsers = None
1591 self.register('type', None, identity)
1637 if self._subparsers is not None:
1645 description = _(kwargs.pop('description', None))
1652 if kwargs.get('prog') is None:
1687 def parse_args(self, args=None, namespace=None):
1694 def parse_known_args(self, args=None, namespace=None):
1695 if args is None:
1703 if namespace is None:
1731 if self.fromfile_prefix_chars is not None:
1762 if option_tuple is None:
1776 def take_action(action, argument_strings, option_string=None):
1810 if action is None:
1816 if explicit_arg is not None:
1827 new_explicit_arg = explicit_arg[1:] or None
1950 if (action.default is not None and
2013 if match is None:
2015 None: _('expected one argument'),
2035 if match is not None:
2045 return None
2049 return None
2054 return action, arg_string, None
2058 return None
2089 return None
2093 return None
2097 return None, arg_string, None
2110 explicit_arg = None
2122 explicit_arg = None
2148 # the default (None) is assumed to be a single argument
2149 if nargs is None:
2206 # args, use the default if it is anything other than None
2209 if action.default is not None:
2216 elif len(arg_strings) == 1 and action.nargs in [None, OPTIONAL]:
2221 # REMAINDER arguments convert all values, checking none
2266 if action.choices is not None and value not in action.choices:
2319 def print_usage(self, file=None):
2320 if file is None:
2324 def print_help(self, file=None):
2325 if file is None:
2329 def print_version(self, file=None):
2337 def _print_message(self, message, file=None):
2339 if file is None:
2346 def exit(self, status=0, message=None):