[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Remove single letter variable
commit 86baf8e562c0486d2ac2e2be893480eb149742b4
Author: Sathyanarayanan Gunasekaran <gsathya.ceg@xxxxxxxxx>
Date: Sat Jun 23 19:16:38 2012 +0530
Remove single letter variable
According to the guidelines of our benevolent dictator we
must abolish the use of single letter variables. The sole
infiltrator has been abolished. Once again, there is peace in the land
of stem.
---
stem/version.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/stem/version.py b/stem/version.py
index cfb2e12..c63a92a 100644
--- a/stem/version.py
+++ b/stem/version.py
@@ -100,10 +100,10 @@ class Version:
def __init__(self, version_str):
self.version_str = version_str
- m = re.match(r'^([0-9]+)\.([0-9]+)\.([0-9]+)(\.[0-9]+)?(-\S*)?$', version_str)
+ version_parts = re.match(r'^([0-9]+)\.([0-9]+)\.([0-9]+)(\.[0-9]+)?(-\S*)?$', version_str)
- if m:
- major, minor, micro, patch, status = m.groups()
+ if version_parts:
+ major, minor, micro, patch, status = version_parts.groups()
# The patch and status matches are optional (may be None) and have an extra
# proceeding period or dash if they exist. Stripping those off.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits