From 1e3f62eb98c43daf90eece93909db49f0c520d2c Mon Sep 17 00:00:00 2001 From: xiplus Date: Sat, 25 Jan 2020 12:15:42 +0800 Subject: [PATCH] Remove dbschema arg in AsyncPG --- pg.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pg.py b/pg.py index 4a9d2cb..02d619e 100644 --- a/pg.py +++ b/pg.py @@ -107,8 +107,7 @@ def _init_member(self): self.statusmessage = '' class AsyncPG: - def __init__(self,dbname,dbuser,dbpasswd, - dbschema = 'public',dbtz = '+0'): + def __init__(self,dbname,dbuser,dbpasswd,dbtz = '+0'): self.INITCONN_SHARE = 4 self.INITCONN_FREE = 16 @@ -119,7 +118,7 @@ def __init__(self,dbname,dbuser,dbpasswd, self._dbname = dbname self._dbuser = dbuser self._dbpasswd = dbpasswd - self._dbschema = dbschema + self._dbschema = 'public' self._dbtz = dbtz self._share_connpool = [] self._free_connpool = []