[tor-commits] [ooni-probe/master] Hotfix/comparison (#678)
art at torproject.org
art at torproject.org
Fri Jan 13 12:39:57 UTC 2017
commit 356759b6ac6ad78f680eb0f5223bfc4fb25f3f0e
Author: Arturo Filastò <arturo at filasto.net>
Date: Tue Nov 15 20:08:44 2016 +0100
Hotfix/comparison (#678)
* In python "is" != "=="
I think this has already bitten me in the past grr.
* bump version to dev0
---
ooni/__init__.py | 2 +-
ooni/utils/log.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ooni/__init__.py b/ooni/__init__.py
index c2d5fdf..385054e 100644
--- a/ooni/__init__.py
+++ b/ooni/__init__.py
@@ -1,7 +1,7 @@
# -*- encoding: utf-8 -*-
__author__ = "Open Observatory of Network Interference"
-__version__ = "2.0.1"
+__version__ = "2.0.2.dev0"
__all__ = [
'agent',
diff --git a/ooni/utils/log.py b/ooni/utils/log.py
index 353b8b2..42eb9ed 100644
--- a/ooni/utils/log.py
+++ b/ooni/utils/log.py
@@ -173,9 +173,9 @@ class OONILogger(object):
if config.advanced.debug:
stdout_log_level = levels['DEBUG']
- if config.basic.rotate is 'daily':
+ if config.basic.rotate == 'daily':
logfile = DailyLogFile(log_filename, log_folder)
- elif config.basic.rotate is 'length':
+ elif config.basic.rotate == 'length':
logfile = LogFile(log_filename, log_folder,
rotateLength=int(human_size_to_bytes(
config.basic.rotate_length
More information about the tor-commits
mailing list