W0603 <http://pylint-messages.wikidot.com/messages:w0603>: Using the global
statement (from http://pylint-messages.wikidot.com/all-messages)


On Fri, Aug 16, 2013 at 10:59 AM, Calen Pennington <notifications@github.com
> wrote:

> In common/lib/xmodule/xmodule/modulestore/django.py:
>
> > @@ -46,3 +47,18 @@ def modulestore(name='default'):
> >  #     # Initialize the modulestores immediately
> >  #     for store_name in settings.MODULESTORE:
> >  #         modulestore(store_name)
> > +
> > +_loc_singleton = None
> > +def loc_mapper():
> > +    """
> > +    Get the loc mapper which bidirectionally maps Locations to Locators. Used like modulestore() as
> > +    a singleton accessor.
> > +    """
> > +    # pylint: disable=W0603
> > +    global _loc_singleton
>
> I'm ok w/ disabling the complaint about global. I was more concerned about
> a complaint about casing.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/edx/edx-platform/pull/661/files#r5815544>
> .
>