Skip to content

Commit

Permalink
another not in
Browse files Browse the repository at this point in the history
  • Loading branch information
leifj committed Sep 9, 2014
1 parent 52523ac commit 569acac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyff/utils.py
Expand Up @@ -352,7 +352,7 @@ def xslt_transform(t, stylesheet, params=None):
thread_data.xslt = dict()

transform = None
if not stylesheet in thread_data.xslt:
if stylesheet not in thread_data.xslt:
xsl = etree.fromstring(resource_string(stylesheet, "xslt"))
thread_data.xslt[stylesheet] = etree.XSLT(xsl)
transform = thread_data.xslt[stylesheet]
Expand Down Expand Up @@ -445,7 +445,7 @@ class MetadataExpiredException(MetadataException):


def find_merge_strategy(strategy_name):
if not '.' in strategy_name:
if '.' not in strategy_name:
strategy_name = "pyff.merge_strategies.%s" % strategy_name
(mn, sep, fn) = strategy_name.rpartition('.')
# log.debug("import %s from %s" % (fn,mn))
Expand Down

0 comments on commit 569acac

Please sign in to comment.