jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[IMPR] simplify expression in Coordinate class

Change-Id: I21b324b80cf6cacec1e52877da44a549172c2b65
---
M pywikibot/__init__.py
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py
index 591b58f..4456faa 100644
--- a/pywikibot/__init__.py
+++ b/pywikibot/__init__.py
@@ -291,10 +291,7 @@
globe = None

if data['globe']:
- globes = {}
- for name, entity in site.globes().items():
- globes[entity] = name
-
+ globes = {entity: name for name, entity in site.globes().items()}
globe = globes.get(data['globe'])

return cls(data['latitude'], data['longitude'],

To view, visit change 774003. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I21b324b80cf6cacec1e52877da44a549172c2b65
Gerrit-Change-Number: 774003
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged