File: util.py

package info (click to toggle)
vim-ultisnips 3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,924 kB
  • sloc: python: 8,353; sh: 64; makefile: 38
file content (18 lines) | stat: -rw-r--r-- 343 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import platform

try:
    import unidecode

    UNIDECODE_IMPORTED = True
except ImportError:
    UNIDECODE_IMPORTED = False


def running_on_windows():
    if platform.system() == "Windows":
        return "Does not work on Windows."


def no_unidecode_available():
    if not UNIDECODE_IMPORTED:
        return "unidecode is not available."