summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorAnike Arni <aarni@thoughtworks.com>2017-02-02 15:10:59 -0200
committerAnike Arni <aarni@thoughtworks.com>2017-02-02 15:10:59 -0200
commitb4c5dae4272722860fe5b145883214a93f9962db (patch)
treeac7625ddaabb3e3ec3864a291b39bdbf923dfbbb /service
parent93a57dd3daf2312db6de5f138fdde7d7a413e820 (diff)
[#922] Fixes lint errors in accout recovery resource
with @tayanefernandes
Diffstat (limited to 'service')
-rw-r--r--service/pixelated/resources/account_recovery_resource.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/service/pixelated/resources/account_recovery_resource.py b/service/pixelated/resources/account_recovery_resource.py
index 12eb9f95..4b88ff44 100644
--- a/service/pixelated/resources/account_recovery_resource.py
+++ b/service/pixelated/resources/account_recovery_resource.py
@@ -25,17 +25,6 @@ from twisted.web.resource import NoResource
from twisted.web.template import Element, XMLFile, renderElement
-
-def parse_accept_language(all_headers):
- accepted_languages = ['pt-BR', 'en-US']
- languages = all_headers.get('accept-language', '').split(';')[0]
- for language in accepted_languages:
- if language in languages:
- return language
- return 'pt-BR'
-
-
-
class AccountRecoveryPage(Element):
loader = XMLFile(FilePath(os.path.join(get_static_folder(), 'account_recovery.html')))
@@ -49,7 +38,6 @@ class AccountRecoveryResource(BaseResource):
def __init__(self, services_factory):
BaseResource.__init__(self, services_factory)
-
def getChild(self, path, request):
if path == BASE_URL:
return self