Merge pull request #1280 from BuhtigithuB/pep8-gluon-html-py
Enhance gluon/html.py PEP8
This commit is contained in:
+2
-3
@@ -308,7 +308,7 @@ def URL(a=None,
|
|||||||
else:
|
else:
|
||||||
function = f
|
function = f
|
||||||
|
|
||||||
# if the url gets a static resource, don't force extention
|
# if the url gets a static resource, don't force extension
|
||||||
if controller == 'static':
|
if controller == 'static':
|
||||||
extension = None
|
extension = None
|
||||||
# add static version to url
|
# add static version to url
|
||||||
@@ -955,7 +955,6 @@ class DIV(XmlComponent):
|
|||||||
# get the xml for the inner components
|
# get the xml for the inner components
|
||||||
co = join([xmlescape(component) for component in
|
co = join([xmlescape(component) for component in
|
||||||
self.components])
|
self.components])
|
||||||
|
|
||||||
return (fa, co)
|
return (fa, co)
|
||||||
|
|
||||||
def xml(self):
|
def xml(self):
|
||||||
@@ -2805,7 +2804,7 @@ class MARKMIN(XmlComponent):
|
|||||||
self.extra = extra or {}
|
self.extra = extra or {}
|
||||||
self.allowed = allowed or {}
|
self.allowed = allowed or {}
|
||||||
self.sep = sep
|
self.sep = sep
|
||||||
self.url = URL if url == True else url
|
self.url = URL if url is True else url
|
||||||
self.environment = environment
|
self.environment = environment
|
||||||
self.latex = latex
|
self.latex = latex
|
||||||
self.autolinks = autolinks
|
self.autolinks = autolinks
|
||||||
|
|||||||
Reference in New Issue
Block a user