From: Gabe Black Date: Wed, 4 Apr 2007 14:28:43 +0000 (+0000) Subject: Make "Name" really be the same as "name" with only the first letter capitalized.... X-Git-Tag: m5_2.0_beta3~45^2~1^2~3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f5409f2babd4fe26c364aedf7faf4cdcb0eb3f0;p=gem5.git Make "Name" really be the same as "name" with only the first letter capitalized. Before, it had the first letter capitalized but all the others lower case --HG-- extra : convert_revision : bcbb28f2bf268765c1d37075a4417a4a6c1b9588 --- diff --git a/src/arch/isa_parser.py b/src/arch/isa_parser.py index a0d671da1..0cb7bfc56 100755 --- a/src/arch/isa_parser.py +++ b/src/arch/isa_parser.py @@ -866,7 +866,11 @@ class Format: context = {} updateExportContext() context.update(exportContext) - context.update({ 'name': name, 'Name': string.capitalize(name) }) + if len(name): + Name = name[0].upper() + if len(name) > 1: + Name += name[1:] + context.update({ 'name': name, 'Name': Name }) try: vars = self.func(self.user_code, context, *args[0], **args[1]) except Exception, exc: