Created
April 12, 2011 19:03
-
-
Save slinkp/916152 to your computer and use it in GitHub Desktop.
Fixes virtualenv issue 109
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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