URL: Update URL.last so that getopts args are only .lower()'d if they're a string.

This commit is contained in:
James Vega 2005-12-17 01:35:31 +00:00
parent 0af83d2e24
commit 648ae85b51

View File

@ -105,6 +105,7 @@ class URL(callbacks.Plugin):
f = None f = None
nolimit = False nolimit = False
for (option, arg) in optlist: for (option, arg) in optlist:
if isinstance(arg, basestring):
arg = arg.lower() arg = arg.lower()
if option == 'nolimit': if option == 'nolimit':
nolimit = True nolimit = True