Set name and version
This commit is contained in:
parent
ad4bf818fa
commit
aa7185d419
4 changed files with 7 additions and 4 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -3,6 +3,8 @@
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
*$py.class
|
*$py.class
|
||||||
|
*.bak
|
||||||
|
*.kde*
|
||||||
|
|
||||||
# C extensions
|
# C extensions
|
||||||
*.so
|
*.so
|
||||||
|
|
6
LICENSE
6
LICENSE
|
@ -208,8 +208,8 @@ If you develop a new program, and you want it to be of the greatest possible use
|
||||||
|
|
||||||
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
|
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
<one line to give the program's name and a brief idea of what it does.>
|
CutWords
|
||||||
Copyright (C) <year> <name of author>
|
Copyright (C) 2022 Beat Jäckle
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
@ -221,7 +221,7 @@ Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
|
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
<program> Copyright (C) <year> <name of author>
|
CutWords Copyright (C) 2022 Beat Jäckle
|
||||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# cutwords
|
# CutWords
|
||||||
|
|
||||||
takes any length string, returns of list strings with each 128 words
|
takes any length string, returns of list strings with each 128 words
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
import re
|
import re
|
||||||
|
|
||||||
class CutWords:
|
class CutWords:
|
||||||
|
version = '1.0'
|
||||||
def __init__(self, string, maxlen=128, mode=None):
|
def __init__(self, string, maxlen=128, mode=None):
|
||||||
self.setMaxlen(maxlen)
|
self.setMaxlen(maxlen)
|
||||||
self.setString(string)
|
self.setString(string)
|
||||||
|
|
Loading…
Reference in a new issue