Skip to content

Commit

Permalink
keep py27 compatibility for the time being.
Browse files Browse the repository at this point in the history
Revert this change when implement #1081
  • Loading branch information
mgaitan committed Mar 17, 2020
1 parent a648dc9 commit 40d656e
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Delete them if they are not appropriate for this pull request.
- [ ] I have properly documented new or changed features in the documention or in the docstrings
- [ ] I have properly documented unusual changes to the code in the comments around it
- [ ] I have made note of any breaking/backwards incompatible changes
- [ ] I formatted my code using `black -t py36`
- [ ] I formatted my code using `black`
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
- name: Black Code Formatter
uses: lgeiger/black-action@v1.0.1
with:
args: "--check --target-version py36 $GITHUB_WORKSPACE"
args: "--check --target-version py27 $GITHUB_WORKSPACE"
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- If you introduce a new functionality or fix a subtle bug, document it in the docstring/code.
- Moviepy's team adopted [black](https://github.com/psf/black) to autoformat the code. This is enforced for any pull request.

> Tip: use `black -t py36 .` to autoformat your code, or set black as a plugin of your editor.
> Tip: use `black -t py27 .` to autoformat your code, or set black as a plugin of your editor.

## Using Github
Expand Down
2 changes: 1 addition & 1 deletion moviepy/audio/fx/all/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
__all__ = [name for _, name, _ in pkgutil.iter_modules(fx.__path__) if name != "all"]

for name in __all__:
exec("from ..%s import %s" % (name, name))
exec ("from ..%s import %s" % (name, name))
2 changes: 1 addition & 1 deletion moviepy/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def change_settings(new_settings=None, filename=None):
gl = globals()
if filename:
with open(filename) as in_file:
exec(in_file)
exec (in_file)
gl.update(locals())
gl.update(new_settings)
# Here you can add some code to check that the new configuration
Expand Down
4 changes: 2 additions & 2 deletions moviepy/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"vfx.speedx",
]:

exec("VideoClip.%s = %s" % (method.split(".")[1], method))
exec ("VideoClip.%s = %s" % (method.split(".")[1], method))


for method in [
Expand All @@ -99,7 +99,7 @@
"afx.volumex",
]:

exec("AudioClip.%s = %s" % (method.split(".")[1], method))
exec ("AudioClip.%s = %s" % (method.split(".")[1], method))


# adds easy ipython integration
Expand Down
2 changes: 1 addition & 1 deletion moviepy/video/fx/all/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
__all__ = [name for _, name, _ in pkgutil.iter_modules(fx.__path__) if name != "all"]

for name in __all__:
exec("from ..%s import %s" % (name, name))
exec ("from ..%s import %s" % (name, name))
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def run_tests(self):
cmdclass["build_docs"] = BuildDoc

__version__ = None # Explicitly set version to quieten static code checkers.
exec(open("moviepy/version.py").read()) # loads __version__
exec (open("moviepy/version.py").read()) # loads __version__

# Define the requirements for specific execution needs.
requires = [
Expand Down

0 comments on commit 40d656e

Please sign in to comment.