Skip to content

Commit

Permalink
Merge pull request #2494 from SnoopJ/doc/add-root-docstring
Browse files Browse the repository at this point in the history
docs: add docstring to library root module
  • Loading branch information
dgw authored Jul 19, 2023
2 parents 37e6249 + 393a22d commit 271b306
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions sopel/__init__.py
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]>
Expand Down Expand Up @@ -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)


Expand Down

0 comments on commit 271b306

Please sign in to comment.