summaryrefslogtreecommitdiff
path: root/listsync.py
diff options
context:
space:
mode:
authorMagnus Hagander2019-06-28 12:55:07 +0000
committerMagnus Hagander2019-06-28 14:28:15 +0000
commit56673f737089e837d70d82743451ede0febe8dfc (patch)
tree77b787a9aa8b6320989d91d302f2db3423158840 /listsync.py
parent046853da1446a1dddef4b9dc2be3f39ee944e6d4 (diff)
Fix imports for python 3
Diffstat (limited to 'listsync.py')
-rwxr-xr-xlistsync.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/listsync.py b/listsync.py
index b234d92..94d0fcf 100755
--- a/listsync.py
+++ b/listsync.py
@@ -1,20 +1,20 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Planet PostgreSQL - list synchronizer
This file contains the functions to synchronize the list of subscribers
to planet with those of a pglister mailinglist.
-Copyright (C) 2008-2017PostgreSQL Global Development Group
+Copyright (C) 2008-2017 PostgreSQL Global Development Group
"""
import sys
-import ConfigParser
+import configparser
import psycopg2
import requests
if __name__=="__main__":
- c = ConfigParser.ConfigParser()
+ c = configparser.ConfigParser()
c.read('planet.ini')
conn = psycopg2.connect(c.get('planet', 'db'))