projects
/
update-copyright.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7661c23
)
Allow '-' characters in section names.
author
W. Trevor King
<wking@drexel.edu>
Thu, 16 Feb 2012 19:16:30 +0000
(14:16 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Thu, 16 Feb 2012 19:16:30 +0000
(14:16 -0500)
update_copyright/project.py
patch
|
blob
|
history
diff --git
a/update_copyright/project.py
b/update_copyright/project.py
index 240270077c770674d07eab09cf0bfda5d5113a64..ac93c2ff069b20df7ce8c8823b73f844813418db 100644
(file)
--- a/
update_copyright/project.py
+++ b/
update_copyright/project.py
@@
-94,8
+94,9
@@
class Project (object):
parser = _configparser.RawConfigParser()
parser.readfp(stream)
for section in parser.sections():
+ clean_section = section.replace('-', '_')
try:
- loader = getattr(self, '_load_{}_conf'.format(section))
+ loader = getattr(self, '_load_{}_conf'.format(
clean_
section))
except AttributeError, e:
_LOG.error('invalid {} section'.format(section))
raise