Skip to content

Commit

Permalink
access.args: remove DirectAccess._arg_error
Browse files Browse the repository at this point in the history
this was redundant with the same implementation in the superclass
  • Loading branch information
anuejn authored and whitequark committed Nov 16, 2023
1 parent d3f4b4d commit e812386
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions software/glasgow/access/direct/arguments.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import functools
import argparse
import re

from .. import AccessArguments
Expand All @@ -8,10 +7,6 @@
class DirectArguments(AccessArguments):
# First, define some state-less methods that just add arguments to an argparse instance.

def _arg_error(self, message, *args, **kwargs):
raise argparse.ArgumentTypeError(("applet {!r}: " + message)
.format(self._applet_name, *args, **kwargs))

def _port_spec(self, arg):
if not re.match(r"^[A-Z]+$", arg):
self._arg_error("{} is not a valid port specification", arg)
Expand Down

0 comments on commit e812386

Please sign in to comment.