summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2000-01-17 16:25:18 +0000
committerbwarsaw2000-01-17 16:25:18 +0000
commita98294dccc72fe143924aea94eaa63db98551da0 (patch)
tree62e53ac2ca195b84811c6fe7cceaff96489d9a6d
parent4a0cfcfac0d5ae699145da61f761eb95c5ba9482 (diff)
downloadmailman-a98294dccc72fe143924aea94eaa63db98551da0.tar.gz
mailman-a98294dccc72fe143924aea94eaa63db98551da0.tar.zst
mailman-a98294dccc72fe143924aea94eaa63db98551da0.zip
Use _nesting_level as the name of the module-global.
-rw-r--r--Mailman/Utils.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py
index 3a55695e1..1c6f51ea7 100644
--- a/Mailman/Utils.py
+++ b/Mailman/Utils.py
@@ -211,18 +211,18 @@ def GetPathPieces(path):
return l
-nesting_level = None
+_nesting_level = None
def GetNestingLevel():
- global nesting_level
- if nesting_level == None:
- try:
- path = os.environ['PATH_INFO']
- if path[0] <> '/':
- path= '/' + path
- nesting_level = len(string.split(path, '/')) - 1
- except KeyError:
- nesting_level = 0
- return nesting_level
+ global _nesting_level
+ if _nesting_level == None:
+ try:
+ path = os.environ['PATH_INFO']
+ if path[0] <> '/':
+ path= '/' + path
+ _nesting_level = len(string.split(path, '/')) - 1
+ except KeyError:
+ _nesting_level = 0
+ return _nesting_level