mirror of https://gitlab.com/bashrc2/epicyon
Remove unused arguments
parent
1aa7dce99b
commit
16d7d48272
24
daemon.py
24
daemon.py
|
@ -17379,10 +17379,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def _edit_newswire(self, calling_domain: str, path: str,
|
def _edit_newswire2(self, calling_domain: str, path: str,
|
||||||
translate: {}, base_dir: str,
|
translate: {}, base_dir: str,
|
||||||
http_prefix: str, domain: str, port: int,
|
domain: str, cookie: str) -> bool:
|
||||||
cookie: str) -> bool:
|
|
||||||
"""Show the newswire from the right column
|
"""Show the newswire from the right column
|
||||||
"""
|
"""
|
||||||
if '/users/' in path and path.endswith('/editnewswire'):
|
if '/users/' in path and path.endswith('/editnewswire'):
|
||||||
|
@ -17414,9 +17413,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
|
|
||||||
def _edit_news_post2(self, calling_domain: str, path: str,
|
def _edit_news_post2(self, calling_domain: str, path: str,
|
||||||
translate: {}, base_dir: str,
|
translate: {}, base_dir: str,
|
||||||
http_prefix: str, domain: str, port: int,
|
http_prefix: str, domain: str,
|
||||||
domain_full: str,
|
domain_full: str, cookie: str) -> bool:
|
||||||
cookie: str) -> bool:
|
|
||||||
"""Show the edit screen for a news post
|
"""Show the edit screen for a news post
|
||||||
"""
|
"""
|
||||||
if '/users/' in path and '/editnewspost=' in path:
|
if '/users/' in path and '/editnewspost=' in path:
|
||||||
|
@ -20940,13 +20938,10 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
return
|
return
|
||||||
|
|
||||||
# edit newswire from the right column of the timeline
|
# edit newswire from the right column of the timeline
|
||||||
if self._edit_newswire(calling_domain, self.path,
|
if self._edit_newswire2(calling_domain, self.path,
|
||||||
self.server.translate,
|
self.server.translate,
|
||||||
self.server.base_dir,
|
self.server.base_dir,
|
||||||
self.server.http_prefix,
|
self.server.domain, cookie):
|
||||||
self.server.domain,
|
|
||||||
self.server.port,
|
|
||||||
cookie):
|
|
||||||
self.server.getreq_busy = False
|
self.server.getreq_busy = False
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -20956,7 +20951,6 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.base_dir,
|
self.server.base_dir,
|
||||||
self.server.http_prefix,
|
self.server.http_prefix,
|
||||||
self.server.domain,
|
self.server.domain,
|
||||||
self.server.port,
|
|
||||||
self.server.domain_full,
|
self.server.domain_full,
|
||||||
cookie):
|
cookie):
|
||||||
self.server.getreq_busy = False
|
self.server.getreq_busy = False
|
||||||
|
|
Loading…
Reference in New Issue