Minor factoring.
diff --git a/Lib/collections.py b/Lib/collections.py
index 3c1b78a..a90915a 100644
--- a/Lib/collections.py
+++ b/Lib/collections.py
@@ -122,7 +122,7 @@
         '''
         if not self:
             raise KeyError('dictionary is empty')
-        key = next(reversed(self)) if last else next(iter(self))
+        key = next(reversed(self) if last else iter(self))
         value = self.pop(key)
         return key, value