From ffeec264e86ba8c8116a70aef4072e0c1603e172 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Mon, 14 Jan 2008 13:54:47 +0000 Subject: [PATCH] Fix the generation of the Enum full_name to ensure it starts with ::, to be inline with the last changeset. --- pybindgen/enum.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pybindgen/enum.py b/pybindgen/enum.py index fefdf3d..32d8e33 100644 --- a/pybindgen/enum.py +++ b/pybindgen/enum.py @@ -59,8 +59,8 @@ class Enum(object): self.full_name = module.cpp_namespace_prefix + '::' + self.name else: self.full_name = self.name - if self.full_name.startswith('::'): - self.full_name = self.full_name[2:] + if not self.full_name.startswith('::'): + self.full_name = '::' + self.full_name else: self.full_name = self.outer_class.full_name + '::' + self.name