✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server366.web-hosting.com ​🇻​♯➤ 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 67.223.118.204 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.173
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/python27/lib/python2.7/site-packages/raven//versioning.py
from __future__ import absolute_import

import os.path

try:
    import pkg_resources
except ImportError:
    # pkg_resource is not available on Google App Engine
    pkg_resources = None

from raven.utils.compat import text_type
from .exceptions import InvalidGitRepository

__all__ = ('fetch_git_sha', 'fetch_package_version')


def fetch_git_sha(path, head=None):
    """
    >>> fetch_git_sha(os.path.dirname(__file__))
    """
    if not head:
        head_path = os.path.join(path, '.git', 'HEAD')
        if not os.path.exists(head_path):
            raise InvalidGitRepository(
                'Cannot identify HEAD for git repository at %s' % (path,))

        with open(head_path, 'r') as fp:
            head = text_type(fp.read()).strip()

        if head.startswith('ref: '):
            head = head[5:]
            revision_file = os.path.join(
                path, '.git', *head.split('/')
            )
        else:
            return head
    else:
        revision_file = os.path.join(path, '.git', 'refs', 'heads', head)

    if not os.path.exists(revision_file):
        if not os.path.exists(os.path.join(path, '.git')):
            raise InvalidGitRepository(
                '%s does not seem to be the root of a git repository' % (path,))

        # Check for our .git/packed-refs' file since a `git gc` may have run
        # https://git-scm.com/book/en/v2/Git-Internals-Maintenance-and-Data-Recovery
        packed_file = os.path.join(path, '.git', 'packed-refs')
        if os.path.exists(packed_file):
            with open(packed_file, 'r') as fh:
                for line in fh:
                    line = line.rstrip()
                    if not line:
                        continue
                    if line[:1] in ('#', '^'):
                        continue
                    try:
                        revision, ref = line.split(' ', 1)
                    except ValueError:
                        continue
                    if ref == head:
                        return text_type(revision)

        raise InvalidGitRepository(
            'Unable to find ref to head "%s" in repository' % (head,))

    fh = open(revision_file, 'r')
    try:
        return text_type(fh.read()).strip()
    finally:
        fh.close()


def fetch_package_version(dist_name):
    """
    >>> fetch_package_version('sentry')
    """
    if pkg_resources is None:
        raise NotImplementedError('pkg_resources is not available '
                                  'on this Python install')
    dist = pkg_resources.get_distribution(dist_name)
    return dist.version


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
12 May 2025 1.14 PM
root / linksafe
0755
conf
--
12 May 2025 1.14 PM
root / linksafe
0755
contrib
--
12 May 2025 1.14 PM
root / linksafe
0755
handlers
--
12 May 2025 1.14 PM
root / linksafe
0755
scripts
--
12 May 2025 1.14 PM
root / linksafe
0755
transport
--
12 May 2025 1.14 PM
root / linksafe
0755
utils
--
12 May 2025 1.14 PM
root / linksafe
0755
__init__.py
1.277 KB
29 Oct 2017 5.41 PM
root / linksafe
0644
__init__.pyc
1.851 KB
18 Oct 2019 1.53 PM
root / linksafe
0644
base.py
29.205 KB
29 Oct 2017 5.41 PM
root / linksafe
0644
base.pyc
30.846 KB
18 Oct 2019 1.53 PM
root / linksafe
0644
breadcrumbs.py
11.272 KB
29 Oct 2017 5.41 PM
root / linksafe
0644
breadcrumbs.pyc
12.38 KB
18 Oct 2019 1.53 PM
root / linksafe
0644
context.py
3.681 KB
29 Oct 2017 5.41 PM
root / linksafe
0644
context.pyc
5.64 KB
18 Oct 2019 1.53 PM
root / linksafe
0644
events.py
4.563 KB
29 Oct 2017 5.41 PM
root / linksafe
0644
events.pyc
6.015 KB
18 Oct 2019 1.53 PM
root / linksafe
0644
exceptions.py
0.605 KB
29 Oct 2017 5.41 PM
root / linksafe
0644
exceptions.pyc
1.973 KB
18 Oct 2019 1.53 PM
root / linksafe
0644
middleware.py
3.51 KB
29 Oct 2017 5.41 PM
root / linksafe
0644
middleware.pyc
4.299 KB
18 Oct 2019 1.53 PM
root / linksafe
0644
processors.py
4.184 KB
29 Oct 2017 5.41 PM
root / linksafe
0644
processors.pyc
5.869 KB
18 Oct 2019 1.53 PM
root / linksafe
0644
versioning.py
2.539 KB
29 Oct 2017 5.41 PM
root / linksafe
0644
versioning.pyc
2.283 KB
18 Oct 2019 1.53 PM
root / linksafe
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF