Commits

ta...@MacZiade  committed 80be093

simplified code

  • Participants
  • Parent commits 5ba904b
  • Branches tarek-postdev

Comments (0)

Files changed (1)

         self._parse(s, error_on_huge_major_num)
 
     @classmethod
-    def from_parts(cls, version, prerelease=None, devpost=None):
-        if prerelease is None:
-            prerelease = FINAL_MARKER
-        if devpost is None:
-            devpost = FINAL_MARKER
+    def from_parts(cls, version, prerelease=FINAL_MARKER,
+                   devpost=FINAL_MARKER):
         return cls(cls.parts_to_str((version, prerelease, devpost)))
 
     def _parse(self, s, error_on_huge_major_num=True):