Skip to content

Commit

Permalink
Fix flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Xion committed Mar 29, 2016
1 parent bf2e4ad commit 956ac08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion callee/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def __init__(self, pattern, flags=0):
self.pattern = pattern

def _is_regex_object(self, obj):
return type(obj) is type(re.compile(''))
return isinstance(obj, type(re.compile('')))

def match(self, value):
return self.pattern.match(value)
Expand Down
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
; Configuration file for auxiliary Python-related tools

[flake8]
ignore = W503, E402, E731
show-source = 1

0 comments on commit 956ac08

Please sign in to comment.