#16216: Improve PEP8 compliance: replace "== None" by "is None"
-------------------------------------+-------------------------------------
       Reporter:  wluebbe            |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  minor              |    Milestone:  sage-6.2
      Component:  build              |   Resolution:
       Keywords:  pep8               |    Merged in:
        Authors:  Wilfried Luebbe    |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/wluebbe/ticket/16216             |  05ae6c01d83821d60b76bf5a1aa7b2bca745ad71
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by wluebbe):

 The update also includes some pyx modules. And a few py modules not in
 your list.

 The regexp now looks like
 {{{
   c_pat_1 = re.compile(r"""\s? == \s* None \b""", re.VERBOSE)
   contents_1, n1 = re.subn(c_pat_1, " is None", contents_0)
   c_pat_2 = re.compile(r"""\s? != \s* None \b""", re.VERBOSE)
   new_contents, n2 = re.subn(c_pat_2, " is not None", contents_1)
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/16216#comment:12>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to