Skip to content

Commit

Permalink
Use the default configparser
Browse files Browse the repository at this point in the history
Bugzilla fields are always lowercased, so a raw parser to retain the
case is not needed.
  • Loading branch information
SridharIyer committed Sep 28, 2016
1 parent 0d4cc15 commit a502f9a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions bugz/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,12 +559,7 @@ def post(settings):

if hasattr(settings, 'template'):

# We are operating under the assumption that the custom fields
# can be in upper case. The default parser converts everything
# to lower case. The lambda just specifies that the keys from
# the config should be kept as is.
tmpl = configparser.RawConfigParser()
tmpl.optionxform = lambda option: option
tmpl = configparser.ConfigParser()

try:
tmpl.read(settings.template)
Expand Down

0 comments on commit a502f9a

Please sign in to comment.