Commits

razzmataz committed 462ef1f

ran pylint on some of this junk.

  • Participants
  • Parent commits 20f4195

Comments (0)

Files changed (2)

utils/clone-dir.py

 #!/usr/bin/env python
+'''clone-dir is a cheap util for cloning a directory'''
 
 import shutil
 import sys
 
 def usage():
+    '''usage: command srcdir destdir'''
     print "usage: %s srcdir destdir" % sys.argv[0]
 
 # this is a crappy way of handling arguments/parameters
 
 try:
     shutil.copytree(sys.argv[1], sys.argv[2])
-except Exception, e:
-    print "problem copying %s to %s :\n%s" % (sys.argv[1],sys.argv[2],e)
+#except Exception, e:
+except Exception as e:
+    print "problem copying %s to %s :\n%s" % (sys.argv[1], sys.argv[2], e)

utils/libs/phone/phone.py

+'''
+phone and phone number handling classes.
+
+'''
+
 import re
 
 class Phone():
     need some work or refactoring to handle others
     """
 
-    def __init__(self,phonenumber=None):
+    def __init__(self, phonenumber=None):
         self.countrycode = None 
         self.exchange = None  # 1st 3 digits of 7 digit phone num
         self.npa = None # numbering plan area (npa) or area code
 
 
     def parse_number(self, phonenumber):
+        '''
         # parse the npa, exchange, number
         # country code possibly?
         # north american style regex 
         # P<npa>?\d{3}-{0,1}P<exch>\d{3}-{0,1}P<number>\d{4}
+        '''
         if phonenumber is None:
             #print "no number provided"
             return 0