[master 1/1] Handle New_Repository name collision source spoke (#1125322)
mulkieran
installerbot-noreply at redhat.com
Fri Mar 6 15:16:41 UTC 2015
In reply to line 1194 of pyanaconda/ui/gui/spokes/source.py:
I like the ?P<name> syntax for regular expressions; it's more robust and a bit clearer. So,
```
match = re.match(r"(?P<stem>.*)_(?P<index>\d+)$", name)
if match:
name = match.group("stem")
```
seems somewhat nicer, but this is a very minor issue.
--
To view this comment on github, visit https://github.com/rhinstaller/anaconda/commit/9af9c255b8392f72c24f139eab96d713060c580c#commitcomment-10073522
More information about the anaconda-patches
mailing list