p4cmd 2.3.4__tar.gz → 2.3.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: p4cmd
3
- Version: 2.3.4
3
+ Version: 2.3.5
4
4
  Summary: Simple P4 python module
5
5
  Home-page: https://github.com/nielsvaes/p4cmd
6
6
  Author: Niels Vaes
@@ -737,9 +737,12 @@ class P4Client(object):
737
737
  changelists.append([self.__get_dict_value(info_dict, "change"), cl_description])
738
738
 
739
739
  if descriptions:
740
- return [pair[1] for pair in changelists].append("default")
740
+ return_list = [pair[1] for pair in changelists]
741
+ return_list.append("default")
741
742
  else:
742
- return [int(pair[0]) for pair in changelists].append("default")
743
+ return_list = [int(pair[0]) for pair in changelists]
744
+ return_list.append("default")
745
+ return return_list
743
746
 
744
747
  def get_or_make_changelist(self, changelist_description, case_sensitive=False):
745
748
  """
@@ -761,7 +764,7 @@ class P4Client(object):
761
764
  case_sensitive=case_sensitive,
762
765
  )
763
766
 
764
- if len(changelists):
767
+ if len(changelists) > 1: # > 1 because "default" is always appended
765
768
  return changelists[0]
766
769
  else:
767
770
  return self.make_new_changelist(description=changelist_description)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: p4cmd
3
- Version: 2.3.4
3
+ Version: 2.3.5
4
4
  Summary: Simple P4 python module
5
5
  Home-page: https://github.com/nielsvaes/p4cmd
6
6
  Author: Niels Vaes
@@ -7,7 +7,7 @@ data_files_to_include = ["*.png"]
7
7
 
8
8
  setuptools.setup(
9
9
  name="p4cmd",
10
- version="2.3.4",
10
+ version="2.3.5",
11
11
  author="Niels Vaes",
12
12
  license='MIT',
13
13
  author_email="nielsvaes@gmail.com",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes