GRAYBYTE WORDPRESS FILE MANAGER3690

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/cloudlinux/venv/lib/python3.11/site-packages/pyfakefs/tests/fixtures/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/pyfakefs/tests/fixtures//deprecated_property.py
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Used for testing suppression of deprecation warnings while iterating
over modules. The code is modeled after code in xmlbuilder.py in Python 3.6.
See issue #542.
"""
import warnings


class DeprecatedProperty:
    def __get__(self, instance, cls):
        warnings.warn("async is deprecated", DeprecationWarning, stacklevel=2)
        warnings.warn("async will be replaced", FutureWarning, stacklevel=2)
        return instance


class DeprecationTest:
    locals()["async"] = DeprecatedProperty()

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 15 2025 08:30:34
root / root
0755
__pycache__
--
May 15 2025 08:30:34
root / root
0755
__init__.py
0 KB
April 17 2025 13:10:58
root / root
0644
config_module.py
0.036 KB
April 17 2025 13:10:58
root / root
0644
deprecated_property.py
1.022 KB
April 17 2025 13:10:58
root / root
0644
module_with_attributes.py
1.214 KB
April 17 2025 13:10:58
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF