diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2016-05-16 11:58:52 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2016-05-16 12:00:32 +0200 |
commit | 6bb166934f6a455ce781ef0838a57e0dc02ad53d (patch) | |
tree | 2435b1940b0f1ff2d8d7c24c354bae1548562673 /cucutags.py | |
parent | ce5cd570836985b91e415adc088afc707df41182 (diff) | |
download | cucutags-a87817eade6bebdfe111af7a91f5246d4ea6ee59.tar.gz |
Change setup() keywords parameter to string form list.0.7.3
Also, some PEP8iziation.
Also, change home URL to the gitlab one.
Diffstat (limited to 'cucutags.py')
-rwxr-xr-x | cucutags.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/cucutags.py b/cucutags.py index 6531fcf..adaa6a1 100755 --- a/cucutags.py +++ b/cucutags.py @@ -20,18 +20,20 @@ # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +import io +import logging import os import os.path -import io import re import sys -import logging + +import parse + logging.basicConfig(format='%(levelname)s:%(funcName)s:%(message)s', level=logging.INFO) -import parse __docformat__ = 'reStructuredText' -__version__ = "0.7.2" +__version__ = "0.7.3" __author__ = u"Matěj Cepl <mcepl_at_redhat_dot_com>" @@ -109,12 +111,11 @@ class SourceFile(object): class CodeFile(io.TextIOWrapper): def __init__(self, filename): filename = os.path.abspath(filename) - io.TextIOWrapper.__init__(self, - io.BufferedReader( - io.FileIO(filename, "r"))) + io.TextIOWrapper.__init__( + self, io.BufferedReader(io.FileIO(filename, "r"))) def process_file(self, cdir): - PATTERNS = {'.py': Target, '.feature': Feature} + PATTERNS = {'.py': Target, '.feature': Feature} # noqa out = { 'targets': [], 'features': [] |