Esempio n. 1
0
 def clone(self, interp, contextclass):
     w_res = W_InstanceObject.clone(self, interp, contextclass)
     assert isinstance(w_res, W_RecursiveDirectoryIterator)
     w_res.path_name = self.path_name
     w_res.w_dir_res = self.w_dir_res
     w_res.flags = self.flags
     w_res.path = self.path
     return w_res
Esempio n. 2
0
 def clone(self, interp, contextclass):
     w_res = W_InstanceObject.clone(self, interp, contextclass)
     assert isinstance(w_res, W_RecursiveDirectoryIterator)
     w_res.path_name = self.path_name
     w_res.w_dir_res = self.w_dir_res
     w_res.flags = self.flags
     w_res.path = self.path
     return w_res
Esempio n. 3
0
 def clone(self, interp, contextclass):
     w_res = W_InstanceObject.clone(self, interp, contextclass)
     w_res.file_name = self.file_name
     w_res.path_name = self.path_name
     w_res.delimiter = self.delimiter
     w_res.enclosure = self.enclosure
     w_res.open_mode = self.open_mode
     return w_res
Esempio n. 4
0
 def clone(self, interp, contextclass):
     w_res = W_InstanceObject.clone(self, interp, contextclass)
     assert isinstance(w_res, W_SplFileObject)
     w_res.file_name = self.file_name
     w_res.path_name = self.path_name
     w_res.delimiter = self.delimiter
     w_res.enclosure = self.enclosure
     w_res.open_mode = self.open_mode
     return w_res
Esempio n. 5
0
    def clone(self, interp, contextclass):
        from hippy.module.date.common import TimeZoneWrapper

        w_res = W_InstanceObject.clone(self, interp, contextclass)
        w_datetimezone = W_InstanceObject.clone(self.w_datetimezone, interp, contextclass)

        assert isinstance(w_res, W_DateTime)
        assert isinstance(w_datetimezone, W_DateTimeZone)


        w_datetimezone.timelib_timezone = timelib.timelib_tzinfo_clone(
            self.w_datetimezone.timezone_info.timelib_timezone
        )
        w_datetimezone.timezone_info = TimeZoneWrapper(w_datetimezone.timelib_timezone, 3)

        w_res.w_datetimezone = w_datetimezone
        w_res.timelib_time = timelib.timelib_time_clone(self.timelib_time)

        return w_res
Esempio n. 6
0
    def clone(self, interp, contextclass):
        from hippy.module.date.common import TimeZoneWrapper

        w_res = W_InstanceObject.clone(self, interp, contextclass)
        w_datetimezone = W_InstanceObject.clone(self.w_datetimezone, interp,
                                                contextclass)

        assert isinstance(w_res, W_DateTime)
        assert isinstance(w_datetimezone, W_DateTimeZone)

        w_datetimezone.timelib_timezone = timelib.timelib_tzinfo_clone(
            self.w_datetimezone.timezone_info.timelib_timezone)
        w_datetimezone.timezone_info = TimeZoneWrapper(
            w_datetimezone.timelib_timezone, 3)

        w_res.w_datetimezone = w_datetimezone
        w_res.timelib_time = timelib.timelib_time_clone(self.timelib_time)

        return w_res
Esempio n. 7
0
 def clone(self, interp, contextclass):
     w_res = W_InstanceObject.clone(self, interp, contextclass)
     assert isinstance(w_res, W_SplFileInfo)
     w_res.file_name = self.file_name
     w_res.path_name = self.path_name
     return w_res
Esempio n. 8
0
 def clone(self, interp, contextclass):
     w_res = W_InstanceObject.clone(self, interp, contextclass)
     w_res.file_name = self.file_name
     w_res.path_name = self.path_name
     return w_res
Esempio n. 9
0
    def clone(self, interp, contextclass):
        w_res = W_InstanceObject.clone(self, interp, contextclass)
        w_res.timelib_time = timelib.timelib_time_clone(self.timelib_time)

        return w_res
Esempio n. 10
0
 def clone(self, interp, contextclass):
     w_res = W_InstanceObject.clone(self, interp, contextclass)
     assert isinstance(w_res, W_SplFileInfo)
     w_res.file_name = self.file_name
     w_res.path_name = self.path_name
     return w_res