-
Notifications
You must be signed in to change notification settings - Fork 147
Conversation
…them later undeneath you.
…path` from os.path. This is more Pythonic.
67b8406
to
5ee05d3
Compare
…fter creating one.
…that this is "computer" text versus "human" text.
…d of testing the directory exists first.
5ee05d3
to
a4716b1
Compare
a4716b1
to
0477a6a
Compare
Possibly related to #305 (comment) |
As in, I can't quite understand the error message! |
@isms I'm not blocked, more that I wouldn't want to be introducing any new issue. Indeed, this PR can be merged (renaming to match) |
@@ -1,4 +1,4 @@ | |||
from collections import OrderedDict | |||
import collections |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you prefer to import the whole module here while you changed in 5302cfe to directly import methods from a module?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So in general I prefer to import the modules that Python ships with ("batteries included") as top-level modules. However, I am not 100% dogmatic on this (!) and make some exceptions if that's going to make the code unspeakably ugly. For example,, imagine trying to parse:
os.path.join(os.path.join(os.path.join(os.path.ditpath(os.path.join(os.path.join(os.path.join(....)))
Make sense? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, thank you :)
Any luck all? Would love to get this merged! :) |
This PR includes a large number of code refactoring within the backend (Django) part of the application.