From 500ec09b47416c3e6464ca43b12fc5db1161d349 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 18 Sep 2018 19:16:55 +0200 Subject: [PATCH] Clean up load_config --- pyrogram/client/client.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index f501c01a..3ca979de 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -910,8 +910,6 @@ class Client(Methods, BaseClient): if getattr(self, option): pass else: - setattr(self, option, Client.APP_VERSION) - if parser.has_section("pyrogram"): setattr(self, option, parser.get( "pyrogram", @@ -919,18 +917,6 @@ class Client(Methods, BaseClient): fallback=getattr(Client, option.upper()) )) - if self.lang_code: - pass - else: - self.lang_code = Client.LANG_CODE - - if parser.has_section("pyrogram"): - self.lang_code = parser.get( - "pyrogram", - "lang_code", - fallback=Client.LANG_CODE - ) - if self._proxy: self._proxy["enabled"] = True else: