summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2018-05-05 21:59:06 -0600
committerkotfu <kotfu@kotfu.net>2018-05-05 21:59:06 -0600
commit26d088cc94828879bb1fe43f9713b3b52eb13762 (patch)
tree4fb0b549b2363c001fade834ffd5e1d559249b1f
parent7f33f04c6f0c1f873dc1adba41bb3cc97d066a46 (diff)
downloadcmd2-git-26d088cc94828879bb1fe43f9713b3b52eb13762.tar.gz
Remove check on self.identchars in do_alias()
self.identchars is no longer used by cmd2.
-rwxr-xr-xcmd2/cmd2.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index ad2038d4..401d2046 100755
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -2434,13 +2434,6 @@ Usage: Usage: alias [name] | [<name> <value>]
name = arglist[0]
value = ' '.join(arglist[1:])
- # Check for a valid name
- for cur_char in name:
- if cur_char not in self.identchars:
- self.perror("Alias names can only contain the following characters: {}".format(self.identchars),
- traceback_war=False)
- return
-
# Set the alias
self.aliases[name] = value
self.poutput("Alias {!r} created".format(name))