-
-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2494 from SnoopJ/doc/add-root-docstring
docs: add docstring to library root module
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
# ASCII ONLY IN THIS FILE THOUGH!!!!!!! | ||
# Python does some stupid bullshit of respecting LC_ALL over the encoding on the | ||
# file, so in order to undo Python's ridiculous fucking idiocy, we have to have | ||
# our own check. | ||
""" | ||
Sopel is a simple, easy-to-use, open-source IRC utility bot, written in Python. | ||
It’s designed to be easy to use, easy to run, and easy to extend. | ||
""" | ||
# | ||
# Copyright 2008, Sean B. Palmer, inamidst.com | ||
# Copyright 2012, Elsie Powell, http://embolalia.com | ||
# Copyright 2012, Elad Alfassa <[email protected]> | ||
|
@@ -37,9 +38,8 @@ | |
|
||
loc = locale.getlocale() | ||
if not loc[1] or ('UTF-8' not in loc[1] and 'utf8' not in loc[1]): | ||
print('WARNING!!! You are running with a non-UTF8 locale environment ' | ||
'variable (e.g. LC_ALL is set to "C"), which makes Python 3 do ' | ||
'stupid things. If you get strange errors, please set it to ' | ||
print('Warning: Running with a non-UTF8 locale. If you see strange ' | ||
'encoding errors, try setting the LC_ALL environment variable to ' | ||
'something like "en_US.UTF-8".', file=sys.stderr) | ||
|
||
|
||
|