[Reportbug-commits] [reportbug] 04/04: capitalize, not uppercase, ampersend user replacement; patch by Nis Martensen; Closes: #849677

Sandro Tosi morph at moszumanska.debian.org
Thu Jan 5 00:52:02 UTC 2017


This is an automated email from the git hooks/post-receive script.

morph pushed a commit to branch master
in repository reportbug.

commit 6869191bb7a1e518f86ee05a56f8f2f39ade6e57
Author: Sandro Tosi <morph at debian.org>
Date:   Wed Jan 4 19:51:57 2017 -0500

    capitalize, not uppercase, ampersend user replacement; patch by Nis Martensen; Closes: #849677
---
 debian/changelog   | 4 +++-
 reportbug/utils.py | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index c9404f0..c54556b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,8 @@ reportbug (7.1.2) UNRELEASED; urgency=medium
     - fix the 'email' name clash in reportbug.utils functions by renaming their
       arguments to 'emailaddr', this fixes names with special characters in the
       address; patch by Didier 'OdyX' Raboud; Closes: #848692
+    - capitalize, not uppercase, ampersend user replacement; patch by Nis
+      Martensen; Closes: #849677
   * reportbug/ui/text_ui.py
     - use integer division when computing the max length for a name; suggestion
       by Ben Longbons; Closes: #848655
@@ -11,7 +13,7 @@ reportbug (7.1.2) UNRELEASED; urgency=medium
     - port bug script and control file to py3k; patch by Nis Martensen;
       Closes: #849749
 
- -- Sandro Tosi <morph at debian.org>  Wed, 04 Jan 2017 19:46:05 -0500
+ -- Sandro Tosi <morph at debian.org>  Wed, 04 Jan 2017 19:51:20 -0500
 
 reportbug (7.1.1) unstable; urgency=medium
 
diff --git a/reportbug/utils.py b/reportbug/utils.py
index 8adcae1..86aa51e 100644
--- a/reportbug/utils.py
+++ b/reportbug/utils.py
@@ -305,7 +305,7 @@ def get_user_id(emailaddr='', realname='', charset='utf-8'):
         if not realname:
             realname = info[4].split(',', 1)[0]
             # Convert & in gecos field 4 to capitalized logname: #224231
-            realname = realname.replace('&', info[0].upper())
+            realname = realname.replace('&', info[0].capitalize())
 
     if not realname:
         return emailaddr

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reportbug/reportbug.git



More information about the Reportbug-commits mailing list