Mercurial > cpython-lru_cache-weakref
view Lib/packaging/command/command_template @ 70626:aa07c1237f4e
(Merge 3.2) Issue #12016: Reindent decoders of HK and JP codecs
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Fri, 03 Jun 2011 23:34:32 +0200 |
| parents | 1a31c3be88b1 |
| children |
line wrap: on
line source
"""Do X and Y.""" from packaging import logger from packaging.command.cmd import Command class x(Command): # Brief (40-50 characters) description of the command description = "" # List of option tuples: long name, short name (None if no short # name), and help string. user_options = [ ('', '', # long option, short option (one letter) or None ""), # help text ] def initialize_options(self): self. = None self. = None self. = None def finalize_options(self): if self.x is None: self.x = ... def run(self): ... logger.info(...) if not self.dry_run: ... self.execute(..., dry_run=self.dry_run)
