diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2015-05-18 11:50:29 -0700 |
---|---|---|
committer | Dylan Baker <baker.dylan.c@gmail.com> | 2015-08-11 14:16:16 -0700 |
commit | 227c430c8312eb63fe65ebd063f6e78924bad747 (patch) | |
tree | e140e7eee86f48e0f6fd4e8f197e698daed0b186 | |
parent | e7ec76bee55333382226ff92823d5d9dd8908ed2 (diff) |
glapi: glX_proto_send.py: remove last use of string module
The string module isn't used very much, since the str class (which is a
builtin) has most of the same functionality.
-rw-r--r-- | src/mapi/glapi/gen/glX_proto_send.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapi/glapi/gen/glX_proto_send.py b/src/mapi/glapi/gen/glX_proto_send.py index 6474388706..42bede2a73 100644 --- a/src/mapi/glapi/gen/glX_proto_send.py +++ b/src/mapi/glapi/gen/glX_proto_send.py @@ -30,7 +30,7 @@ import argparse import gl_XML, glX_XML, glX_proto_common, license -import copy, string +import copy def convert_string_for_XCB(string_): # pylint: disable=invalid-name @@ -610,7 +610,7 @@ generic_%u_byte( GLint rop, const void * ptr ) if len(condition_list) > 0: if len(condition_list) > 1: - skip_condition = "(%s)" % (string.join(condition_list, ") && (")) + skip_condition = "({0})".format(') && ('.join(condition_list)) else: skip_condition = "%s" % (condition_list.pop(0)) |