On 01/16/2014 03:49 AM, Werner wrote:
Hi,

Above is used in propertyHelperMixin and eventMixin.

string.uppercase and string.lowercase do no longer exist in Py3.

Any suggestion on how to replace this?
propertyHelperMixin:
            for item in dir(c):
                if item[0] in string.uppercase:
                    if item in c.__dict__:
                        if type(c.__dict__[item]) == property:
                            if propList.count(item) == 0:
                                propList.append(item)

eventMixin:
        el = cls.getValidEvents()
el = [e.__name__ for e in el if e.__name__[0] in string.uppercase]
        el.sort()

Werner


I've only played with python 3 but I think it's "str.upper()". But I'm guessing that's not the trouble right?

Johnf


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to