Skip to content

Instantly share code, notes, and snippets.

@slinkp
Created April 12, 2011 19:03
Show Gist options
  • Save slinkp/916152 to your computer and use it in GitHub Desktop.
Save slinkp/916152 to your computer and use it in GitHub Desktop.
Fixes virtualenv issue 109
diff --git a/virtualenv.py b/virtualenv.py
index f49f3a3..b16aacb 100755
--- a/virtualenv.py
+++ b/virtualenv.py
@@ -337,7 +337,7 @@ class Logger(object):
def level_matches(self, level, consumer_level):
"""
- >>> l = Logger()
+ >>> l = Logger([])
>>> l.level_matches(3, 4)
False
>>> l.level_matches(3, 2)
@@ -355,7 +355,7 @@ class Logger(object):
start, stop = level.start, level.stop
if start is not None and start > consumer_level:
return False
- if stop is not None or stop <= consumer_level:
+ if stop is not None and stop <= consumer_level:
return False
return True
else:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment