1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/python/samba
Noel Power df578e1554 python/samba/gp_parse: Use csv.reader for parsing cvs files
The previous version here was using UnicodeReader which was
wrapping the UTF8Recoder class and passing that to csv.reader.
It looks like the intention was to read a bytestream in a
certain encoding and then reencode it to a different encoding.
And then UnicodeReader creates unicode from the newly encoded stream.
This is unnecssary, we know the encoding of the bytesstream and
codec.getreader will happily consume the bytstream and give back
unicode. The unicode can be fed directly into csv.writer.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2018-11-05 20:05:23 +01:00
..
emulate traffic: Machine accounts were generated as critical objects 2018-11-05 03:43:24 +01:00
gp_parse python/samba/gp_parse: Use csv.reader for parsing cvs files 2018-11-05 20:05:23 +01:00
kcc python/kcc/graph: import KCCError, which is used somewhere 2018-11-01 05:08:13 +01:00
netcmd python/samba/gp_parse: PY3 file -> open 2018-11-05 20:05:23 +01:00
provision provision/backend: LDAPBackendResult takes no creds 2018-11-01 05:08:12 +01:00
samba3 python/samba3: import passdb in the manner it is used 2018-11-01 05:08:14 +01:00
subunit PEP8: fix E701: multiple statements on one line (colon) 2018-08-24 07:49:30 +02:00
tests pytests: allow blackbox subcommands without a shell 2018-11-01 09:41:19 +01:00
web_server s4/web_server: PY3: port to python3 2018-09-27 01:54:27 +02:00
__init__.py PEP8: fix E713: test for membership should be 'not in' 2018-08-24 07:49:31 +02:00
colour.py python/colour: add colourizing and switch functions 2018-05-31 01:57:17 +02:00
common.py python: avoid useless work in dsdb_Dn.__cmp__ 2018-11-01 05:08:12 +01:00
compat.py python/samba: add alias for ConfigParser for PY2/PY3 compatability 2018-10-23 05:50:26 +02:00
dbchecker.py python dbcheck: don't use mutable default args 2018-11-02 03:48:52 +01:00
descriptor.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
dnsserver.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
domain_update.py python/domain_update: remove unused imports 2018-10-25 21:45:53 +02:00
drs_utils.py drs_util: Improve memory usage when joining large DB 2018-10-17 08:56:42 +02:00
forest_update.py python/forest_update: remove unused imports 2018-10-25 21:45:53 +02:00
getopt.py PEP8: fix E128: continuation line under-indented for visual indent 2018-08-24 07:49:27 +02:00
gp_ext_loader.py python/gp_ext_loader: remove unused imports 2018-10-25 21:45:53 +02:00
gp_sec_ext.py gpo: add unapply to the gp_sec_ext 2018-10-08 18:17:16 +02:00
gpclass.py python/samba: use PY3 version of ConfigParser 2018-10-23 05:50:26 +02:00
graph.py PEP8: fix E303: too many blank lines (2) 2018-08-24 07:49:30 +02:00
hostconfig.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
idmap.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
join.py python/join: remove unused imports and variables 2018-11-01 05:08:15 +01:00
logger.py samba/logger: add logger module for python 2018-10-10 06:16:21 +02:00
mdb_util.py netcmd: domain backup offline command 2018-08-06 05:37:42 +02:00
ms_display_specifiers.py python/samba: port open to io.open for PY2/PY3 compat 2018-09-03 03:22:20 +02:00
ms_forest_updates_markdown.py python/samba: PY3 port samba4.blackbox.functionalprep 2018-10-23 05:50:28 +02:00
ms_schema_markdown.py PEP8: fix E305: expected 2 blank lines after class or function definition, found 1 2018-08-24 07:49:30 +02:00
ms_schema.py python/samba: port open to io.open for PY2/PY3 compat 2018-09-03 03:22:20 +02:00
ndr.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
ntacls.py python/ntacls: remove unused imports 2018-10-25 21:45:53 +02:00
remove_dc.py python/remove_dc: fix Exception construction 2018-11-01 05:08:13 +01:00
samdb.py python: do not use "is" for string equality 2018-10-29 23:13:36 +01:00
schema.py python/schema: remove unused import 2018-10-25 21:45:53 +02:00
sd_utils.py PEP8: fix E231: missing whitespace after ',' 2018-08-24 07:49:28 +02:00
sites.py PEP8: fix E128: continuation line under-indented for visual indent 2018-08-24 07:49:27 +02:00
subnets.py python/subnets: use the correct variable name 2018-11-01 05:08:11 +01:00
tdb_util.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
upgrade.py PEP8: improve formatting around bit-wise OR ("|") 2018-08-24 07:49:32 +02:00
upgradehelpers.py python/upgradehelpers: remove unused provision imports 2018-11-01 05:08:15 +01:00
uptodateness.py uptodateness: add get_utdv_summary function 2018-10-18 06:15:25 +02:00
xattr.py python/xattr: remove unused variable 2018-11-01 05:08:14 +01:00