INN commit: trunk/samples (2 files)

INN Commit Russ_Allbery at isc.org
Tue Dec 23 12:22:03 UTC 2008


    Date: Tuesday, December 23, 2008 @ 04:22:03
  Author: iulius
Revision: 8251

Better Python syntax.

Modified:
  trunk/samples/nnrpd_access_wrapper.py
  trunk/samples/nnrpd_auth_wrapper.py

-------------------------+
 nnrpd_access_wrapper.py |    2 +-
 nnrpd_auth_wrapper.py   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Modified: nnrpd_access_wrapper.py
===================================================================
--- nnrpd_access_wrapper.py	2008-12-23 12:00:46 UTC (rev 8250)
+++ nnrpd_access_wrapper.py	2008-12-23 12:22:03 UTC (rev 8251)
@@ -38,7 +38,7 @@
         # attributes['type'] = memoryview(b'connect')
         attributes['type'] = buffer('connect')
         perm = (self.old).authenticate(attributes)
-        result = dict({('users', '*')})
+        result = dict({'users': '*'})
         if perm[1] == 1:
             result['read'] = perm[3]
         if perm[2] == 1:

Modified: nnrpd_auth_wrapper.py
===================================================================
--- nnrpd_auth_wrapper.py	2008-12-23 12:00:46 UTC (rev 8250)
+++ nnrpd_auth_wrapper.py	2008-12-23 12:22:03 UTC (rev 8251)
@@ -41,7 +41,7 @@
         err_str = "No error"
         if perm[0] == 481:
             err_str = "Python authentication error!"
-        return (perm[0],err_str)
+        return (perm[0], err_str)
 
     def authen_close(self):
         (self.old).close()




More information about the inn-committers mailing list