Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

Fix syntax #166

Merged
merged 1 commit into from
Sep 22, 2015
Merged

Fix syntax #166

merged 1 commit into from
Sep 22, 2015

Conversation

mattbostock
Copy link
Contributor

Without these parentheses, fab fails with:

fab
Traceback (most recent call last):
  File "/opt/boxen/homebrew/lib/python2.7/site-packages/fabric/main.py", line 658, in main
    docstring, callables, default = load_fabfile(fabfile)
  File "/opt/boxen/homebrew/lib/python2.7/site-packages/fabric/main.py", line 165, in load_fabfile
    imported = importer(os.path.splitext(fabfile)[0])
  File "/Users/matt/govuk/fabric-scripts/fabfile.py", line 25, in <module>
    import incident
  File "/Users/matt/govuk/fabric-scripts/incident.py", line 3, in <module>
    import nginx
  File "/Users/matt/govuk/fabric-scripts/nginx.py", line 8
    def enable_maintenance:
                          ^
SyntaxError: invalid syntax

Without these parentheses, `fab` fails with:

    fab
    Traceback (most recent call last):
      File "/opt/boxen/homebrew/lib/python2.7/site-packages/fabric/main.py", line 658, in main
        docstring, callables, default = load_fabfile(fabfile)
      File "/opt/boxen/homebrew/lib/python2.7/site-packages/fabric/main.py", line 165, in load_fabfile
        imported = importer(os.path.splitext(fabfile)[0])
      File "/Users/matt/govuk/fabric-scripts/fabfile.py", line 25, in <module>
        import incident
      File "/Users/matt/govuk/fabric-scripts/incident.py", line 3, in <module>
        import nginx
      File "/Users/matt/govuk/fabric-scripts/nginx.py", line 8
        def enable_maintenance:
                              ^
    SyntaxError: invalid syntax
@dcarley
Copy link
Contributor

dcarley commented Sep 22, 2015

Might be worth adding a linter and TravisCI to this project. Not as part of this PR, but later..

@mattbostock
Copy link
Contributor Author

Agreed. I'd eventually like to add some tests, too.

joshmyers pushed a commit that referenced this pull request Sep 22, 2015
@joshmyers joshmyers merged commit 874dd26 into master Sep 22, 2015
@joshmyers joshmyers deleted the fix_syntax branch September 22, 2015 09:01
@alexmuller alexmuller mentioned this pull request Sep 22, 2015
@mattbostock
Copy link
Contributor Author

@dcarley: See related: #171

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

Successfully merging this pull request may close these issues.

None yet

3 participants