mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
parent
638b9dc84a
commit
e7e2f2c98e
@ -20,7 +20,7 @@ from collections import defaultdict, deque
|
||||
try:
|
||||
import ircmatch
|
||||
except ImportError:
|
||||
raise ImportError("Please install the ircmatch library and try again.")
|
||||
raise ImportError("PyLink requires ircmatch to function; please install it and try again.")
|
||||
|
||||
from . import world, utils, structures, __version__
|
||||
from .log import *
|
||||
@ -541,7 +541,7 @@ class Irc():
|
||||
# This is a stub to alias error to reply
|
||||
self.reply("Error: %s" % text, notice=notice, source=source, private=private,
|
||||
force_privmsg_in_private=force_privmsg_in_private, loopback=loopback)
|
||||
|
||||
|
||||
def toLower(self, text):
|
||||
"""Returns a lowercase representation of text based on the IRC object's
|
||||
casemapping (rfc1459 or ascii)."""
|
||||
|
2
conf.py
2
conf.py
@ -8,7 +8,7 @@ It provides simple checks for validating and loading YAML-format configurations
|
||||
try:
|
||||
import yaml
|
||||
except ImportError:
|
||||
raise ImportError("Please install PyYAML and try again.")
|
||||
raise ImportError("PyLink requires PyYAML to function; please install it and try again.")
|
||||
|
||||
import sys
|
||||
import os.path
|
||||
|
@ -4,7 +4,11 @@ login.py - Implement core login abstraction.
|
||||
|
||||
from pylinkirc import conf, utils, world
|
||||
from pylinkirc.log import log
|
||||
from passlib.context import CryptContext
|
||||
|
||||
try:
|
||||
from passlib.context import CryptContext
|
||||
except ImportError:
|
||||
raise ImportError("PyLink requires passlib to function; please install it and try again.")
|
||||
|
||||
pwd_context = CryptContext(["sha512_crypt", "sha256_crypt"],
|
||||
all__vary_rounds=0.1,
|
||||
|
Loading…
Reference in New Issue
Block a user