Commit Graph

33 Commits

Author SHA1 Message Date
Mino-Tsuzuku
0ce232b38a * Move pyopen with encoding to utils. (#19377)
and modify all importing library to use pyopen with encoding.
with this change, DXF OCA AirfoilDAT with multibyte sequence always read as utf-8.
2025-02-04 11:33:43 +01:00
Chris Mayo
a8942b19c9 Mod: Remove Doxygen special commands from Python docstrings
These don't work by default in Doxygen [1] and cause Python syntax
warnings.

[1] https://www.doxygen.nl/manual/docblocks.html#pythonblocks
2024-11-05 17:18:50 -05:00
Dov Grobgeld
e66e90b512 Fix run time errors with python3.12 and pyside6 (#13337)
* Change pyopen=open expression to from builtins import open as pyopen

---------

Co-authored-by: Adrián Insaurralde Avalos <36372335+adrianinsaval@users.noreply.github.com>
2024-04-30 00:28:01 -04:00
Roy-043
16e5835aa6 Draft: implement new get_param functions (step 4)
See #11677
2023-12-13 19:39:35 +01:00
luzpaz
38a01939e0 Migrate domain name from freecadweb to freecad (#9352)
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files

Closes #6415
2023-04-24 15:19:20 -05:00
Roy-043
b5ade2c085 [Draft] Remove obsolete decode code (#9106) 2023-03-28 21:03:33 +02:00
Roy-043
5512acd619 Draft: Housekeeping: import translate from correct file 2022-07-23 19:51:03 +02:00
luz paz
a94d76874f LGTM: Remove unnecessary deletion of local variables
Passing a local variable to a del statement results in that variable being removed from the local namespace. When exiting a function all local variables are deleted, so it is unnecessary to explicitly delete variables in such cases.

ref: https://lgtm.com/rules/1506104658325/
2022-05-05 23:03:36 +02:00
luz paz
b94ee8b275 Crowdin: represent whitespace in code instead of in string [skip ci]
Removing possible whitespace from strings lead to more accurate translations
2021-04-19 06:16:09 -04:00
luz.paz
8cfa85cf18 Draft: [skip ci] Fix header uniformity
This PR fixes header uniformity across all Draft files
2019-12-27 00:16:12 +01:00
vocx-fc
b2869d8d6e Draft: importOCA.py, open the file to write as text, not to write in binary 2019-08-09 18:38:24 -03:00
vocx-fc
5296339730 Draft: importOCA.py, print to the FreeCAD console (report view), and also allow translating the text 2019-08-09 18:38:24 -03:00
vocx-fc
519735b3ef Draft: importOCA.py, as of 2019 this file format is practically obsolete, and this module is not maintained 2019-08-09 18:38:24 -03:00
vocx-fc
7dfb353b3a Draft: importOCA.py, improved Pythonic style, checked the code with flake8 and Spyder, which uses various code analyzers 2019-08-09 18:38:24 -03:00
vocx-fc
2bfad4e850 Draft: importOCA.py, improved Pythonic style, changed a few variables; checked the code with flake8 2019-08-09 18:38:24 -03:00
vocx-fc
9f43163481 Draft: importOCA.py, improved Pythonic style, added spaces around operators and commas 2019-08-09 18:38:24 -03:00
vocx-fc
aa8f94b1b9 Draft: importOCA.py, added proper docstrings to the functions 2019-08-09 18:38:24 -03:00
luz.paz
46d32d78a3 Misc. typos: Please merge right before 0.17 release
I'm still finding typos in the source code. I propose that you keep this PR open prior ro relaese and then merge  so that if I find other typos in the meantime they will be part this release.
2018-03-18 15:15:16 +01:00
Yorik van Havre
876b3595dc py3: open function is in module 'io' in py3 instead of __builtin__ 2017-01-17 09:24:59 +01:00
wmayer
c3fe2de155 replace Part.Line with Part.LineSegment 2016-11-30 21:25:18 +01:00
Yorik van Havre
bf0d37bf28 Doc: Fixes in doxygen docs for Draft,Arch, FEM 2016-11-17 17:04:09 -02:00
wmayer
9a4b4695e2 fix unicode/utf-8 encoding problems 2016-09-24 16:48:30 +02:00
Yorik van Havre
203fcb7a1b Draft: Adapted Draft module for python3 compatibility - issue #995 2014-10-05 19:40:14 -03:00
Sebastian Hoogen
67b01c5aae try to use Execptions in Draft module 2014-09-17 12:52:36 +02:00
wmayer
f788dff9aa + Fix syntax error (patch from Anton Gladky) 2013-09-28 15:57:02 +02:00
Yorik van Havre
4005b199e0 0001102: Updated all links to old freecad homepage and wiki to the new ones 2013-09-15 17:04:42 -03:00
Yorik van Havre
a9b429178e Draft: Fixed license blocks 2013-06-20 21:32:41 -03:00
Yorik van Havre
63442c9c9b 0001072 : Edge.Curve assert in Draft 2013-03-31 17:54:32 -03:00
Yorik van Havre
4f3eeda0d6 0000946: Draft inserts now set the active document 2013-02-25 19:38:53 -03:00
Yorik van Havre
28f386f3ab Renamed Draft fcvec and fcgeo modules
Draft/draftlibs/fcvec becomes Draft/DraftVecUtils
Draft/draftlibs/fcgeo becomes Draft/DraftGeomUtils
2012-05-22 11:45:40 -03:00
Yorik van Havre
3a4ed2f723 unified yorik's email 2012-05-21 22:35:18 -03:00
Yorik van Havre
ccf52d9910 Fixed bug 625 in Draft importers 2012-03-12 18:45:47 -03:00
wmayer
120ca87015 + unify DLL export defines to namespace names
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00