Skip to content

Commit

Permalink
👹 Feed the hobgoblins (delint).
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 1, 2024
1 parent f543563 commit a96e58d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
3 changes: 1 addition & 2 deletions cmdix/command/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ def __call__(self, input):
return result

@abc.abstractmethod
def _check(self, input):
... # pragma: no cover
def _check(self, input): ... # pragma: no cover


class VarsCheck(Latching):
Expand Down
4 changes: 1 addition & 3 deletions cmdix/command/httpd.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ def wsgierror(start_response, code, text, headers=[]):
return [
b'''<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head>
<title>{code} {text}</title></head><body><h1>{code} {text}</h1>
</body></html>'''.format(
code=code, text=text
)
</body></html>'''.format(code=code, text=text)
]


Expand Down
4 changes: 1 addition & 3 deletions cmdix/command/sh.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ def __init__(self, nocoreutils=False, *args, **kwargs):
# Copy all commands from cmdix to 'do_foo' functions
for command in cmdix.listcommands():
x = """self.do_{0} = lambda l: \
cmdix.runcommandline('{0} '+ l)""".format(
command
)
cmdix.runcommandline('{0} '+ l)""".format(command)
exec(x)
return cmd.Cmd.__init__(self, *args, **kwargs)

Expand Down

0 comments on commit a96e58d

Please sign in to comment.