[PATCH 00/22] Python tweaks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



These patches improve the code style of python code
by applying some PEP8 recommendations and simplifying
some functions.

Radostin Stoyanov (22):
  apibuild: Use isinctance for type checking
  apibuild: Split imports on separate lines
  apibuild: Remove whitespace before ',' and ':'
  python: Add whitespace around = and % operators
  esx_vi_generator: Simplify generate_helper_source
  esx_vi_generator: Simplify generate_helper_header
  esx_vi_generator: Simplify get_occurrence_comment
  esx_vi_generator: Simplify alignment function
  apibuild: Simplify conditional statements
  python: Remove space around = in keyword args
  WmiClass: Don't share "versions" between instances
  apibuild: Simplify uniq function
  apibuild: Avoid double sorting of ids
  python3: cpu-reformat: Use the print() function
  apibuild: Drop backslash between brackets
  apibuild: Fix indentation not multiple of 4
  apibuild: Simplify strip_lead_star()
  apibuild: Simplify parseTypeComment()
  apibuild: Simplify type checking of literals
  apibuild: Use list comprehension insteand of map
  apibuild: Simplify merging of preproc tokens
  apibuild: Simplify parsing string tokens

 docs/apibuild.py                   | 643 +++++++++++++++++--------------------
 docs/index.py                      |  54 ++--
 src/esx/esx_vi_generator.py        | 179 +++++------
 src/hyperv/hyperv_wmi_generator.py |  36 ++-
 tests/cputestdata/cpu-cpuid.py     |   6 +-
 tests/cputestdata/cpu-reformat.py  |   6 +-
 6 files changed, 424 insertions(+), 500 deletions(-)

-- 
2.14.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux