Anonymous avatar Anonymous committed d98818d

Adding GPL notice in the rope package

Comments (0)

Files changed (4)

 License
 =======
 
-This program is under the terms of GPL(GNU General Public License).
+This program is under the terms of GPL (GNU General Public License).
 Have a look at ``COPYING`` file for more information.
 
 

docs/dev/workingon.txt

 =============
 
 - Handling strings in following lines in `patchedast`
+- GPL notice in the library
 
 * Refactoring `rope.refactor.patchedast`
 * Moving `PyCore.create_module()` and `PyCore.create_package()`? Where
-"""rope, a python refactoring library and IDE"""
+"""rope, a python refactoring library"""
 
+INFO = __doc__
 VERSION = '0.6m4'
+COPYRIGHT = """\
+Copyright (C) 2006-2007 Ali Gholami Rudi
+
+This program is free software; you can redistribute it and/or modify it
+under the terms of GNU General Public License as published by the
+Free Software Foundation; either version 2 of the license, or (at your
+opinion) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details."""

rope/ui/helpactions.py

 def show_about_dialog(context):
     toplevel = Tkinter.Toplevel()
     toplevel.title('About Rope')
-    text = rope.__doc__ + ' ...\n' + \
-           'version ' + rope.VERSION + '\n\n' + \
-           'Copyright (C) 2006-2007 Ali Gholami Rudi\n\n' + \
-           'This program is free software; you can redistribute it and/or modify it\n' + \
-           'under the terms of GNU General Public License as published by the \n' + \
-           'Free Software Foundation; either version 2 of the license, or (at your \n' + \
-           'opinion) any later version.\n\n' + \
-           'This program is distributed in the hope that it will be useful,\n' + \
-           'but WITHOUT ANY WARRANTY; without even the implied warranty of\n' + \
-           'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n' + \
-           'GNU General Public License for more details.\n'
+    text = '%s and IDE ...\nversion %s\n\n%s\n' % \
+           (rope.INFO, rope.VERSION, rope.COPYRIGHT)
     label = Tkinter.Label(toplevel, text=text, height=16, width=70,
                           justify=Tkinter.LEFT, relief=Tkinter.GROOVE)
     def ok():
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.