[or-cvs] [pytorctl/master] Obey some laws.
mikeperry at torproject.org
mikeperry at torproject.org
Sat Aug 21 03:27:58 UTC 2010
Author: Mike Perry <mikeperry-git at fscked.org>
Date: Fri, 20 Aug 2010 20:23:13 -0700
Subject: Obey some laws.
Commit: c514a0a7105cebe7cc5fa199750b90369b820bfb
Now that copyright infringement is the #1 priority of the FBI,
we need to stop doing quite so much of it.
---
TorUtil.py | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/TorUtil.py b/TorUtil.py
index 6e9acbc..4f62379 100644
--- a/TorUtil.py
+++ b/TorUtil.py
@@ -352,8 +352,23 @@ def plog(level, msg, *args):
logger.log(loglevels[level], msg, *args)
-# Stolen from
+# The following zprob routine was stolen from
# http://www.nmr.mgh.harvard.edu/Neural_Systems_Group/gary/python/stats.py
+# pursuant to this license:
+#
+# Copyright (c) 1999-2007 Gary Strangman; All Rights Reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# The above license applies only to the following 39 lines of code.
def zprob(z):
"""
Returns the area under the normal curve 'to the left of' the given z value.
--
1.7.1
More information about the tor-commits
mailing list