Commit 688b00a6 authored by Frede Hundewadt's avatar Frede Hundewadt

added no optimize to function

parent 1edf3433
...@@ -33,8 +33,15 @@ def build_country_list(country_selection, country_pool, geoip=False): ...@@ -33,8 +33,15 @@ def build_country_list(country_selection, country_pool, geoip=False):
:rtype: list :rtype: list
""" """
""" """
Don't change this code # Dear Fellow Manjaro Maintainer:
This works so please don't touch # When I wrote this code, only I knew how it worked.
# Now, no one knows!
#
# Therefore if you are trying to optimize
# this routine and it fails (most surely),
# please increase this counter as a warning for the next person.
#
# total_hours_wasted_here = 1
""" """
result = [] result = []
if country_selection: if country_selection:
...@@ -47,7 +54,7 @@ def build_country_list(country_selection, country_pool, geoip=False): ...@@ -47,7 +54,7 @@ def build_country_list(country_selection, country_pool, geoip=False):
if not result: if not result:
if geoip: if geoip:
country = get_geoip_country(country_pool) country = get_geoip_country(country_pool)
if country: # valid geoip if country:
result = country result = country
else: else:
result = country_pool result = country_pool
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment