Greg Taylor
901277ea64
Switch to module imports for importlib in utils
...
The present day guidance is to lean towards module imports for the
stdlib modules. Switch importlib imports to this instead of
plucking out the functions that we need. This makes it more
immediately apparent as to where the functions are coming from
in the application logic.
2019-09-15 20:21:50 -07:00
Greg Taylor
da48fa2e52
Refactor mod_import to use importlib
...
Switch from the deprecated imp to importlib. Also add tests and
clean up logic flow. This should be quite a bit faster than the
old implementation as well.
2019-09-15 20:21:50 -07:00
Greg Taylor
edbe583959
Clean up utils gc/sys imports
...
Move to top and import the modules instead of funcs from them.
Keeps the scope cleaner.
2019-09-15 00:18:56 -07:00
Greg Taylor
e5354a6787
Remove py3.6 handler for ModuleImportError
...
We require 3.7+ now, no need.
2019-09-15 00:18:56 -07:00
Greg Taylor
3fb23f4c70
Remove unused utils.clean_object_caches func
...
Sounds like this used to have a purpose but no longer does.
2019-09-15 00:17:39 -07:00
Griatch
18a09e341c
Fix time format Windows does not support. Resolve #1881 . Resolve #1880
2019-08-29 00:10:46 +02:00
Griatch
7f3c6dd918
Change tutorial typeclass to Tutorial Readable and TutorialClimbable. Improve error report for failed typeclass import.
2019-08-24 16:55:46 +02:00
Griatch
ec3b9949ea
Make returnValue available from utils
2019-06-28 23:53:56 +02:00
Griatch
8a6ec779da
Make grapevine connect and work
2019-06-23 18:59:45 +02:00
Griatch
aa6b403cd1
Remove @ from default commands. Update docstrings
2019-06-17 22:04:59 +02:00
Griatch
ed187ad05f
Various fixes from game jam
2019-05-14 10:33:31 +02:00
Griatch
a2bc979503
Add @interactive decorator to use yield to pause in a method
2019-04-21 14:25:39 +02:00
Griatch
a5aec53a9e
Refactor mail contrib with CmdMail, CmdMailCharacter etc. Resolves #1802
2019-04-07 21:50:27 +02:00
Griatch
74f22791d8
Resolve merge conflicts
2019-02-03 15:45:17 +01:00
Griatch
11d39a57b5
Add unit tests for syscmds, refactor cmdparser
2019-02-01 23:23:41 +01:00
Griatch
fa8c7657da
Clean up unicode mentions in docstrings
2019-01-31 23:44:16 +01:00
Griatch
c3ebd8d251
Use to_str/to_bytes, replacing old versions
2019-01-16 23:26:46 +01:00
Griatch
6844097322
Convert to_str to to_bytes
2019-01-15 21:03:42 +01:00
Griatch
57280d5bef
Handle missing ModuleNotFoundError in py3.5
2018-10-13 20:47:25 +02:00
Griatch
ebb2fb6c1c
Clean up with 2to3
2018-10-13 19:43:17 +02:00
Griatch
72f4fedcbe
Merge with develop and fix merge conflicts
2018-10-01 20:58:16 +02:00
Griatch
6ec7c7a63f
Improve docstring
2018-08-20 20:39:04 +02:00
Griatch
b6675b854e
Resolve unittests
2018-08-12 13:37:19 +02:00
Griatch
298b2c23c6
Cleanup/refactoring of olc menus
2018-08-11 11:49:10 +02:00
Griatch
e49993fbb5
Create columnize (no ansi support at this point)
2018-08-10 10:13:05 +02:00
Griatch
721cdb5ae0
Many more tests, debugging of protfuncs/inlinefuncs
2018-06-17 23:42:53 +02:00
Griatch
34b8c0dbce
New list_node decorator for evmenu. Tested with olc menu
2018-03-31 21:10:20 +02:00
Griatch
bf80879ffc
Add typeclass/list to list all available typeclasses
2018-03-17 23:29:16 +01:00
Griatch
5d1c3cb27e
Merge branch 'master' into develop
2018-01-02 21:52:43 +01:00
Griatch
74e8c74f80
Work towards resolving unittests with deferreds
2018-01-02 21:21:57 +01:00
Ryan Stein
6f91e1e546
Remove to_unicode.
2017-11-03 12:36:45 -04:00
Ryan Stein
7d524ac328
Unwrap for expressions in comprehensions, too.
2017-11-02 22:52:16 -04:00
Ryan Stein
cd21fb2396
Use Python 3's new super() convention.
2017-11-02 10:41:41 -04:00
Ryan Stein
93475a6de5
Deprecate to_str, to_unicode. Fix class_from_module, is_iter, make_iter.
2017-10-29 23:29:21 -04:00
Ryan Stein
6fa280b9fd
Run 2to3.
2017-10-29 13:40:30 -04:00
bclack
f356b6b6d3
Add newline after multimatch string error message
...
Other utility functions, such as caller.msg(), don't require adding
newline because newlines are added implicitly. This change modifies the
multimatch string parameter to also not require newline, but add one
implicitly.
2017-10-23 22:06:10 +02:00
Griatch
b3c6e9d2cc
Update alerts reported by LGTM
2017-09-23 16:46:54 +02:00
Griatch
b278337172
Make PEP8 cleanup of line spaces and character distances as well as indents
2017-08-19 23:16:36 +02:00
Griatch
7ff783fea1
Resolve merge conflicts with master.
2017-08-19 21:30:42 +02:00
Vincent Le Goff
37c9d65a9d
Place the persistent task in a task handler
2017-08-08 19:47:22 +02:00
Vincent Le Goff
87b6cee596
Add the persistent utils.delay
2017-07-20 21:37:34 +02:00
Griatch
5590ee2258
Rename all instances of Player->Account.
2017-07-07 23:47:21 +02:00
Griatch
0ff1718437
Resolve django 1.11 migration errors.
2017-06-17 22:15:00 +02:00
Griatch
477d7883c8
Fix so evennia.utils.delay actually returns a deferred as the docstring says.
2017-04-25 23:34:44 +02:00
Griatch
e34d32bd60
Add ability to batch-add tags, permissions and aliases along with category in the object/player create functions as well as in the tag handler. This is useful for direct assignment of categories from prototypes.
2017-04-02 22:11:54 +02:00
Vincent Le Goff
8343b61772
Add a style 4 for the time_format utility
2017-03-19 19:57:09 +01:00
BlauFeuer
5111fb9a1e
Markup, whitespace, typo and code style fixes
2017-02-20 01:41:43 -05:00
Griatch
7e4155d4cd
Some more minor refactorings, pertaining to #1176 .
2017-01-30 20:18:21 +01:00
Griatch
74eebfed6d
Refactor code to remove alerts as per lgtm and #1176 .
2017-01-29 19:02:00 +01:00
Griatch
c6d9c0619e
Refactor code for readability and compatibility.
2017-01-27 00:19:27 +01:00