Переглянути джерело

Python scripts: remove UTF-8 coding line (#1461)

* Python scripts: remove UTF-8 coding line. UTF-8 is the default with Python 3, no need for the coding line.

Ref: https://github.com/OSGeo/grass/pull/1449#discussion_r593748122

* write `__init__.py` files as truly empty (flake8: W391)
Markus Neteler 4 роки тому
батько
коміт
22dcea97b9
100 змінених файлів з 32 додано та 134 видалено
  1. 1 1
      .github/workflows/test_thorough.bat
  2. 1 1
      .github/workflows/test_thorough.sh
  3. 1 1
      db/db.describe/testsuite/test_dbdescribe.py
  4. 0 1
      gui/wxpython/animation/data.py
  5. 0 1
      gui/wxpython/animation/provider.py
  6. 0 1
      gui/wxpython/core/layerlist.py
  7. 0 1
      gui/wxpython/datacatalog/dialogs.py
  8. 0 1
      gui/wxpython/docs/wxgui_sphinx/conf.py
  9. 0 1
      gui/wxpython/gui_core/simplelmgr.py
  10. 0 1
      gui/wxpython/lmgr/frame.py
  11. 0 1
      gui/wxpython/mapwin/analysis.py
  12. 0 1
      gui/wxpython/rdigit/controller.py
  13. 0 1
      gui/wxpython/rlisetup/frame.py
  14. 0 1
      gui/wxpython/rlisetup/functions.py
  15. 0 1
      gui/wxpython/rlisetup/sampling_frame.py
  16. 0 1
      man/build_class_graphical.py
  17. 0 1
      man/build_graphical_index.py
  18. 0 1
      man/build_html.py
  19. 0 1
      man/build_keywords.py
  20. 0 1
      man/build_manual_gallery.py
  21. 0 1
      man/build_topics.py
  22. 0 1
      man/parser_standard_options.py
  23. 0 1
      man/sphinx/conf.py
  24. 0 2
      python/grass/docs/conf.py
  25. 0 2
      python/grass/exceptions/testsuite/test_ScriptError.py
  26. 2 2
      python/grass/gunittest/__init__.py
  27. 2 2
      python/grass/gunittest/case.py
  28. 2 2
      python/grass/gunittest/checkers.py
  29. 2 2
      python/grass/gunittest/gmodules.py
  30. 2 2
      python/grass/gunittest/gutils.py
  31. 2 2
      python/grass/gunittest/invoker.py
  32. 2 2
      python/grass/gunittest/loader.py
  33. 2 2
      python/grass/gunittest/main.py
  34. 2 2
      python/grass/gunittest/multireport.py
  35. 2 2
      python/grass/gunittest/multirunner.py
  36. 2 2
      python/grass/gunittest/reporters.py
  37. 2 2
      python/grass/gunittest/runner.py
  38. 0 2
      python/grass/gunittest/testsuite/data/samplecode/submodule_errors/subsubmodule_errors/testsuite/test_error.py
  39. 0 2
      python/grass/gunittest/testsuite/data/samplecode/submodule_errors/subsubmodule_errors/testsuite/test_import_error.py
  40. 0 2
      python/grass/gunittest/testsuite/data/samplecode/submodule_errors/subsubmodule_exiting/testsuite/test_gfatalerror.py
  41. 0 2
      python/grass/gunittest/testsuite/data/samplecode/submodule_errors/subsubmodule_exiting/testsuite/test_osexit_one.py
  42. 0 2
      python/grass/gunittest/testsuite/data/samplecode/submodule_errors/subsubmodule_exiting/testsuite/test_osexit_zero.py
  43. 0 2
      python/grass/gunittest/testsuite/data/samplecode/submodule_errors/subsubmodule_exiting/testsuite/test_segfaut.py
  44. 0 2
      python/grass/gunittest/testsuite/data/samplecode/submodule_errors/subsubmodule_exiting/testsuite/test_sysexit_one.py
  45. 0 2
      python/grass/gunittest/testsuite/data/samplecode/submodule_errors/subsubmodule_exiting/testsuite/test_sysexit_zero.py
  46. 0 2
      python/grass/gunittest/testsuite/data/samplecode/submodule_test_fail/testsuite/test_fail.py
  47. 0 2
      python/grass/gunittest/testsuite/data/samplecode/testsuite/test_good_and_bad.py
  48. 0 1
      python/grass/gunittest/testsuite/data/samplecode/testsuite/test_python_unittest.py
  49. 0 1
      python/grass/gunittest/testsuite/data/samplecode/testsuite/test_success.py
  50. 0 2
      python/grass/gunittest/testsuite/test_assertions.py
  51. 0 2
      python/grass/gunittest/testsuite/test_assertions_rast3d.py
  52. 0 2
      python/grass/gunittest/testsuite/test_assertions_vect.py
  53. 0 2
      python/grass/gunittest/testsuite/test_checkers.py
  54. 0 2
      python/grass/gunittest/testsuite/test_gmodules.py
  55. 0 1
      python/grass/gunittest/testsuite/test_gunitest_doctests.py
  56. 0 2
      python/grass/gunittest/testsuite/test_module_assertions.py
  57. 2 2
      python/grass/gunittest/utils.py
  58. 0 1
      python/grass/imaging/images2gif.py
  59. 0 1
      python/grass/imaging/images2ims.py
  60. 0 1
      python/grass/imaging/images2swf.py
  61. 0 1
      python/grass/pydispatch/signal.py
  62. 0 1
      python/grass/pygrass/__init__.py
  63. 0 1
      python/grass/pygrass/errors.py
  64. 0 1
      python/grass/pygrass/gis/__init__.py
  65. 0 1
      python/grass/pygrass/gis/region.py
  66. 1 2
      python/grass/pygrass/gis/testsuite/test_gis.py
  67. 0 1
      python/grass/pygrass/gis/testsuite/test_pygrass_gis_doctests.py
  68. 2 2
      python/grass/pygrass/messages/__init__.py
  69. 0 1
      python/grass/pygrass/messages/testsuite/test_pygrass_messages_doctests.py
  70. 0 1
      python/grass/pygrass/modules/__init__.py
  71. 0 1
      python/grass/pygrass/modules/grid/__init__.py
  72. 0 1
      python/grass/pygrass/modules/grid/grid.py
  73. 0 1
      python/grass/pygrass/modules/grid/patch.py
  74. 0 1
      python/grass/pygrass/modules/grid/split.py
  75. 0 1
      python/grass/pygrass/modules/grid/testsuite/test_pygrass_modules_grid_doctests.py
  76. 0 1
      python/grass/pygrass/modules/interface/__init__.py
  77. 0 3
      python/grass/pygrass/modules/interface/docstring.py
  78. 0 1
      python/grass/pygrass/modules/interface/env.py
  79. 0 1
      python/grass/pygrass/modules/interface/flag.py
  80. 0 1
      python/grass/pygrass/modules/interface/module.py
  81. 0 1
      python/grass/pygrass/modules/interface/parameter.py
  82. 0 1
      python/grass/pygrass/modules/interface/read.py
  83. 0 1
      python/grass/pygrass/modules/interface/testsuite/test_flag.py
  84. 0 1
      python/grass/pygrass/modules/interface/testsuite/test_modules.py
  85. 0 1
      python/grass/pygrass/modules/interface/testsuite/test_parameter.py
  86. 0 1
      python/grass/pygrass/modules/interface/testsuite/test_pygrass_modules_interface_doctests.py
  87. 0 1
      python/grass/pygrass/modules/interface/typedict.py
  88. 0 1
      python/grass/pygrass/modules/shortcuts.py
  89. 0 1
      python/grass/pygrass/modules/testsuite/test_import_isolation.py
  90. 0 1
      python/grass/pygrass/modules/testsuite/test_pygrass_modules_doctests.py
  91. 0 1
      python/grass/pygrass/raster/__init__.py
  92. 0 1
      python/grass/pygrass/raster/abstract.py
  93. 0 1
      python/grass/pygrass/raster/buffer.py
  94. 0 1
      python/grass/pygrass/raster/category.py
  95. 0 1
      python/grass/pygrass/raster/history.py
  96. 0 1
      python/grass/pygrass/raster/raster_type.py
  97. 0 1
      python/grass/pygrass/raster/rowio.py
  98. 0 1
      python/grass/pygrass/raster/segment.py
  99. 0 1
      python/grass/pygrass/raster/testsuite/test_category.py
  100. 0 0
      python/grass/pygrass/raster/testsuite/test_history.py

+ 1 - 1
.github/workflows/test_thorough.bat

@@ -2,5 +2,5 @@ set grass=%1
 set python=C:\OSGeo4W64\bin\python3
 set python=C:\OSGeo4W64\bin\python3
 
 
 call %grass% --tmp-location XY --exec g.extension g.download.location
 call %grass% --tmp-location XY --exec g.extension g.download.location
-call %grass% --tmp-location XY --exec g.download.location url=http://fatra.cnr.ncsu.edu/data/nc_spm_full_v2alpha2.tar.gz dbase=%USERPROFILE%
+call %grass% --tmp-location XY --exec g.download.location url=https://grass.osgeo.org/sampledata/north_carolina/nc_spm_full_v2alpha2.tar.gz dbase=%USERPROFILE%
 call %grass% --tmp-location XY --exec %python% -m grass.gunittest.main --grassdata %USERPROFILE% --location nc_spm_full_v2alpha2 --location-type nc --min-success 60
 call %grass% --tmp-location XY --exec %python% -m grass.gunittest.main --grassdata %USERPROFILE% --location nc_spm_full_v2alpha2 --location-type nc --min-success 60

+ 1 - 1
.github/workflows/test_thorough.sh

@@ -6,7 +6,7 @@ set -e
 grass79 --tmp-location XY --exec \
 grass79 --tmp-location XY --exec \
     g.extension g.download.location
     g.extension g.download.location
 grass79 --tmp-location XY --exec \
 grass79 --tmp-location XY --exec \
-    g.download.location url=http://fatra.cnr.ncsu.edu/data/nc_spm_full_v2alpha2.tar.gz dbase=$HOME
+    g.download.location url=https://grass.osgeo.org/sampledata/north_carolina/nc_spm_full_v2alpha2.tar.gz dbase=$HOME
 
 
 grass79 --tmp-location XY --exec \
 grass79 --tmp-location XY --exec \
     python3 -m grass.gunittest.main \
     python3 -m grass.gunittest.main \

+ 1 - 1
db/db.describe/testsuite/test_dbdescribe.py

@@ -1,5 +1,5 @@
 #!/usr/bin/env python3
 #!/usr/bin/env python3
-# -*- coding: utf-8 -*-
+
 """
 """
 Created on Tue Nov 14 09:43:55 2017
 Created on Tue Nov 14 09:43:55 2017
 
 

+ 0 - 1
gui/wxpython/animation/data.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 @package animation.data
 @package animation.data
 
 

+ 0 - 1
gui/wxpython/animation/provider.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 @package animation.provider
 @package animation.provider
 
 

+ 0 - 1
gui/wxpython/core/layerlist.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 @package core.layerlist
 @package core.layerlist
 
 

+ 0 - 1
gui/wxpython/datacatalog/dialogs.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 @package datacatalog.dialogs
 @package datacatalog.dialogs
 
 

+ 0 - 1
gui/wxpython/docs/wxgui_sphinx/conf.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 #
 #
 # wxGUI documentation build configuration file, created by
 # wxGUI documentation build configuration file, created by
 # sphinx-quickstart on Tue Jun  3 09:20:51 2014.
 # sphinx-quickstart on Tue Jun  3 09:20:51 2014.

+ 0 - 1
gui/wxpython/gui_core/simplelmgr.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 @package gui_core.simplelmgr
 @package gui_core.simplelmgr
 
 

+ 0 - 1
gui/wxpython/lmgr/frame.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 @package lmgr::frame
 @package lmgr::frame
 
 

+ 0 - 1
gui/wxpython/mapwin/analysis.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 @package mapwin.analysis
 @package mapwin.analysis
 
 

+ 0 - 1
gui/wxpython/rdigit/controller.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 @package rdigit.controller
 @package rdigit.controller
 
 

+ 0 - 1
gui/wxpython/rlisetup/frame.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Created on Mon Nov 26 11:57:54 2012
 Created on Mon Nov 26 11:57:54 2012
 
 

+ 0 - 1
gui/wxpython/rlisetup/functions.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Created on Mon Nov 26 11:48:03 2012
 Created on Mon Nov 26 11:48:03 2012
 
 

+ 0 - 1
gui/wxpython/rlisetup/sampling_frame.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 @package rlisetup.sampling_frame
 @package rlisetup.sampling_frame
 
 

+ 0 - 1
man/build_class_graphical.py

@@ -1,5 +1,4 @@
 #!/usr/bin/env python3
 #!/usr/bin/env python3
-# -*- coding: utf-8 -*-
 
 
 ############################################################################
 ############################################################################
 #
 #

+ 0 - 1
man/build_graphical_index.py

@@ -1,5 +1,4 @@
 #!/usr/bin/env python3
 #!/usr/bin/env python3
-# -*- coding: utf-8 -*-
 
 
 ############################################################################
 ############################################################################
 #
 #

+ 0 - 1
man/build_html.py

@@ -1,5 +1,4 @@
 #!/usr/bin/env python3
 #!/usr/bin/env python3
-# -*- coding: utf-8 -*-
 
 
 # utilities for generating HTML indices
 # utilities for generating HTML indices
 # (C) 2003-2021 Markus Neteler and the GRASS Development Team
 # (C) 2003-2021 Markus Neteler and the GRASS Development Team

+ 0 - 1
man/build_keywords.py

@@ -1,5 +1,4 @@
 #!/usr/bin/env python3
 #!/usr/bin/env python3
-# -*- coding: utf-8 -*-
 
 
 # generates keywords.html
 # generates keywords.html
 # (c) 2013 by the GRASS Development Team, Luca Delucchi
 # (c) 2013 by the GRASS Development Team, Luca Delucchi

+ 0 - 1
man/build_manual_gallery.py

@@ -1,5 +1,4 @@
 #!/usr/bin/env python3
 #!/usr/bin/env python3
-# -*- coding: utf-8 -*-
 
 
 ############################################################################
 ############################################################################
 #
 #

+ 0 - 1
man/build_topics.py

@@ -1,5 +1,4 @@
 #!/usr/bin/env python3
 #!/usr/bin/env python3
-# -*- coding: utf-8 -*-
 
 
 # generates topics.html and topic_*.html
 # generates topics.html and topic_*.html
 # (c) 2012 by the GRASS Development Team, Markus Neteler, Luca Delucchi
 # (c) 2012 by the GRASS Development Team, Markus Neteler, Luca Delucchi

+ 0 - 1
man/parser_standard_options.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Created on Fri Jun 26 19:10:58 2015
 Created on Fri Jun 26 19:10:58 2015
 
 

+ 0 - 1
man/sphinx/conf.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 #
 #
 # GRASS GIS 7.9 Documentation documentation build configuration file, created by
 # GRASS GIS 7.9 Documentation documentation build configuration file, created by
 # sphinx-quickstart on Thu Aug  9 17:16:28 2012.
 # sphinx-quickstart on Thu Aug  9 17:16:28 2012.

+ 0 - 2
python/grass/docs/conf.py

@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-#
 # wxGUI documentation build configuration file, created by
 # wxGUI documentation build configuration file, created by
 # sphinx-quickstart on Tue Jun  3 09:20:51 2014.
 # sphinx-quickstart on Tue Jun  3 09:20:51 2014.
 #
 #

+ 0 - 2
python/grass/exceptions/testsuite/test_ScriptError.py

@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 from grass.gunittest.case import TestCase
 from grass.gunittest.case import TestCase
 from grass.gunittest.main import test
 from grass.gunittest.main import test
 from grass.exceptions import ScriptError
 from grass.exceptions import ScriptError

+ 2 - 2
python/grass/gunittest/__init__.py

@@ -1,5 +1,5 @@
-# -*- coding: utf-8 -*-
-"""GRASS Python testing framework module for running from command line
+"""
+GRASS Python testing framework module for running from command line
 
 
 Copyright (C) 2014 by the GRASS Development Team
 Copyright (C) 2014 by the GRASS Development Team
 This program is free software under the GNU General Public
 This program is free software under the GNU General Public

+ 2 - 2
python/grass/gunittest/case.py

@@ -1,5 +1,5 @@
-# -*- coding: utf-8 -*-
-"""GRASS Python testing framework test case
+"""
+GRASS Python testing framework test case
 
 
 Copyright (C) 2014 by the GRASS Development Team
 Copyright (C) 2014 by the GRASS Development Team
 This program is free software under the GNU General Public
 This program is free software under the GNU General Public

+ 2 - 2
python/grass/gunittest/checkers.py

@@ -1,5 +1,5 @@
-# -*- coding: utf-8 -*-
-"""GRASS Python testing framework checkers
+"""
+GRASS Python testing framework checkers
 
 
 Copyright (C) 2014 by the GRASS Development Team
 Copyright (C) 2014 by the GRASS Development Team
 This program is free software under the GNU General Public
 This program is free software under the GNU General Public

+ 2 - 2
python/grass/gunittest/gmodules.py

@@ -1,5 +1,5 @@
-# -*- coding: utf-8 -*-
-"""Specialized interfaces for invoking modules for testing framework
+"""
+Specialized interfaces for invoking modules for testing framework
 
 
 Copyright (C) 2014 by the GRASS Development Team
 Copyright (C) 2014 by the GRASS Development Team
 This program is free software under the GNU General Public
 This program is free software under the GNU General Public

+ 2 - 2
python/grass/gunittest/gutils.py

@@ -1,5 +1,5 @@
-# -*- coding: utf-8 -*-
-"""Utilities related to GRASS GIS for GRASS Python testing framework
+"""
+Utilities related to GRASS GIS for GRASS Python testing framework
 
 
 Copyright (C) 2014 by the GRASS Development Team
 Copyright (C) 2014 by the GRASS Development Team
 This program is free software under the GNU General Public
 This program is free software under the GNU General Public

+ 2 - 2
python/grass/gunittest/invoker.py

@@ -1,5 +1,5 @@
-# -*- coding: utf-8 -*-
-"""GRASS Python testing framework test files invoker (runner)
+"""
+GRASS Python testing framework test files invoker (runner)
 
 
 Copyright (C) 2014 by the GRASS Development Team
 Copyright (C) 2014 by the GRASS Development Team
 This program is free software under the GNU General Public
 This program is free software under the GNU General Public

+ 2 - 2
python/grass/gunittest/loader.py

@@ -1,5 +1,5 @@
-# -*- coding: utf-8 -*-
-"""GRASS Python testing framework test loading functionality
+"""
+GRASS Python testing framework test loading functionality
 
 
 Copyright (C) 2014 by the GRASS Development Team
 Copyright (C) 2014 by the GRASS Development Team
 This program is free software under the GNU General Public
 This program is free software under the GNU General Public

+ 2 - 2
python/grass/gunittest/main.py

@@ -1,5 +1,5 @@
-# -*- coding: utf-8 -*-
-"""GRASS Python testing framework module for running from command line
+"""
+GRASS Python testing framework module for running from command line
 
 
 Copyright (C) 2014 by the GRASS Development Team
 Copyright (C) 2014 by the GRASS Development Team
 This program is free software under the GNU General Public
 This program is free software under the GNU General Public

+ 2 - 2
python/grass/gunittest/multireport.py

@@ -1,5 +1,5 @@
-# -*- coding: utf-8 -*-
-"""Testing framework module for multi report
+"""
+Testing framework module for multi report
 
 
 Copyright (C) 2014 by the GRASS Development Team
 Copyright (C) 2014 by the GRASS Development Team
 This program is free software under the GNU General Public
 This program is free software under the GNU General Public

+ 2 - 2
python/grass/gunittest/multirunner.py

@@ -1,5 +1,5 @@
-# -*- coding: utf-8 -*-
-"""Testing framework module for running tests in Python unittest fashion
+"""
+Testing framework module for running tests in Python unittest fashion
 
 
 Copyright (C) 2014 by the GRASS Development Team
 Copyright (C) 2014 by the GRASS Development Team
 This program is free software under the GNU General Public
 This program is free software under the GNU General Public

+ 2 - 2
python/grass/gunittest/reporters.py

@@ -1,5 +1,5 @@
-# -*- coding: utf-8 -*-
-"""GRASS Python testing framework module for report generation
+"""
+GRASS Python testing framework module for report generation
 
 
 Copyright (C) 2014 by the GRASS Development Team
 Copyright (C) 2014 by the GRASS Development Team
 This program is free software under the GNU General Public
 This program is free software under the GNU General Public

+ 2 - 2
python/grass/gunittest/runner.py

@@ -1,5 +1,5 @@
-# -*- coding: utf-8 -*-
-"""Testing framework module for running tests in Python unittest fashion
+"""
+Testing framework module for running tests in Python unittest fashion
 
 
 Copyright (C) 2014 by the GRASS Development Team
 Copyright (C) 2014 by the GRASS Development Team
 This program is free software under the GNU General Public
 This program is free software under the GNU General Public

+ 0 - 2
python/grass/gunittest/testsuite/data/samplecode/submodule_errors/subsubmodule_errors/testsuite/test_error.py

@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 from grass.gunittest.case import TestCase
 from grass.gunittest.case import TestCase
 from grass.gunittest.main import test
 from grass.gunittest.main import test
 
 

+ 0 - 2
python/grass/gunittest/testsuite/data/samplecode/submodule_errors/subsubmodule_errors/testsuite/test_import_error.py

@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 # comment to get rid of the wrong import
 # comment to get rid of the wrong import
 # (if it is imported before all tests start and everything would fail)
 # (if it is imported before all tests start and everything would fail)
 # import this_module_or_package_does_not_exists__testing_import_error
 # import this_module_or_package_does_not_exists__testing_import_error

+ 0 - 2
python/grass/gunittest/testsuite/data/samplecode/submodule_errors/subsubmodule_exiting/testsuite/test_gfatalerror.py

@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 import grass.lib.gis as libgis
 import grass.lib.gis as libgis
 from grass.gunittest.case import TestCase
 from grass.gunittest.case import TestCase
 from grass.gunittest.main import test
 from grass.gunittest.main import test

+ 0 - 2
python/grass/gunittest/testsuite/data/samplecode/submodule_errors/subsubmodule_exiting/testsuite/test_osexit_one.py

@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 import os
 import os
 from grass.gunittest.case import TestCase
 from grass.gunittest.case import TestCase
 from grass.gunittest.main import test
 from grass.gunittest.main import test

+ 0 - 2
python/grass/gunittest/testsuite/data/samplecode/submodule_errors/subsubmodule_exiting/testsuite/test_osexit_zero.py

@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 import os
 import os
 from grass.gunittest.case import TestCase
 from grass.gunittest.case import TestCase
 from grass.gunittest.main import test
 from grass.gunittest.main import test

+ 0 - 2
python/grass/gunittest/testsuite/data/samplecode/submodule_errors/subsubmodule_exiting/testsuite/test_segfaut.py

@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 import ctypes
 import ctypes
 from grass.gunittest.case import TestCase
 from grass.gunittest.case import TestCase
 from grass.gunittest.main import test
 from grass.gunittest.main import test

+ 0 - 2
python/grass/gunittest/testsuite/data/samplecode/submodule_errors/subsubmodule_exiting/testsuite/test_sysexit_one.py

@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 import sys
 import sys
 from grass.gunittest.case import TestCase
 from grass.gunittest.case import TestCase
 from grass.gunittest.main import test
 from grass.gunittest.main import test

+ 0 - 2
python/grass/gunittest/testsuite/data/samplecode/submodule_errors/subsubmodule_exiting/testsuite/test_sysexit_zero.py

@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 import sys
 import sys
 from grass.gunittest.case import TestCase
 from grass.gunittest.case import TestCase
 from grass.gunittest.main import test
 from grass.gunittest.main import test

+ 0 - 2
python/grass/gunittest/testsuite/data/samplecode/submodule_test_fail/testsuite/test_fail.py

@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 from grass.gunittest.case import TestCase
 from grass.gunittest.case import TestCase
 from grass.gunittest.main import test
 from grass.gunittest.main import test
 
 

+ 0 - 2
python/grass/gunittest/testsuite/data/samplecode/testsuite/test_good_and_bad.py

@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 from grass.gunittest.case import TestCase
 from grass.gunittest.case import TestCase
 from grass.gunittest.main import test
 from grass.gunittest.main import test
 
 

+ 0 - 1
python/grass/gunittest/testsuite/data/samplecode/testsuite/test_python_unittest.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 from __future__ import print_function
 from __future__ import print_function
 from unittest import TestCase, main
 from unittest import TestCase, main
 
 

+ 0 - 1
python/grass/gunittest/testsuite/data/samplecode/testsuite/test_success.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 from __future__ import print_function
 from __future__ import print_function
 
 
 from grass.gunittest.case import TestCase
 from grass.gunittest.case import TestCase

+ 0 - 2
python/grass/gunittest/testsuite/test_assertions.py

@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 """
 """
 Tests assertion methods.
 Tests assertion methods.
 """
 """

+ 0 - 2
python/grass/gunittest/testsuite/test_assertions_rast3d.py

@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 """
 """
 Tests assertion methods for 3D rasters.
 Tests assertion methods for 3D rasters.
 """
 """

+ 0 - 2
python/grass/gunittest/testsuite/test_assertions_vect.py

@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 """
 """
 Tests assertion methods for vectors.
 Tests assertion methods for vectors.
 """
 """

+ 0 - 2
python/grass/gunittest/testsuite/test_checkers.py

@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 """
 """
 Tests checkers functions
 Tests checkers functions
 
 

+ 0 - 2
python/grass/gunittest/testsuite/test_gmodules.py

@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 import subprocess
 import subprocess
 
 
 from grass.gunittest.case import TestCase
 from grass.gunittest.case import TestCase

+ 0 - 1
python/grass/gunittest/testsuite/test_gunitest_doctests.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Tests checkers
 Tests checkers
 """
 """

+ 0 - 2
python/grass/gunittest/testsuite/test_module_assertions.py

@@ -1,5 +1,3 @@
-# -*- coding: utf-8 -*-
-
 import copy
 import copy
 import subprocess
 import subprocess
 
 

+ 2 - 2
python/grass/gunittest/utils.py

@@ -1,5 +1,5 @@
-# -*- coding: utf-8 -*-
-"""GRASS Python testing framework utilities (general and test-specific)
+"""
+GRASS Python testing framework utilities (general and test-specific)
 
 
 Copyright (C) 2014 by the GRASS Development Team
 Copyright (C) 2014 by the GRASS Development Team
 This program is free software under the GNU General Public
 This program is free software under the GNU General Public

+ 0 - 1
python/grass/imaging/images2gif.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 #   Copyright (C) 2012, Almar Klein, Ant1, Marius van Voorden
 #   Copyright (C) 2012, Almar Klein, Ant1, Marius van Voorden
 #
 #
 #   This code is subject to the (new) BSD license:
 #   This code is subject to the (new) BSD license:

+ 0 - 1
python/grass/imaging/images2ims.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 #   Copyright (C) 2012, Almar Klein
 #   Copyright (C) 2012, Almar Klein
 #
 #
 #   This code is subject to the (new) BSD license:
 #   This code is subject to the (new) BSD license:

+ 0 - 1
python/grass/imaging/images2swf.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 #   Copyright (C) 2012, Almar Klein
 #   Copyright (C) 2012, Almar Klein
 #
 #
 #   This code is subject to the (new) BSD license:
 #   This code is subject to the (new) BSD license:

+ 0 - 1
python/grass/pydispatch/signal.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Created on Mon Mar 11 18:39:13 2013
 Created on Mon Mar 11 18:39:13 2013
 
 

+ 0 - 1
python/grass/pygrass/__init__.py

@@ -1 +0,0 @@
-# -*- coding: utf-8 -*-

+ 0 - 1
python/grass/pygrass/errors.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 from functools import wraps
 from functools import wraps
 
 
 from grass.exceptions import GrassError
 from grass.exceptions import GrassError

+ 0 - 1
python/grass/pygrass/gis/__init__.py

@@ -1,5 +1,4 @@
 #!/usr/bin/env python3
 #!/usr/bin/env python3
-# -*- coding: utf-8 -*-
 
 
 from __future__ import (
 from __future__ import (
     nested_scopes,
     nested_scopes,

+ 0 - 1
python/grass/pygrass/gis/region.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Created on Fri May 25 12:57:10 2012
 Created on Fri May 25 12:57:10 2012
 
 

+ 1 - 2
python/grass/pygrass/gis/testsuite/test_gis.py

@@ -1,6 +1,5 @@
-# -*- coding: utf-8 -*-
 """
 """
-Luca Delucchi
+@author:Luca Delucchi
 """
 """
 
 
 from grass.gunittest.case import TestCase
 from grass.gunittest.case import TestCase

+ 0 - 1
python/grass/pygrass/gis/testsuite/test_pygrass_gis_doctests.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Tests checkers
 Tests checkers
 """
 """

+ 2 - 2
python/grass/pygrass/messages/__init__.py

@@ -1,5 +1,5 @@
-# -*- coding: utf-8 -*-
-"""@package grass.pygrass.messages
+"""
+@package grass.pygrass.messages
 
 
 @brief PyGRASS message interface
 @brief PyGRASS message interface
 
 

+ 0 - 1
python/grass/pygrass/messages/testsuite/test_pygrass_messages_doctests.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Tests checkers
 Tests checkers
 """
 """

+ 0 - 1
python/grass/pygrass/modules/__init__.py

@@ -1,3 +1,2 @@
-# -*- coding: utf-8 -*-
 from grass.pygrass.modules.interface import Module, MultiModule, ParallelModuleQueue
 from grass.pygrass.modules.interface import Module, MultiModule, ParallelModuleQueue
 from grass.pygrass.modules import shortcuts
 from grass.pygrass.modules import shortcuts

+ 0 - 1
python/grass/pygrass/modules/grid/__init__.py

@@ -1,2 +1 @@
-# -*- coding: utf-8 -*-
 from grass.pygrass.modules.grid.grid import GridModule
 from grass.pygrass.modules.grid.grid import GridModule

+ 0 - 1
python/grass/pygrass/modules/grid/grid.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 from __future__ import (
 from __future__ import (
     nested_scopes,
     nested_scopes,
     generators,
     generators,

+ 0 - 1
python/grass/pygrass/modules/grid/patch.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Created on Tue Apr  2 18:57:42 2013
 Created on Tue Apr  2 18:57:42 2013
 
 

+ 0 - 1
python/grass/pygrass/modules/grid/split.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Created on Tue Apr  2 19:00:15 2013
 Created on Tue Apr  2 19:00:15 2013
 
 

+ 0 - 1
python/grass/pygrass/modules/grid/testsuite/test_pygrass_modules_grid_doctests.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Tests checkers
 Tests checkers
 """
 """

+ 0 - 1
python/grass/pygrass/modules/interface/__init__.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Created on Tue Apr  2 18:40:39 2013
 Created on Tue Apr  2 18:40:39 2013
 
 

+ 0 - 3
python/grass/pygrass/modules/interface/docstring.py

@@ -1,6 +1,3 @@
-# -*- coding: utf-8 -*-
-
-
 def docstring_property(class_doc):
 def docstring_property(class_doc):
     """Property attribute for docstrings.
     """Property attribute for docstrings.
     Took from: https://gist.github.com/bfroehle/4041015
     Took from: https://gist.github.com/bfroehle/4041015

+ 0 - 1
python/grass/pygrass/modules/interface/env.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Created on Thu May 28 17:41:32 2015
 Created on Thu May 28 17:41:32 2015
 
 

+ 0 - 1
python/grass/pygrass/modules/interface/flag.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 from __future__ import (
 from __future__ import (
     nested_scopes,
     nested_scopes,
     generators,
     generators,

+ 0 - 1
python/grass/pygrass/modules/interface/module.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 from __future__ import (
 from __future__ import (
     nested_scopes,
     nested_scopes,
     generators,
     generators,

+ 0 - 1
python/grass/pygrass/modules/interface/parameter.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Created on Tue Apr  2 18:31:47 2013
 Created on Tue Apr  2 18:31:47 2013
 
 

+ 0 - 1
python/grass/pygrass/modules/interface/read.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Created on Tue Apr  2 18:30:34 2013
 Created on Tue Apr  2 18:30:34 2013
 
 

+ 0 - 1
python/grass/pygrass/modules/interface/testsuite/test_flag.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Created on Tue Jun 24 09:43:53 2014
 Created on Tue Jun 24 09:43:53 2014
 
 

+ 0 - 1
python/grass/pygrass/modules/interface/testsuite/test_modules.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Created on Tue Jun 24 09:43:53 2014
 Created on Tue Jun 24 09:43:53 2014
 
 

+ 0 - 1
python/grass/pygrass/modules/interface/testsuite/test_parameter.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Created on Fri Jul  4 16:32:54 2014
 Created on Fri Jul  4 16:32:54 2014
 
 

+ 0 - 1
python/grass/pygrass/modules/interface/testsuite/test_pygrass_modules_interface_doctests.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Tests checkers
 Tests checkers
 """
 """

+ 0 - 1
python/grass/pygrass/modules/interface/typedict.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Created on Tue Apr  2 18:37:02 2013
 Created on Tue Apr  2 18:37:02 2013
 
 

+ 0 - 1
python/grass/pygrass/modules/shortcuts.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 from __future__ import (
 from __future__ import (
     nested_scopes,
     nested_scopes,
     generators,
     generators,

+ 0 - 1
python/grass/pygrass/modules/testsuite/test_import_isolation.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Authors:   pietro
 Authors:   pietro
 
 

+ 0 - 1
python/grass/pygrass/modules/testsuite/test_pygrass_modules_doctests.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Tests checkers
 Tests checkers
 """
 """

+ 0 - 1
python/grass/pygrass/raster/__init__.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 from __future__ import (
 from __future__ import (
     nested_scopes,
     nested_scopes,
     generators,
     generators,

+ 0 - 1
python/grass/pygrass/raster/abstract.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Created on Fri Aug 17 16:05:25 2012
 Created on Fri Aug 17 16:05:25 2012
 
 

+ 0 - 1
python/grass/pygrass/raster/buffer.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 from grass.pygrass.raster.raster_type import TYPE as RTYPE
 from grass.pygrass.raster.raster_type import TYPE as RTYPE
 import ctypes
 import ctypes
 import numpy as np
 import numpy as np

+ 0 - 1
python/grass/pygrass/raster/category.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Created on Thu Jun 28 17:44:14 2012
 Created on Thu Jun 28 17:44:14 2012
 
 

+ 0 - 1
python/grass/pygrass/raster/history.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Created on Thu Jun 28 17:44:45 2012
 Created on Thu Jun 28 17:44:45 2012
 
 

+ 0 - 1
python/grass/pygrass/raster/raster_type.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Created on Wed Jun 13 19:42:22 2012
 Created on Wed Jun 13 19:42:22 2012
 
 

+ 0 - 1
python/grass/pygrass/raster/rowio.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Created on Mon Jun 18 13:22:38 2012
 Created on Mon Jun 18 13:22:38 2012
 
 

+ 0 - 1
python/grass/pygrass/raster/segment.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Created on Mon Jun 11 18:02:27 2012
 Created on Mon Jun 11 18:02:27 2012
 
 

+ 0 - 1
python/grass/pygrass/raster/testsuite/test_category.py

@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 """
 """
 Created on Mon Sep 15 17:09:40 2014
 Created on Mon Sep 15 17:09:40 2014
 
 

+ 0 - 0
python/grass/pygrass/raster/testsuite/test_history.py


Деякі файли не було показано, через те що забагато файлів було змінено