diff --git a/yowsup/env/env_android.py b/yowsup/env/env_android.py index 6771b58e0..bc4d1c024 100644 --- a/yowsup/env/env_android.py +++ b/yowsup/env/env_android.py @@ -17,10 +17,9 @@ class AndroidYowsupEnv(YowsupEnv): "YHNtYoIvt5R3X6YZylbPftF/8ayWTALBgcqhkjOOAQDBQADLwAwLAIUAKYCp0d6z4QQdyN74JDfQ2WCyi8CFDUM4CaNB+ceVXd" \ "KtOrNTQcc0e+t" - _MD5_CLASSES = "ry9Xz6kVioQctwA3G9z62Q==" + _MD5_CLASSES = "IdHZifpmNTVVCJ50Cu7RMA==" _KEY = "eQV5aq/Cg63Gsq1sshN9T3gh+UUp0wIw0xgHYT1bnCjEqOJQKCRrWxdAe2yvsDeCJL+Y4G3PRD2HUF7oUgiGo8vGlNJOaux26k+A2F3hj8A=" - - _VERSION = "2.12.556" + _VERSION = "2.17.350" _OS_NAME = "Android" _OS_VERSION = "4.3" _DEVICE_NAME = "armani" diff --git a/yowsup/layers/axolotl/store/sqlite/litesessionstore.py b/yowsup/layers/axolotl/store/sqlite/litesessionstore.py index e5ea116bd..cc9e2835a 100644 --- a/yowsup/layers/axolotl/store/sqlite/litesessionstore.py +++ b/yowsup/layers/axolotl/store/sqlite/litesessionstore.py @@ -37,7 +37,7 @@ def storeSession(self, recipientId, deviceId, sessionRecord): q = "INSERT INTO sessions(recipient_id, device_id, record) VALUES(?,?,?)" c = self.dbConn.cursor() serialized = sessionRecord.serialize() - c.execute(q, (recipientId, deviceId, buffer(serialized) if sys.version_info < (2,7) else serialized)) + c.execute(q, (recipientId, deviceId, buffer(serialized) if sys.version_info[0] < 3 else serialized)) self.dbConn.commit() def containsSession(self, recipientId, deviceId):