Skip to content

Commit

Permalink
Update cogapp to 3.4.1
Browse files Browse the repository at this point in the history
mainly to support python 3.12.
  • Loading branch information
jahn committed May 14, 2024
1 parent 59e7a82 commit d775ee3
Show file tree
Hide file tree
Showing 7 changed files with 364 additions and 241 deletions.
2 changes: 1 addition & 1 deletion tools/darwin/cog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys
from cogapp import Cog

Expand Down
8 changes: 3 additions & 5 deletions tools/darwin/cogapp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
""" Cog code generation tool.
""" Cog content generation tool.
http://nedbatchelder.com/code/cog
Copyright 2004-2012, Ned Batchelder.
Copyright 2004-2024, Ned Batchelder.
"""

from __future__ import absolute_import

from .cogapp import *
from .cogapp import Cog, CogUsageError, main
2 changes: 2 additions & 0 deletions tools/darwin/cogapp/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""Make Cog runnable directly from the module."""

import sys

from cogapp import Cog

sys.exit(Cog().main(sys.argv))
32 changes: 0 additions & 32 deletions tools/darwin/cogapp/backward.py

This file was deleted.

Loading

0 comments on commit d775ee3

Please sign in to comment.