pgsql/set-permissions.py: Ran 2to3 from Python 3.2.3. v0.7.x
authorPascal Volk <user@localhost.localdomain.org>
Tue, 20 Nov 2012 13:48:00 +0000
branchv0.7.x
changeset 644 d879f915c1c5
parent 643 df1e3b67882a
child 645 fcc3f100e56a
pgsql/set-permissions.py: Ran 2to3 from Python 3.2.3.
pgsql/set-permissions.py
--- a/pgsql/set-permissions.py	Tue Nov 20 13:40:32 2012 +0000
+++ b/pgsql/set-permissions.py	Tue Nov 20 13:48:00 2012 +0000
@@ -119,10 +119,10 @@
                 (dc_rw_tbls, db['dovecot']))
     dbc.execute('GRANT SELECT ON %s TO %s' % (dc_ro_tbls, db['dovecot']))
     dbc.execute('GRANT SELECT ON %s TO %s' % (pf_ro_tbls, db['postfix']))
-    for table, columns in db['dovecot_tbls'].iteritems():
+    for table, columns in db['dovecot_tbls'].items():
         dbc.execute('GRANT SELECT (%s) ON %s TO %s' % (columns, table,
                                                        db['dovecot']))
-    for table, columns in db['postfix_tbls'].iteritems():
+    for table, columns in db['postfix_tbls'].items():
         dbc.execute('GRANT SELECT (%s) ON %s TO %s' % (columns, table,
                                                        db['postfix']))
     dbc.close()