Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/monara/public_html/test.athavaneng.com/themes.php on line 99
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 226
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 227
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 228
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 229
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 230
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 231
# module-level API for namespace implementations
cdef class LxmlRegistryError(LxmlError):
"""Base class of lxml registry errors.
"""
cdef class NamespaceRegistryError(LxmlRegistryError):
"""Error registering a namespace extension.
"""
@cython.internal
cdef class _NamespaceRegistry:
u"Dictionary-like namespace registry"
cdef object _ns_uri
cdef bytes _ns_uri_utf
cdef dict _entries
cdef char* _c_ns_uri_utf
def __cinit__(self, ns_uri):
self._ns_uri = ns_uri
if ns_uri is None:
self._ns_uri_utf = None
self._c_ns_uri_utf = NULL
else:
self._ns_uri_utf = _utf8(ns_uri)
self._c_ns_uri_utf = _cstr(self._ns_uri_utf)
self._entries = {}
def update(self, class_dict_iterable):
u"""update(self, class_dict_iterable)
Forgivingly update the registry.
``class_dict_iterable`` may be a dict or some other iterable
that yields (name, value) pairs.
If a value does not match the required type for this registry,
or if the name starts with '_', it will be silently discarded.
This allows registrations at the module or class level using
vars(), globals() etc."""
if hasattr(class_dict_iterable, u'items'):
class_dict_iterable = class_dict_iterable.items()
for name, item in class_dict_iterable:
if (name is None or name[:1] != '_') and callable(item):
self[name] = item
def __getitem__(self, name):
if name is not None:
name = _utf8(name)
return self._get(name)
def __delitem__(self, name):
if name is not None:
name = _utf8(name)
del self._entries[name]
cdef object _get(self, object name):
cdef python.PyObject* dict_result
dict_result = python.PyDict_GetItem(self._entries, name)
if dict_result is NULL:
raise KeyError, u"Name not registered."
return