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

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