GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 18-22 lines in 2 locations

commands.py 2 locations

@@ 311-332 (lines=22) @@
308
        """Display an input box allowing the user to pick a package to remove."""
309
        self.window.show_quick_panel(self.environment_packages, self.remove_package)
310
311
    @property
312
    def environment_packages(self):
313
        """List each package name and version installed in the environment.
314
315
        This property had to be duplicated as the attribute from
316
        ListCondaPackageCommand could not be inherited properly.
317
        """
318
        try:
319
            environment_path = self.project_data['conda_environment']
320
            environment = self.retrieve_environment_name(environment_path)
321
322
            package_data = subprocess.check_output([self.executable, '-m', 'conda', 'list',
323
                                                    '--name', environment],
324
                                                   startupinfo=self.startupinfo, universal_newlines=True)
325
326
            packages = package_data.splitlines()[2:]
327
            package_names = [packages[i].split()[0] for i, _ in enumerate(packages)]
328
329
            return package_names
330
        
331
        except KeyError:
332
            return ['No Active Conda Environment']
333
334
    def remove_package(self, index):
335
        """Remove the given package name via conda."""
@@ 263-280 (lines=18) @@
260
        """
261
        self.window.show_quick_panel(self.environment_packages, None)
262
263
    @property
264
    def environment_packages(self):
265
        """List each package name and version installed in the environment."""
266
        try:
267
            environment_path = self.project_data['conda_environment']
268
            environment = self.retrieve_environment_name(environment_path)
269
270
            package_data = subprocess.check_output([self.executable, '-m', 'conda', 'list',
271
                                                    '--name', environment],
272
                                                   startupinfo=self.startupinfo, universal_newlines=True)
273
274
            packages = package_data.splitlines()[2:]
275
            package_names = [packages[i].split()[0] for i, _ in enumerate(packages)]
276
277
            return package_names
278
        
279
        except KeyError:
280
            return ['No Active Conda Environment']
281
282
283
class InstallCondaPackageCommand(CondaCommand):