From 725ef97dfd7f219c7b7baaddada20f671fe39e68 Mon Sep 17 00:00:00 2001 From: "Shawn J. Goff" Date: Mon, 17 Dec 2012 16:29:17 -0500 Subject: qmi-codegen python3: change string.lower(str) to str.lower() The string.lower(str) class method is no longer available. sed regex: s/string\.lower(\(.*\))/\1.lower()/ --- build-aux/qmi-codegen/MessageList.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build-aux') diff --git a/build-aux/qmi-codegen/MessageList.py b/build-aux/qmi-codegen/MessageList.py index ac375fe..c3207d5 100644 --- a/build-aux/qmi-codegen/MessageList.py +++ b/build-aux/qmi-codegen/MessageList.py @@ -109,7 +109,7 @@ class MessageList: messages of a given service. """ def __emit_get_printable(self, hfile, cfile): - translations = { 'service' : string.lower(self.service) } + translations = { 'service' : self.service.lower() } template = ( '\n' @@ -175,7 +175,7 @@ class MessageList: introduced. """ def __emit_get_version_introduced(self, hfile, cfile): - translations = { 'service' : string.lower(self.service) } + translations = { 'service' : self.service.lower() } template = ( '\n' -- cgit v1.1