More PEP8 compliance cleanups.
Cleaned up the atom entry stanza.
This commit is contained in:
parent
cbe76c8a70
commit
c294c1a85c
@ -6,6 +6,7 @@
|
|||||||
See the file LICENSE for copying permission.
|
See the file LICENSE for copying permission.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
class XMPPError(Exception):
|
class XMPPError(Exception):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
@ -1,11 +1,26 @@
|
|||||||
from .. xmlstream.stanzabase import registerStanzaPlugin, ElementBase, ET, JID
|
"""
|
||||||
from xml.etree import cElementTree as ET
|
SleekXMPP: The Sleek XMPP Library
|
||||||
|
Copyright (C) 2010 Nathanael C. Fritz
|
||||||
|
This file is part of SleekXMPP.
|
||||||
|
|
||||||
|
See the file LICENSE for copying permission.
|
||||||
|
"""
|
||||||
|
|
||||||
|
from sleekxmpp.xmlstream import ElementBase
|
||||||
|
|
||||||
|
|
||||||
class AtomEntry(ElementBase):
|
class AtomEntry(ElementBase):
|
||||||
|
|
||||||
|
"""
|
||||||
|
A simple Atom feed entry.
|
||||||
|
|
||||||
|
Stanza Interface:
|
||||||
|
title -- The title of the Atom feed entry.
|
||||||
|
summary -- The summary of the Atom feed entry.
|
||||||
|
"""
|
||||||
|
|
||||||
namespace = 'http://www.w3.org/2005/Atom'
|
namespace = 'http://www.w3.org/2005/Atom'
|
||||||
name = 'entry'
|
name = 'entry'
|
||||||
plugin_attrib = 'entry'
|
plugin_attrib = 'entry'
|
||||||
interfaces = set(('title', 'summary'))
|
interfaces = set(('title', 'summary'))
|
||||||
sub_interfaces = set(('title', 'summary'))
|
sub_interfaces = set(('title', 'summary'))
|
||||||
plugin_attrib_map = {}
|
|
||||||
plugin_tag_map = {}
|
|
||||||
|
@ -588,7 +588,6 @@ class ElementBase(object):
|
|||||||
if isinstance(xpath, str):
|
if isinstance(xpath, str):
|
||||||
xpath = self._fix_ns(xpath, split=True, propagate_ns=False)
|
xpath = self._fix_ns(xpath, split=True, propagate_ns=False)
|
||||||
|
|
||||||
|
|
||||||
# Extract the tag name and attribute checks for the first XPath node.
|
# Extract the tag name and attribute checks for the first XPath node.
|
||||||
components = xpath[0].split('@')
|
components = xpath[0].split('@')
|
||||||
tag = components[0]
|
tag = components[0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user