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

@@ 295-316 (lines=22) @@
292
        """Display an input box allowing the user to pick a package to remove."""
293
        self.window.show_quick_panel(self.environment_packages, self.remove_package)
294
295
    @property
296
    def environment_packages(self):
297
        """List each package name and version installed in the environment.
298
299
        This property had to be duplicated as the attribute from
300
        ListCondaPackageCommand could not be inherited properly.
301
        """
302
        try:
303
            environment_path = self.project_data['conda_environment']
304
            environment = self.retrieve_environment_name(environment_path)
305
306
            package_data = subprocess.check_output([self.executable, '-m', 'conda', 'list',
307
                                                    '--name', environment],
308
                                                   startupinfo=self.startupinfo, universal_newlines=True)
309
310
            packages = package_data.splitlines()[2:]
311
            package_names = [packages[i].split()[0] for i, _ in enumerate(packages)]
312
313
            return package_names
314
        
315
        except KeyError:
316
            return ['No Active Conda Environment']
317
318
    def remove_package(self, index):
319
        """Remove the given package name via conda."""
@@ 247-264 (lines=18) @@
244
        """
245
        self.window.show_quick_panel(self.environment_packages, None)
246
247
    @property
248
    def environment_packages(self):
249
        """List each package name and version installed in the environment."""
250
        try:
251
            environment_path = self.project_data['conda_environment']
252
            environment = self.retrieve_environment_name(environment_path)
253
254
            package_data = subprocess.check_output([self.executable, '-m', 'conda', 'list',
255
                                                    '--name', environment],
256
                                                   startupinfo=self.startupinfo, universal_newlines=True)
257
258
            packages = package_data.splitlines()[2:]
259
            package_names = [packages[i].split()[0] for i, _ in enumerate(packages)]
260
261
            return package_names
262
        
263
        except KeyError:
264
            return ['No Active Conda Environment']
265
266
267
class InstallCondaPackageCommand(CondaCommand):