Skip to content

Delete tutor.py and add its functionality to demo.py#712

Merged
shoeb-github merged 12 commits into
masterfrom
maint/696_add_tutor_to_demo
Jan 8, 2020
Merged

Delete tutor.py and add its functionality to demo.py#712
shoeb-github merged 12 commits into
masterfrom
maint/696_add_tutor_to_demo

Conversation

@shoeb-github
Copy link
Copy Markdown
Contributor

Contributes to #696

Modified demo.py:

  • to recognize file extensions other than .py.
  • added navigation functionality to walk the directory tree (from tutor.py).

This still does not support .desc files from old tutorials. These are config files and it is probably better to rewrite these files in a format support by demo's configobj.

Shoeb Mohammed added 12 commits January 7, 2020 09:19
- so as to make it customizable to handle files other than *py
- different file types are handled by different types of classes.
- the tree walking order and code is taken from old tutor.py
- No longer necessary because the tutor functionality is now in demo.
Copy link
Copy Markdown
Contributor

@corranwebster corranwebster left a comment

Choose a reason for hiding this comment

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

LGTM

The configuration files can be replaced in a separate PR

@shoeb-github shoeb-github merged commit f361ebd into master Jan 8, 2020
@shoeb-github shoeb-github deleted the maint/696_add_tutor_to_demo branch January 8, 2020 18:17
@shoeb-github
Copy link
Copy Markdown
Contributor Author

Yes, I will replace them in separate PR.

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.

2 participants