projects
/
mdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66682e9
)
Removed re.sub flag argument to allow execution on Python 2.6
author
Frederic Massart
<fred@moodle.com>
Thu, 6 Dec 2012 08:42:19 +0000
(16:42 +0800)
committer
Frederic Massart
<fred@moodle.com>
Thu, 6 Dec 2012 08:42:19 +0000
(16:42 +0800)
lib/moodle.py
patch
|
blob
|
history
diff --git
a/lib/moodle.py
b/lib/moodle.py
index
4ccb1a2
..
6baf831
100644
(file)
--- a/
lib/moodle.py
+++ b/
lib/moodle.py
@@
-162,7
+162,7
@@
class Moodle(object):
def generateBranchName(self, issue, suffix='', version=''):
"""Generates a branch name"""
- mdl = re.sub(r'
MDL(-|_)?', '', issue, flags=re.I
)
+ mdl = re.sub(r'
(MDL|mdl)(-|_)?', '', issue
)
if version == '':
version = self.get('branch')
args = {