diff --git a/utils/pgsql2sqlite/build.py b/utils/pgsql2sqlite/build.py index 9d909dfe2..cc0674b24 100644 --- a/utils/pgsql2sqlite/build.py +++ b/utils/pgsql2sqlite/build.py @@ -46,7 +46,7 @@ if env['RUNTIME_LINK'] == 'static': cmd = 'pkg-config libpq --libs --static' try: program_env.ParseConfig(cmd) - except OSError, e: + except OSError as e: program_env.Append(LIBS='pq') else: program_env.Append(LIBS='pq')