Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start of issue 718, file not existing clean up #772

Merged
merged 14 commits into from Mar 16, 2015

Conversation

jessicalumian
Copy link

Fix for #718.

@jessicalumian
Copy link
Author

  • Is it mergable?
  • Did it pass the tests?
  • If it introduces new functionality in scripts/ is it tested?
    Check for code coverage.
  • Is it well formatted? Look at make pep8, make diff_pylint_report,
    make cppcheck, and make doc output. Use make format and manual
    fixing as needed.
  • Did it change the command-line interface? Only additions are allowed
    without a major version increment. Changing file formats also requires a
    major version number increment.
  • Is it documented in the ChangeLog?
  • Was a spellchecker run on the source code and documentation after
    changes were made?

@jessicalumian
Copy link
Author

Can 2 people please review this code? @b-wyss @bocajnotnef @brtaylor92

@bocajnotnef
Copy link
Contributor

Looks good to me minus the non-mergable status.

@b-wyss
Copy link
Contributor

b-wyss commented Feb 14, 2015

Looks good to me as well, unless you want to change existance to existence? Totally up to you, but the rest looks okay!

mode = os.stat(file_path).st_mode
try:
mode = os.stat(file_path).st_mode

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary empty line ;)

fn = utils.get_temp_filename('thisfiledoesnotexist')
try:
check_file_status(fn, False)
assert True
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ctb could you remind me of the idea behind the if/if not statement to be put here you mentioned today?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could rewrite it as:

check_file_status_exited = False
try:
    check_file_status(fn, False)
except SystemExit:
    check_file_status_exited = True

assert check_file_status_exited

which makes the logic clear, at least.

@jessicalumian
Copy link
Author

@mr-c has the compatibility problem with pep8/autopep8 been fixed?

@mr-c
Copy link
Contributor

mr-c commented Mar 13, 2015

Yes, sorry. Update to the latest from the master branch and you should be
good to go.

On Fri, Mar 13, 2015, 14:38 jessicamizzi notifications@github.com wrote:

@mr-c https://github.com/mr-c has the compatibility problem with
pep8/autopep8 been fixed?


Reply to this email directly or view it on GitHub
#772 (comment).

mr-c added a commit that referenced this pull request Mar 16, 2015
Start of issue 718, file not existing clean up
@mr-c mr-c merged commit fd7a63d into dib-lab:master Mar 16, 2015
@mr-c
Copy link
Contributor

mr-c commented Mar 16, 2015

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants